shiver.me.timbers.aws.iot.TopicRuleStepFunctionsAction Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.iot;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import shiver.me.timbers.aws.Property;
/**
* TopicRuleStepFunctionsAction
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"ExecutionNamePrefix",
"RoleArn",
"StateMachineName"
})
public class TopicRuleStepFunctionsAction implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-executionnameprefix
*
*/
@JsonProperty("ExecutionNamePrefix")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-executionnameprefix")
private CharSequence executionNamePrefix;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-rolearn
*
*/
@JsonProperty("RoleArn")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-rolearn")
private CharSequence roleArn;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-statemachinename
*
*/
@JsonProperty("StateMachineName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-statemachinename")
private CharSequence stateMachineName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-executionnameprefix
*
*/
@JsonIgnore
public CharSequence getExecutionNamePrefix() {
return executionNamePrefix;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-executionnameprefix
*
*/
@JsonIgnore
public void setExecutionNamePrefix(CharSequence executionNamePrefix) {
this.executionNamePrefix = executionNamePrefix;
}
public TopicRuleStepFunctionsAction withExecutionNamePrefix(CharSequence executionNamePrefix) {
this.executionNamePrefix = executionNamePrefix;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-rolearn
*
*/
@JsonIgnore
public CharSequence getRoleArn() {
return roleArn;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-rolearn
*
*/
@JsonIgnore
public void setRoleArn(CharSequence roleArn) {
this.roleArn = roleArn;
}
public TopicRuleStepFunctionsAction withRoleArn(CharSequence roleArn) {
this.roleArn = roleArn;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-statemachinename
*
*/
@JsonIgnore
public CharSequence getStateMachineName() {
return stateMachineName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-statemachinename
*
*/
@JsonIgnore
public void setStateMachineName(CharSequence stateMachineName) {
this.stateMachineName = stateMachineName;
}
public TopicRuleStepFunctionsAction withStateMachineName(CharSequence stateMachineName) {
this.stateMachineName = stateMachineName;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("executionNamePrefix", executionNamePrefix).append("roleArn", roleArn).append("stateMachineName", stateMachineName).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(executionNamePrefix).append(roleArn).append(stateMachineName).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof TopicRuleStepFunctionsAction) == false) {
return false;
}
TopicRuleStepFunctionsAction rhs = ((TopicRuleStepFunctionsAction) other);
return new EqualsBuilder().append(executionNamePrefix, rhs.executionNamePrefix).append(roleArn, rhs.roleArn).append(stateMachineName, rhs.stateMachineName).isEquals();
}
}