shiver.me.timbers.aws.greengrass.ResourceDefinitionLocalVolumeResourceData Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.greengrass;
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;
/**
* ResourceDefinitionLocalVolumeResourceData
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-localvolumeresourcedata.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"SourcePath",
"DestinationPath",
"GroupOwnerSetting"
})
public class ResourceDefinitionLocalVolumeResourceData implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-localvolumeresourcedata.html#cfn-greengrass-resourcedefinition-localvolumeresourcedata-sourcepath
*
*/
@JsonProperty("SourcePath")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-localvolumeresourcedata.html#cfn-greengrass-resourcedefinition-localvolumeresourcedata-sourcepath")
private CharSequence sourcePath;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-localvolumeresourcedata.html#cfn-greengrass-resourcedefinition-localvolumeresourcedata-destinationpath
*
*/
@JsonProperty("DestinationPath")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-localvolumeresourcedata.html#cfn-greengrass-resourcedefinition-localvolumeresourcedata-destinationpath")
private CharSequence destinationPath;
/**
* ResourceDefinitionGroupOwnerSetting
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-groupownersetting.html
*
*/
@JsonProperty("GroupOwnerSetting")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-groupownersetting.html")
private Property groupOwnerSetting;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-localvolumeresourcedata.html#cfn-greengrass-resourcedefinition-localvolumeresourcedata-sourcepath
*
*/
@JsonIgnore
public CharSequence getSourcePath() {
return sourcePath;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-localvolumeresourcedata.html#cfn-greengrass-resourcedefinition-localvolumeresourcedata-sourcepath
*
*/
@JsonIgnore
public void setSourcePath(CharSequence sourcePath) {
this.sourcePath = sourcePath;
}
public ResourceDefinitionLocalVolumeResourceData withSourcePath(CharSequence sourcePath) {
this.sourcePath = sourcePath;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-localvolumeresourcedata.html#cfn-greengrass-resourcedefinition-localvolumeresourcedata-destinationpath
*
*/
@JsonIgnore
public CharSequence getDestinationPath() {
return destinationPath;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-localvolumeresourcedata.html#cfn-greengrass-resourcedefinition-localvolumeresourcedata-destinationpath
*
*/
@JsonIgnore
public void setDestinationPath(CharSequence destinationPath) {
this.destinationPath = destinationPath;
}
public ResourceDefinitionLocalVolumeResourceData withDestinationPath(CharSequence destinationPath) {
this.destinationPath = destinationPath;
return this;
}
/**
* ResourceDefinitionGroupOwnerSetting
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-groupownersetting.html
*
*/
@JsonIgnore
public Property getGroupOwnerSetting() {
return groupOwnerSetting;
}
/**
* ResourceDefinitionGroupOwnerSetting
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-groupownersetting.html
*
*/
@JsonIgnore
public void setGroupOwnerSetting(Property groupOwnerSetting) {
this.groupOwnerSetting = groupOwnerSetting;
}
public ResourceDefinitionLocalVolumeResourceData withGroupOwnerSetting(Property groupOwnerSetting) {
this.groupOwnerSetting = groupOwnerSetting;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("sourcePath", sourcePath).append("destinationPath", destinationPath).append("groupOwnerSetting", groupOwnerSetting).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(groupOwnerSetting).append(destinationPath).append(sourcePath).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ResourceDefinitionLocalVolumeResourceData) == false) {
return false;
}
ResourceDefinitionLocalVolumeResourceData rhs = ((ResourceDefinitionLocalVolumeResourceData) other);
return new EqualsBuilder().append(groupOwnerSetting, rhs.groupOwnerSetting).append(destinationPath, rhs.destinationPath).append(sourcePath, rhs.sourcePath).isEquals();
}
}