shiver.me.timbers.aws.ec2.LaunchTemplateBlockDeviceMapping Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.ec2;
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;
/**
* LaunchTemplateBlockDeviceMapping
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Ebs",
"NoDevice",
"VirtualName",
"DeviceName"
})
public class LaunchTemplateBlockDeviceMapping implements Property
{
/**
* LaunchTemplateEbs
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html
*
*/
@JsonProperty("Ebs")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html")
private Property ebs;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-nodevice
*
*/
@JsonProperty("NoDevice")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-nodevice")
private CharSequence noDevice;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-virtualname
*
*/
@JsonProperty("VirtualName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-virtualname")
private CharSequence virtualName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-devicename
*
*/
@JsonProperty("DeviceName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-devicename")
private CharSequence deviceName;
/**
* LaunchTemplateEbs
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html
*
*/
@JsonIgnore
public Property getEbs() {
return ebs;
}
/**
* LaunchTemplateEbs
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html
*
*/
@JsonIgnore
public void setEbs(Property ebs) {
this.ebs = ebs;
}
public LaunchTemplateBlockDeviceMapping withEbs(Property ebs) {
this.ebs = ebs;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-nodevice
*
*/
@JsonIgnore
public CharSequence getNoDevice() {
return noDevice;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-nodevice
*
*/
@JsonIgnore
public void setNoDevice(CharSequence noDevice) {
this.noDevice = noDevice;
}
public LaunchTemplateBlockDeviceMapping withNoDevice(CharSequence noDevice) {
this.noDevice = noDevice;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-virtualname
*
*/
@JsonIgnore
public CharSequence getVirtualName() {
return virtualName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-virtualname
*
*/
@JsonIgnore
public void setVirtualName(CharSequence virtualName) {
this.virtualName = virtualName;
}
public LaunchTemplateBlockDeviceMapping withVirtualName(CharSequence virtualName) {
this.virtualName = virtualName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-devicename
*
*/
@JsonIgnore
public CharSequence getDeviceName() {
return deviceName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-devicename
*
*/
@JsonIgnore
public void setDeviceName(CharSequence deviceName) {
this.deviceName = deviceName;
}
public LaunchTemplateBlockDeviceMapping withDeviceName(CharSequence deviceName) {
this.deviceName = deviceName;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("ebs", ebs).append("noDevice", noDevice).append("virtualName", virtualName).append("deviceName", deviceName).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(noDevice).append(deviceName).append(ebs).append(virtualName).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof LaunchTemplateBlockDeviceMapping) == false) {
return false;
}
LaunchTemplateBlockDeviceMapping rhs = ((LaunchTemplateBlockDeviceMapping) other);
return new EqualsBuilder().append(noDevice, rhs.noDevice).append(deviceName, rhs.deviceName).append(ebs, rhs.ebs).append(virtualName, rhs.virtualName).isEquals();
}
}