@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CloudwatchLogsAction extends Object implements Serializable, Cloneable, StructuredPojo
Describes an action that sends data to CloudWatch Logs.
| Constructor and Description |
|---|
CloudwatchLogsAction() |
| Modifier and Type | Method and Description |
|---|---|
CloudwatchLogsAction |
clone() |
boolean |
equals(Object obj) |
Boolean |
getBatchMode()
Indicates whether batches of log records will be extracted and uploaded into CloudWatch.
|
String |
getLogGroupName()
The CloudWatch log group to which the action sends data.
|
String |
getRoleArn()
The IAM role that allows access to the CloudWatch log.
|
int |
hashCode() |
Boolean |
isBatchMode()
Indicates whether batches of log records will be extracted and uploaded into CloudWatch.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setBatchMode(Boolean batchMode)
Indicates whether batches of log records will be extracted and uploaded into CloudWatch.
|
void |
setLogGroupName(String logGroupName)
The CloudWatch log group to which the action sends data.
|
void |
setRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch log.
|
String |
toString()
Returns a string representation of this object.
|
CloudwatchLogsAction |
withBatchMode(Boolean batchMode)
Indicates whether batches of log records will be extracted and uploaded into CloudWatch.
|
CloudwatchLogsAction |
withLogGroupName(String logGroupName)
The CloudWatch log group to which the action sends data.
|
CloudwatchLogsAction |
withRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch log.
|
public void setRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch log.
roleArn - The IAM role that allows access to the CloudWatch log.public String getRoleArn()
The IAM role that allows access to the CloudWatch log.
public CloudwatchLogsAction withRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch log.
roleArn - The IAM role that allows access to the CloudWatch log.public void setLogGroupName(String logGroupName)
The CloudWatch log group to which the action sends data.
logGroupName - The CloudWatch log group to which the action sends data.public String getLogGroupName()
The CloudWatch log group to which the action sends data.
public CloudwatchLogsAction withLogGroupName(String logGroupName)
The CloudWatch log group to which the action sends data.
logGroupName - The CloudWatch log group to which the action sends data.public void setBatchMode(Boolean batchMode)
Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include
true or false (default).
batchMode - Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include
true or false (default).public Boolean getBatchMode()
Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include
true or false (default).
true or false (default).public CloudwatchLogsAction withBatchMode(Boolean batchMode)
Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include
true or false (default).
batchMode - Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include
true or false (default).public Boolean isBatchMode()
Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include
true or false (default).
true or false (default).public String toString()
toString in class ObjectObject.toString()public CloudwatchLogsAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.