public class CloudwatchLogsAction extends Object implements Serializable
Describes an action that sends data to CloudWatch logs.
| Constructor and Description |
|---|
CloudwatchLogsAction() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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; useful for testing and
debugging.
|
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 String getRoleArn()
The IAM role that allows access to the CloudWatch log.
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 CloudwatchLogsAction withRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch log.
Returns a reference to this object so that method calls can be chained together.
roleArn - The IAM role that allows access to the CloudWatch log.
public String getLogGroupName()
The CloudWatch log group to which the action sends data.
The CloudWatch log group to which the action sends data.
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 CloudwatchLogsAction withLogGroupName(String logGroupName)
The CloudWatch log group to which the action sends data.
Returns a reference to this object so that method calls can be chained together.
logGroupName - The CloudWatch log group to which the action sends data.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.