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
Scope in which the bucket is unique.Default value is NAMESPACE. Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other tenancies can have a bucket with same name in their namespace. Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with same name and scope 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)
-
-