Class BucketPublicAccess
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.BucketPublicAccess
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BucketPublicAccess.Builder,BucketPublicAccess>
@Generated("software.amazon.awssdk:codegen") public final class BucketPublicAccess extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BucketPublicAccess.Builder,BucketPublicAccess>
Provides information about the permissions settings that determine whether an S3 bucket is publicly accessible.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBucketPublicAccess.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BucketPublicAccess.Builderbuilder()EffectivePermissioneffectivePermission()Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to the bucket.StringeffectivePermissionAsString()Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to the bucket.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BucketPermissionConfigurationpermissionConfiguration()The account-level and bucket-level permissions settings for the bucket.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends BucketPublicAccess.Builder>serializableBuilderClass()BucketPublicAccess.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
-
effectivePermission
public final EffectivePermission effectivePermission()
Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to the bucket. Possible values are:
-
NOT_PUBLIC - The bucket isn't publicly accessible.
-
PUBLIC - The bucket is publicly accessible.
-
UNKNOWN - Amazon Macie can't determine whether the bucket is publicly accessible.
If the service returns an enum value that is not available in the current SDK version,
effectivePermissionwill returnEffectivePermission.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeffectivePermissionAsString().- Returns:
Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to the bucket. Possible values are:
-
NOT_PUBLIC - The bucket isn't publicly accessible.
-
PUBLIC - The bucket is publicly accessible.
-
UNKNOWN - Amazon Macie can't determine whether the bucket is publicly accessible.
-
- See Also:
EffectivePermission
-
-
effectivePermissionAsString
public final String effectivePermissionAsString()
Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to the bucket. Possible values are:
-
NOT_PUBLIC - The bucket isn't publicly accessible.
-
PUBLIC - The bucket is publicly accessible.
-
UNKNOWN - Amazon Macie can't determine whether the bucket is publicly accessible.
If the service returns an enum value that is not available in the current SDK version,
effectivePermissionwill returnEffectivePermission.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeffectivePermissionAsString().- Returns:
Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to the bucket. Possible values are:
-
NOT_PUBLIC - The bucket isn't publicly accessible.
-
PUBLIC - The bucket is publicly accessible.
-
UNKNOWN - Amazon Macie can't determine whether the bucket is publicly accessible.
-
- See Also:
EffectivePermission
-
-
permissionConfiguration
public final BucketPermissionConfiguration permissionConfiguration()
The account-level and bucket-level permissions settings for the bucket.
- Returns:
- The account-level and bucket-level permissions settings for the bucket.
-
toBuilder
public BucketPublicAccess.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BucketPublicAccess.Builder,BucketPublicAccess>
-
builder
public static BucketPublicAccess.Builder builder()
-
serializableBuilderClass
public static Class<? extends BucketPublicAccess.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
-
-