
shiver.me.timbers.aws.iotevents.DetectorModelSetVariable Maven / Gradle / Ivy
package shiver.me.timbers.aws.iotevents;
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;
/**
* DetectorModelSetVariable
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-setvariable.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"VariableName",
"Value"
})
public class DetectorModelSetVariable implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-setvariable.html#cfn-iotevents-detectormodel-setvariable-variablename
*
*/
@JsonProperty("VariableName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-setvariable.html#cfn-iotevents-detectormodel-setvariable-variablename")
private CharSequence variableName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-setvariable.html#cfn-iotevents-detectormodel-setvariable-value
*
*/
@JsonProperty("Value")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-setvariable.html#cfn-iotevents-detectormodel-setvariable-value")
private CharSequence value;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-setvariable.html#cfn-iotevents-detectormodel-setvariable-variablename
*
*/
@JsonIgnore
public CharSequence getVariableName() {
return variableName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-setvariable.html#cfn-iotevents-detectormodel-setvariable-variablename
*
*/
@JsonIgnore
public void setVariableName(CharSequence variableName) {
this.variableName = variableName;
}
public DetectorModelSetVariable withVariableName(CharSequence variableName) {
this.variableName = variableName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-setvariable.html#cfn-iotevents-detectormodel-setvariable-value
*
*/
@JsonIgnore
public CharSequence getValue() {
return value;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-setvariable.html#cfn-iotevents-detectormodel-setvariable-value
*
*/
@JsonIgnore
public void setValue(CharSequence value) {
this.value = value;
}
public DetectorModelSetVariable withValue(CharSequence value) {
this.value = value;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("variableName", variableName).append("value", value).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(value).append(variableName).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DetectorModelSetVariable) == false) {
return false;
}
DetectorModelSetVariable rhs = ((DetectorModelSetVariable) other);
return new EqualsBuilder().append(value, rhs.value).append(variableName, rhs.variableName).isEquals();
}
}