@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CloudWatchMetrics extends Object implements Serializable, Cloneable
A container for enabling Amazon CloudWatch publishing for S3 Storage Lens metrics.
For more information about publishing S3 Storage Lens metrics to CloudWatch, see Monitor S3 Storage Lens metrics in CloudWatch in the Amazon S3 User Guide.
Constructor and Description |
---|
CloudWatchMetrics() |
Modifier and Type | Method and Description |
---|---|
CloudWatchMetrics |
clone() |
boolean |
equals(Object obj) |
Boolean |
getIsEnabled()
A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled.
|
int |
hashCode() |
Boolean |
isEnabled()
A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled.
|
void |
setIsEnabled(Boolean isEnabled)
A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled.
|
String |
toString()
Returns a string representation of this object.
|
CloudWatchMetrics |
withIsEnabled(Boolean isEnabled)
A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled.
|
public void setIsEnabled(Boolean isEnabled)
A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled. A value of
true
indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.
isEnabled
- A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled. A value
of true
indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.public Boolean getIsEnabled()
A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled. A value of
true
indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.
true
indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.public CloudWatchMetrics withIsEnabled(Boolean isEnabled)
A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled. A value of
true
indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.
isEnabled
- A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled. A value
of true
indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.public Boolean isEnabled()
A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled. A value of
true
indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.
true
indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.public String toString()
toString
in class Object
Object.toString()
public CloudWatchMetrics clone()