@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) |
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() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 |
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 String toString()
toString
in class Object
Object.toString()
public CloudwatchLogsAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.