Package com.google.cloud.storage
Enum BucketInfo.PublicAccessPrevention
java.lang.Object
java.lang.Enum<BucketInfo.PublicAccessPrevention>
com.google.cloud.storage.BucketInfo.PublicAccessPrevention
- All Implemented Interfaces:
Serializable
,Comparable<BucketInfo.PublicAccessPrevention>
- Enclosing class:
- BucketInfo
public static enum BucketInfo.PublicAccessPrevention
extends Enum<BucketInfo.PublicAccessPrevention>
Public Access Prevention enum with expected values.
- See Also:
-
Enum Constant Summary
Enum ConstantDescriptionIf the api returns a value that isn't defined inBucketInfo.PublicAccessPrevention
this value will be returned.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Returns the enum constant of this type with the specified name.static BucketInfo.PublicAccessPrevention[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ENFORCED
-
UNSPECIFIED
Deprecated.useINHERITED
Default value for Public Access Prevention -
UNKNOWN
If the api returns a value that isn't defined inBucketInfo.PublicAccessPrevention
this value will be returned. -
INHERITED
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
parse
-
INHERITED