Enum Bucket.BucketScope
- java.lang.Object
-
- java.lang.Enum<Bucket.BucketScope>
-
- com.oracle.bmc.objectstorage.model.Bucket.BucketScope
-
- All Implemented Interfaces:
BmcEnum,Serializable,Comparable<Bucket.BucketScope>
- Enclosing class:
- Bucket
public static enum Bucket.BucketScope extends Enum<Bucket.BucketScope> implements BmcEnum
The bucket scope determines weather the bucket name must be unique within the tenancy and region (essentially the namespace) or across all tenancies in the region.The bucket scope also determines if the bucket supports S3 virtual-hosted style URL’s or not.
Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only needs to be unique within the tenancy and region. REGION: Supports both path-style and virtual-hosted URL style access, bucket name needs to be unique across all tenancies in the region.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NamespaceRegionUnknownEnumValueThis value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Bucket.BucketScopecreate(String key)StringgetValue()static Bucket.BucketScopevalueOf(String name)Returns the enum constant of this type with the specified name.static Bucket.BucketScope[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Namespace
public static final Bucket.BucketScope Namespace
-
Region
public static final Bucket.BucketScope Region
-
UnknownEnumValue
public static final Bucket.BucketScope UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
-
Method Detail
-
values
public static Bucket.BucketScope[] 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 (Bucket.BucketScope c : Bucket.BucketScope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Bucket.BucketScope 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
-
create
public static Bucket.BucketScope create(String key)
-
-