Class PublicAccessConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.guardduty.model.PublicAccessConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PublicAccessConfiguration.Builder,PublicAccessConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class PublicAccessConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PublicAccessConfiguration.Builder,PublicAccessConfiguration>
Describes public access policies that apply to the Amazon S3 bucket.
For information about each of the following settings, see Blocking public access to your Amazon S3 storage in the Amazon S3 User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePublicAccessConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicAccessConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()PublicAccessStatuspublicAclAccess()Indicates whether or not there is a setting that allows public access to the Amazon S3 buckets through access control lists (ACLs).StringpublicAclAccessAsString()Indicates whether or not there is a setting that allows public access to the Amazon S3 buckets through access control lists (ACLs).PublicAclIgnoreBehaviorpublicAclIgnoreBehavior()Indicates whether or not there is a setting that ignores all public access control lists (ACLs) on the Amazon S3 bucket and the objects that it contains.StringpublicAclIgnoreBehaviorAsString()Indicates whether or not there is a setting that ignores all public access control lists (ACLs) on the Amazon S3 bucket and the objects that it contains.PublicBucketRestrictBehaviorpublicBucketRestrictBehavior()Indicates whether or not there is a setting that restricts access to the bucket with specified policies.StringpublicBucketRestrictBehaviorAsString()Indicates whether or not there is a setting that restricts access to the bucket with specified policies.PublicAccessStatuspublicPolicyAccess()Indicates whether or not there is a setting that allows public access to the Amazon S3 bucket policy.StringpublicPolicyAccessAsString()Indicates whether or not there is a setting that allows public access to the Amazon S3 bucket policy.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PublicAccessConfiguration.Builder>serializableBuilderClass()PublicAccessConfiguration.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
-
publicAclAccess
public final PublicAccessStatus publicAclAccess()
Indicates whether or not there is a setting that allows public access to the Amazon S3 buckets through access control lists (ACLs).
If the service returns an enum value that is not available in the current SDK version,
publicAclAccesswill returnPublicAccessStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompublicAclAccessAsString().- Returns:
- Indicates whether or not there is a setting that allows public access to the Amazon S3 buckets through access control lists (ACLs).
- See Also:
PublicAccessStatus
-
publicAclAccessAsString
public final String publicAclAccessAsString()
Indicates whether or not there is a setting that allows public access to the Amazon S3 buckets through access control lists (ACLs).
If the service returns an enum value that is not available in the current SDK version,
publicAclAccesswill returnPublicAccessStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompublicAclAccessAsString().- Returns:
- Indicates whether or not there is a setting that allows public access to the Amazon S3 buckets through access control lists (ACLs).
- See Also:
PublicAccessStatus
-
publicPolicyAccess
public final PublicAccessStatus publicPolicyAccess()
Indicates whether or not there is a setting that allows public access to the Amazon S3 bucket policy.
If the service returns an enum value that is not available in the current SDK version,
publicPolicyAccesswill returnPublicAccessStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompublicPolicyAccessAsString().- Returns:
- Indicates whether or not there is a setting that allows public access to the Amazon S3 bucket policy.
- See Also:
PublicAccessStatus
-
publicPolicyAccessAsString
public final String publicPolicyAccessAsString()
Indicates whether or not there is a setting that allows public access to the Amazon S3 bucket policy.
If the service returns an enum value that is not available in the current SDK version,
publicPolicyAccesswill returnPublicAccessStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompublicPolicyAccessAsString().- Returns:
- Indicates whether or not there is a setting that allows public access to the Amazon S3 bucket policy.
- See Also:
PublicAccessStatus
-
publicAclIgnoreBehavior
public final PublicAclIgnoreBehavior publicAclIgnoreBehavior()
Indicates whether or not there is a setting that ignores all public access control lists (ACLs) on the Amazon S3 bucket and the objects that it contains.
If the service returns an enum value that is not available in the current SDK version,
publicAclIgnoreBehaviorwill returnPublicAclIgnoreBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompublicAclIgnoreBehaviorAsString().- Returns:
- Indicates whether or not there is a setting that ignores all public access control lists (ACLs) on the Amazon S3 bucket and the objects that it contains.
- See Also:
PublicAclIgnoreBehavior
-
publicAclIgnoreBehaviorAsString
public final String publicAclIgnoreBehaviorAsString()
Indicates whether or not there is a setting that ignores all public access control lists (ACLs) on the Amazon S3 bucket and the objects that it contains.
If the service returns an enum value that is not available in the current SDK version,
publicAclIgnoreBehaviorwill returnPublicAclIgnoreBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompublicAclIgnoreBehaviorAsString().- Returns:
- Indicates whether or not there is a setting that ignores all public access control lists (ACLs) on the Amazon S3 bucket and the objects that it contains.
- See Also:
PublicAclIgnoreBehavior
-
publicBucketRestrictBehavior
public final PublicBucketRestrictBehavior publicBucketRestrictBehavior()
Indicates whether or not there is a setting that restricts access to the bucket with specified policies.
If the service returns an enum value that is not available in the current SDK version,
publicBucketRestrictBehaviorwill returnPublicBucketRestrictBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompublicBucketRestrictBehaviorAsString().- Returns:
- Indicates whether or not there is a setting that restricts access to the bucket with specified policies.
- See Also:
PublicBucketRestrictBehavior
-
publicBucketRestrictBehaviorAsString
public final String publicBucketRestrictBehaviorAsString()
Indicates whether or not there is a setting that restricts access to the bucket with specified policies.
If the service returns an enum value that is not available in the current SDK version,
publicBucketRestrictBehaviorwill returnPublicBucketRestrictBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompublicBucketRestrictBehaviorAsString().- Returns:
- Indicates whether or not there is a setting that restricts access to the bucket with specified policies.
- See Also:
PublicBucketRestrictBehavior
-
toBuilder
public PublicAccessConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PublicAccessConfiguration.Builder,PublicAccessConfiguration>
-
builder
public static PublicAccessConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends PublicAccessConfiguration.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
-
-