@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExecuteCommandLogConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket.
Constructor and Description |
---|
ExecuteCommandLogConfiguration() |
Modifier and Type | Method and Description |
---|---|
ExecuteCommandLogConfiguration |
clone() |
boolean |
equals(Object obj) |
Boolean |
getCloudWatchEncryptionEnabled()
Determines whether to use encryption on the CloudWatch logs.
|
String |
getCloudWatchLogGroupName()
The name of the CloudWatch log group to send logs to.
|
String |
getS3BucketName()
The name of the S3 bucket to send logs to.
|
Boolean |
getS3EncryptionEnabled()
Determines whether to use encryption on the S3 logs.
|
String |
getS3KeyPrefix()
An optional folder in the S3 bucket to place logs in.
|
int |
hashCode() |
Boolean |
isCloudWatchEncryptionEnabled()
Determines whether to use encryption on the CloudWatch logs.
|
Boolean |
isS3EncryptionEnabled()
Determines whether to use encryption on the S3 logs.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCloudWatchEncryptionEnabled(Boolean cloudWatchEncryptionEnabled)
Determines whether to use encryption on the CloudWatch logs.
|
void |
setCloudWatchLogGroupName(String cloudWatchLogGroupName)
The name of the CloudWatch log group to send logs to.
|
void |
setS3BucketName(String s3BucketName)
The name of the S3 bucket to send logs to.
|
void |
setS3EncryptionEnabled(Boolean s3EncryptionEnabled)
Determines whether to use encryption on the S3 logs.
|
void |
setS3KeyPrefix(String s3KeyPrefix)
An optional folder in the S3 bucket to place logs in.
|
String |
toString()
Returns a string representation of this object.
|
ExecuteCommandLogConfiguration |
withCloudWatchEncryptionEnabled(Boolean cloudWatchEncryptionEnabled)
Determines whether to use encryption on the CloudWatch logs.
|
ExecuteCommandLogConfiguration |
withCloudWatchLogGroupName(String cloudWatchLogGroupName)
The name of the CloudWatch log group to send logs to.
|
ExecuteCommandLogConfiguration |
withS3BucketName(String s3BucketName)
The name of the S3 bucket to send logs to.
|
ExecuteCommandLogConfiguration |
withS3EncryptionEnabled(Boolean s3EncryptionEnabled)
Determines whether to use encryption on the S3 logs.
|
ExecuteCommandLogConfiguration |
withS3KeyPrefix(String s3KeyPrefix)
An optional folder in the S3 bucket to place logs in.
|
public void setCloudWatchLogGroupName(String cloudWatchLogGroupName)
The name of the CloudWatch log group to send logs to.
The CloudWatch log group must already be created.
cloudWatchLogGroupName
- The name of the CloudWatch log group to send logs to. The CloudWatch log group must already be created.
public String getCloudWatchLogGroupName()
The name of the CloudWatch log group to send logs to.
The CloudWatch log group must already be created.
The CloudWatch log group must already be created.
public ExecuteCommandLogConfiguration withCloudWatchLogGroupName(String cloudWatchLogGroupName)
The name of the CloudWatch log group to send logs to.
The CloudWatch log group must already be created.
cloudWatchLogGroupName
- The name of the CloudWatch log group to send logs to. The CloudWatch log group must already be created.
public void setCloudWatchEncryptionEnabled(Boolean cloudWatchEncryptionEnabled)
Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
cloudWatchEncryptionEnabled
- Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.public Boolean getCloudWatchEncryptionEnabled()
Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
public ExecuteCommandLogConfiguration withCloudWatchEncryptionEnabled(Boolean cloudWatchEncryptionEnabled)
Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
cloudWatchEncryptionEnabled
- Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.public Boolean isCloudWatchEncryptionEnabled()
Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
public void setS3BucketName(String s3BucketName)
The name of the S3 bucket to send logs to.
The S3 bucket must already be created.
s3BucketName
- The name of the S3 bucket to send logs to. The S3 bucket must already be created.
public String getS3BucketName()
The name of the S3 bucket to send logs to.
The S3 bucket must already be created.
The S3 bucket must already be created.
public ExecuteCommandLogConfiguration withS3BucketName(String s3BucketName)
The name of the S3 bucket to send logs to.
The S3 bucket must already be created.
s3BucketName
- The name of the S3 bucket to send logs to. The S3 bucket must already be created.
public void setS3EncryptionEnabled(Boolean s3EncryptionEnabled)
Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
s3EncryptionEnabled
- Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.public Boolean getS3EncryptionEnabled()
Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
public ExecuteCommandLogConfiguration withS3EncryptionEnabled(Boolean s3EncryptionEnabled)
Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
s3EncryptionEnabled
- Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.public Boolean isS3EncryptionEnabled()
Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
public void setS3KeyPrefix(String s3KeyPrefix)
An optional folder in the S3 bucket to place logs in.
s3KeyPrefix
- An optional folder in the S3 bucket to place logs in.public String getS3KeyPrefix()
An optional folder in the S3 bucket to place logs in.
public ExecuteCommandLogConfiguration withS3KeyPrefix(String s3KeyPrefix)
An optional folder in the S3 bucket to place logs in.
s3KeyPrefix
- An optional folder in the S3 bucket to place logs in.public String toString()
toString
in class Object
Object.toString()
public ExecuteCommandLogConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.