@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VersioningConfiguration extends Object implements Serializable, Cloneable
Describes the versioning state of an Amazon S3 on Outposts bucket. For more information, see PutBucketVersioning.
| Constructor and Description |
|---|
VersioningConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
VersioningConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getMFADelete()
Specifies whether MFA delete is enabled or disabled in the bucket versioning configuration for the S3 on Outposts
bucket.
|
String |
getStatus()
Sets the versioning state of the S3 on Outposts bucket.
|
int |
hashCode() |
void |
setMFADelete(String mFADelete)
Specifies whether MFA delete is enabled or disabled in the bucket versioning configuration for the S3 on Outposts
bucket.
|
void |
setStatus(String status)
Sets the versioning state of the S3 on Outposts bucket.
|
String |
toString()
Returns a string representation of this object.
|
VersioningConfiguration |
withMFADelete(MFADelete mFADelete)
Specifies whether MFA delete is enabled or disabled in the bucket versioning configuration for the S3 on Outposts
bucket.
|
VersioningConfiguration |
withMFADelete(String mFADelete)
Specifies whether MFA delete is enabled or disabled in the bucket versioning configuration for the S3 on Outposts
bucket.
|
VersioningConfiguration |
withStatus(BucketVersioningStatus status)
Sets the versioning state of the S3 on Outposts bucket.
|
VersioningConfiguration |
withStatus(String status)
Sets the versioning state of the S3 on Outposts bucket.
|
public void setMFADelete(String mFADelete)
Specifies whether MFA delete is enabled or disabled in the bucket versioning configuration for the S3 on Outposts bucket.
mFADelete - Specifies whether MFA delete is enabled or disabled in the bucket versioning configuration for the S3 on
Outposts bucket.MFADeletepublic String getMFADelete()
Specifies whether MFA delete is enabled or disabled in the bucket versioning configuration for the S3 on Outposts bucket.
MFADeletepublic VersioningConfiguration withMFADelete(String mFADelete)
Specifies whether MFA delete is enabled or disabled in the bucket versioning configuration for the S3 on Outposts bucket.
mFADelete - Specifies whether MFA delete is enabled or disabled in the bucket versioning configuration for the S3 on
Outposts bucket.MFADeletepublic VersioningConfiguration withMFADelete(MFADelete mFADelete)
Specifies whether MFA delete is enabled or disabled in the bucket versioning configuration for the S3 on Outposts bucket.
mFADelete - Specifies whether MFA delete is enabled or disabled in the bucket versioning configuration for the S3 on
Outposts bucket.MFADeletepublic void setStatus(String status)
Sets the versioning state of the S3 on Outposts bucket.
status - Sets the versioning state of the S3 on Outposts bucket.BucketVersioningStatuspublic String getStatus()
Sets the versioning state of the S3 on Outposts bucket.
BucketVersioningStatuspublic VersioningConfiguration withStatus(String status)
Sets the versioning state of the S3 on Outposts bucket.
status - Sets the versioning state of the S3 on Outposts bucket.BucketVersioningStatuspublic VersioningConfiguration withStatus(BucketVersioningStatus status)
Sets the versioning state of the S3 on Outposts bucket.
status - Sets the versioning state of the S3 on Outposts bucket.BucketVersioningStatuspublic String toString()
toString in class ObjectObject.toString()public VersioningConfiguration clone()