Class BucketPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.BucketPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BucketPolicy.Builder,BucketPolicy>
@Generated("software.amazon.awssdk:codegen") public final class BucketPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BucketPolicy.Builder,BucketPolicy>
Provides information about the permissions settings of the bucket policy for an S3 bucket.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBucketPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanallowsPublicReadAccess()Specifies whether the bucket policy allows the general public to have read access to the bucket.BooleanallowsPublicWriteAccess()Specifies whether the bucket policy allows the general public to have write access to the bucket.static BucketPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends BucketPolicy.Builder>serializableBuilderClass()BucketPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
allowsPublicReadAccess
public final Boolean allowsPublicReadAccess()
Specifies whether the bucket policy allows the general public to have read access to the bucket.
- Returns:
- Specifies whether the bucket policy allows the general public to have read access to the bucket.
-
allowsPublicWriteAccess
public final Boolean allowsPublicWriteAccess()
Specifies whether the bucket policy allows the general public to have write access to the bucket.
- Returns:
- Specifies whether the bucket policy allows the general public to have write access to the bucket.
-
toBuilder
public BucketPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BucketPolicy.Builder,BucketPolicy>
-
builder
public static BucketPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends BucketPolicy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-