shiver.me.timbers.aws.iotanalytics.DatasetContainerAction Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.iotanalytics;
import java.util.ArrayList;
import java.util.List;
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;
/**
* DatasetContainerAction
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Variables",
"ExecutionRoleArn",
"Image",
"ResourceConfiguration"
})
public class DatasetContainerAction implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-variables
*
*/
@JsonProperty("Variables")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-variables")
private List> variables = new ArrayList>();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-executionrolearn
*
*/
@JsonProperty("ExecutionRoleArn")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-executionrolearn")
private CharSequence executionRoleArn;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-image
*
*/
@JsonProperty("Image")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-image")
private CharSequence image;
/**
* DatasetResourceConfiguration
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-resourceconfiguration.html
*
*/
@JsonProperty("ResourceConfiguration")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-resourceconfiguration.html")
private Property resourceConfiguration;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-variables
*
*/
@JsonIgnore
public List> getVariables() {
return variables;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-variables
*
*/
@JsonIgnore
public void setVariables(List> variables) {
this.variables = variables;
}
public DatasetContainerAction withVariables(List> variables) {
this.variables = variables;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-executionrolearn
*
*/
@JsonIgnore
public CharSequence getExecutionRoleArn() {
return executionRoleArn;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-executionrolearn
*
*/
@JsonIgnore
public void setExecutionRoleArn(CharSequence executionRoleArn) {
this.executionRoleArn = executionRoleArn;
}
public DatasetContainerAction withExecutionRoleArn(CharSequence executionRoleArn) {
this.executionRoleArn = executionRoleArn;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-image
*
*/
@JsonIgnore
public CharSequence getImage() {
return image;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-image
*
*/
@JsonIgnore
public void setImage(CharSequence image) {
this.image = image;
}
public DatasetContainerAction withImage(CharSequence image) {
this.image = image;
return this;
}
/**
* DatasetResourceConfiguration
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-resourceconfiguration.html
*
*/
@JsonIgnore
public Property getResourceConfiguration() {
return resourceConfiguration;
}
/**
* DatasetResourceConfiguration
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-resourceconfiguration.html
*
*/
@JsonIgnore
public void setResourceConfiguration(Property resourceConfiguration) {
this.resourceConfiguration = resourceConfiguration;
}
public DatasetContainerAction withResourceConfiguration(Property resourceConfiguration) {
this.resourceConfiguration = resourceConfiguration;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("variables", variables).append("executionRoleArn", executionRoleArn).append("image", image).append("resourceConfiguration", resourceConfiguration).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(image).append(variables).append(executionRoleArn).append(resourceConfiguration).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DatasetContainerAction) == false) {
return false;
}
DatasetContainerAction rhs = ((DatasetContainerAction) other);
return new EqualsBuilder().append(image, rhs.image).append(variables, rhs.variables).append(executionRoleArn, rhs.executionRoleArn).append(resourceConfiguration, rhs.resourceConfiguration).isEquals();
}
}