@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsS3BucketBucketVersioningConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Describes the versioning state of an S3 bucket.
Constructor and Description |
---|
AwsS3BucketBucketVersioningConfiguration() |
Modifier and Type | Method and Description |
---|---|
AwsS3BucketBucketVersioningConfiguration |
clone() |
boolean |
equals(Object obj) |
Boolean |
getIsMfaDeleteEnabled()
Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration.
|
String |
getStatus()
The versioning status of the S3 bucket.
|
int |
hashCode() |
Boolean |
isMfaDeleteEnabled()
Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIsMfaDeleteEnabled(Boolean isMfaDeleteEnabled)
Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration.
|
void |
setStatus(String status)
The versioning status of the S3 bucket.
|
String |
toString()
Returns a string representation of this object.
|
AwsS3BucketBucketVersioningConfiguration |
withIsMfaDeleteEnabled(Boolean isMfaDeleteEnabled)
Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration.
|
AwsS3BucketBucketVersioningConfiguration |
withStatus(String status)
The versioning status of the S3 bucket.
|
public AwsS3BucketBucketVersioningConfiguration()
public void setIsMfaDeleteEnabled(Boolean isMfaDeleteEnabled)
Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration. If the S3 bucket was never configured with MFA delete, then this attribute is not included.
isMfaDeleteEnabled
- Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration. If the S3
bucket was never configured with MFA delete, then this attribute is not included.public Boolean getIsMfaDeleteEnabled()
Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration. If the S3 bucket was never configured with MFA delete, then this attribute is not included.
public AwsS3BucketBucketVersioningConfiguration withIsMfaDeleteEnabled(Boolean isMfaDeleteEnabled)
Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration. If the S3 bucket was never configured with MFA delete, then this attribute is not included.
isMfaDeleteEnabled
- Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration. If the S3
bucket was never configured with MFA delete, then this attribute is not included.public Boolean isMfaDeleteEnabled()
Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration. If the S3 bucket was never configured with MFA delete, then this attribute is not included.
public void setStatus(String status)
The versioning status of the S3 bucket. Valid values are Enabled
or Suspended
.
status
- The versioning status of the S3 bucket. Valid values are Enabled
or Suspended
.public String getStatus()
The versioning status of the S3 bucket. Valid values are Enabled
or Suspended
.
Enabled
or Suspended
.public AwsS3BucketBucketVersioningConfiguration withStatus(String status)
The versioning status of the S3 bucket. Valid values are Enabled
or Suspended
.
status
- The versioning status of the S3 bucket. Valid values are Enabled
or Suspended
.public String toString()
toString
in class Object
Object.toString()
public AwsS3BucketBucketVersioningConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.