@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.MFADelete
public String getMFADelete()
Specifies whether MFA delete is enabled or disabled in the bucket versioning configuration for the S3 on Outposts bucket.
MFADelete
public 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.MFADelete
public 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.MFADelete
public 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.BucketVersioningStatus
public String getStatus()
Sets the versioning state of the S3 on Outposts bucket.
BucketVersioningStatus
public 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.BucketVersioningStatus
public 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.BucketVersioningStatus
public String toString()
toString
in class Object
Object.toString()
public VersioningConfiguration clone()