Package net.snowflake.client.util
Enum Platform
- java.lang.Object
-
- java.lang.Enum<Platform>
-
- net.snowflake.client.util.Platform
-
- All Implemented Interfaces:
Serializable,Comparable<Platform>
@SnowflakeJdbcInternalApi public enum Platform extends Enum<Platform>
Enum representing all detectable cloud platforms and identity providers.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HAS_AWS_IDENTITYHAS_AZURE_MANAGED_IDENTITYHAS_GCP_IDENTITYIS_AWS_LAMBDAIS_AZURE_FUNCTIONIS_AZURE_VMIS_EC2_INSTANCEIS_GCE_CLOUD_RUN_JOBIS_GCE_CLOUD_RUN_SERVICEIS_GCE_VMIS_GITHUB_ACTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()StringtoString()static PlatformvalueOf(String name)Returns the enum constant of this type with the specified name.static Platform[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IS_AWS_LAMBDA
public static final Platform IS_AWS_LAMBDA
-
IS_AZURE_FUNCTION
public static final Platform IS_AZURE_FUNCTION
-
IS_GCE_CLOUD_RUN_SERVICE
public static final Platform IS_GCE_CLOUD_RUN_SERVICE
-
IS_GCE_CLOUD_RUN_JOB
public static final Platform IS_GCE_CLOUD_RUN_JOB
-
IS_GITHUB_ACTION
public static final Platform IS_GITHUB_ACTION
-
IS_EC2_INSTANCE
public static final Platform IS_EC2_INSTANCE
-
HAS_AWS_IDENTITY
public static final Platform HAS_AWS_IDENTITY
-
IS_AZURE_VM
public static final Platform IS_AZURE_VM
-
HAS_AZURE_MANAGED_IDENTITY
public static final Platform HAS_AZURE_MANAGED_IDENTITY
-
IS_GCE_VM
public static final Platform IS_GCE_VM
-
HAS_GCP_IDENTITY
public static final Platform HAS_GCP_IDENTITY
-
-
Method Detail
-
values
public static Platform[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Platform c : Platform.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Platform valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
-