@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Rule extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a rule in Amazon EventBridge.
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
Rule |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the rule.
|
String |
getDescription()
The description of the rule.
|
String |
getEventBusName()
The event bus associated with the rule.
|
String |
getEventPattern()
The event pattern of the rule.
|
String |
getManagedBy()
If an AWS service created the rule on behalf of your account, this field displays the principal name of the
service that created the rule.
|
String |
getName()
The name of the rule.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the role that is used for target invocation.
|
String |
getScheduleExpression()
The scheduling expression: for example,
"cron(0 20 * * ? *)" or "rate(5 minutes)" . |
String |
getState()
The state of the rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the rule.
|
void |
setDescription(String description)
The description of the rule.
|
void |
setEventBusName(String eventBusName)
The event bus associated with the rule.
|
void |
setEventPattern(String eventPattern)
The event pattern of the rule.
|
void |
setManagedBy(String managedBy)
If an AWS service created the rule on behalf of your account, this field displays the principal name of the
service that created the rule.
|
void |
setName(String name)
The name of the rule.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that is used for target invocation.
|
void |
setScheduleExpression(String scheduleExpression)
The scheduling expression: for example,
"cron(0 20 * * ? *)" or "rate(5 minutes)" . |
void |
setState(String state)
The state of the rule.
|
String |
toString()
Returns a string representation of this object.
|
Rule |
withArn(String arn)
The Amazon Resource Name (ARN) of the rule.
|
Rule |
withDescription(String description)
The description of the rule.
|
Rule |
withEventBusName(String eventBusName)
The event bus associated with the rule.
|
Rule |
withEventPattern(String eventPattern)
The event pattern of the rule.
|
Rule |
withManagedBy(String managedBy)
If an AWS service created the rule on behalf of your account, this field displays the principal name of the
service that created the rule.
|
Rule |
withName(String name)
The name of the rule.
|
Rule |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that is used for target invocation.
|
Rule |
withScheduleExpression(String scheduleExpression)
The scheduling expression: for example,
"cron(0 20 * * ? *)" or "rate(5 minutes)" . |
Rule |
withState(RuleState state)
The state of the rule.
|
Rule |
withState(String state)
The state of the rule.
|
public void setName(String name)
The name of the rule.
name
- The name of the rule.public String getName()
The name of the rule.
public Rule withName(String name)
The name of the rule.
name
- The name of the rule.public void setArn(String arn)
The Amazon Resource Name (ARN) of the rule.
arn
- The Amazon Resource Name (ARN) of the rule.public String getArn()
The Amazon Resource Name (ARN) of the rule.
public Rule withArn(String arn)
The Amazon Resource Name (ARN) of the rule.
arn
- The Amazon Resource Name (ARN) of the rule.public void setEventPattern(String eventPattern)
The event pattern of the rule. For more information, see Event Patterns in the Amazon EventBridge User Guide.
eventPattern
- The event pattern of the rule. For more information, see Event
Patterns in the Amazon EventBridge User Guide.public String getEventPattern()
The event pattern of the rule. For more information, see Event Patterns in the Amazon EventBridge User Guide.
public Rule withEventPattern(String eventPattern)
The event pattern of the rule. For more information, see Event Patterns in the Amazon EventBridge User Guide.
eventPattern
- The event pattern of the rule. For more information, see Event
Patterns in the Amazon EventBridge User Guide.public void setState(String state)
The state of the rule.
state
- The state of the rule.RuleState
public String getState()
The state of the rule.
RuleState
public Rule withState(String state)
The state of the rule.
state
- The state of the rule.RuleState
public Rule withState(RuleState state)
The state of the rule.
state
- The state of the rule.RuleState
public void setDescription(String description)
The description of the rule.
description
- The description of the rule.public String getDescription()
The description of the rule.
public Rule withDescription(String description)
The description of the rule.
description
- The description of the rule.public void setScheduleExpression(String scheduleExpression)
The scheduling expression: for example, "cron(0 20 * * ? *)"
or "rate(5 minutes)"
.
scheduleExpression
- The scheduling expression: for example, "cron(0 20 * * ? *)"
or
"rate(5 minutes)"
.public String getScheduleExpression()
The scheduling expression: for example, "cron(0 20 * * ? *)"
or "rate(5 minutes)"
.
"cron(0 20 * * ? *)"
or
"rate(5 minutes)"
.public Rule withScheduleExpression(String scheduleExpression)
The scheduling expression: for example, "cron(0 20 * * ? *)"
or "rate(5 minutes)"
.
scheduleExpression
- The scheduling expression: for example, "cron(0 20 * * ? *)"
or
"rate(5 minutes)"
.public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that is used for target invocation.
roleArn
- The Amazon Resource Name (ARN) of the role that is used for target invocation.public String getRoleArn()
The Amazon Resource Name (ARN) of the role that is used for target invocation.
public Rule withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that is used for target invocation.
roleArn
- The Amazon Resource Name (ARN) of the role that is used for target invocation.public void setManagedBy(String managedBy)
If an AWS service created the rule on behalf of your account, this field displays the principal name of the service that created the rule.
managedBy
- If an AWS service created the rule on behalf of your account, this field displays the principal name of
the service that created the rule.public String getManagedBy()
If an AWS service created the rule on behalf of your account, this field displays the principal name of the service that created the rule.
public Rule withManagedBy(String managedBy)
If an AWS service created the rule on behalf of your account, this field displays the principal name of the service that created the rule.
managedBy
- If an AWS service created the rule on behalf of your account, this field displays the principal name of
the service that created the rule.public void setEventBusName(String eventBusName)
The event bus associated with the rule.
eventBusName
- The event bus associated with the rule.public String getEventBusName()
The event bus associated with the rule.
public Rule withEventBusName(String eventBusName)
The event bus associated with the rule.
eventBusName
- The event bus associated with the rule.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.