@Generated(value="software.amazon.awssdk:codegen") public final class S3Bucket extends Object implements SdkPojo, Serializable, ToCopyableBuilder<S3Bucket.Builder,S3Bucket>
Provides information about an S3 bucket that a finding applies to.
| Modifier and Type | Class and Description |
|---|---|
static interface |
S3Bucket.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the bucket.
|
static S3Bucket.Builder |
builder() |
Instant |
createdAt()
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
|
ServerSideEncryption |
defaultServerSideEncryption()
The type of server-side encryption that's used by default to encrypt objects in the bucket.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
name()
The name of the bucket.
|
S3BucketOwner |
owner()
The display name and account identifier for the user who owns the bucket.
|
BucketPublicAccess |
publicAccess()
The permissions settings that determine whether the bucket is publicly accessible.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends S3Bucket.Builder> |
serializableBuilderClass() |
List<KeyValuePair> |
tags()
The tags that are associated with the bucket.
|
S3Bucket.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String arn()
The Amazon Resource Name (ARN) of the bucket.
public Instant createdAt()
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
public ServerSideEncryption defaultServerSideEncryption()
The type of server-side encryption that's used by default to encrypt objects in the bucket.
public String name()
The name of the bucket.
public S3BucketOwner owner()
The display name and account identifier for the user who owns the bucket.
public BucketPublicAccess publicAccess()
The permissions settings that determine whether the bucket is publicly accessible.
public boolean hasTags()
public List<KeyValuePair> tags()
The tags that are associated with the bucket.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public S3Bucket.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<S3Bucket.Builder,S3Bucket>public static S3Bucket.Builder builder()
public static Class<? extends S3Bucket.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.