shiver.me.timbers.aws.ec2.EC2FleetFleetLaunchTemplateSpecificationRequest 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;
/**
* EC2FleetFleetLaunchTemplateSpecificationRequest
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"LaunchTemplateName",
"Version",
"LaunchTemplateId"
})
public class EC2FleetFleetLaunchTemplateSpecificationRequest implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-launchtemplatename
*
*/
@JsonProperty("LaunchTemplateName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-launchtemplatename")
private CharSequence launchTemplateName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-version
*
*/
@JsonProperty("Version")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-version")
private CharSequence version;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-launchtemplateid
*
*/
@JsonProperty("LaunchTemplateId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-launchtemplateid")
private CharSequence launchTemplateId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-launchtemplatename
*
*/
@JsonIgnore
public CharSequence getLaunchTemplateName() {
return launchTemplateName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-launchtemplatename
*
*/
@JsonIgnore
public void setLaunchTemplateName(CharSequence launchTemplateName) {
this.launchTemplateName = launchTemplateName;
}
public EC2FleetFleetLaunchTemplateSpecificationRequest withLaunchTemplateName(CharSequence launchTemplateName) {
this.launchTemplateName = launchTemplateName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-version
*
*/
@JsonIgnore
public CharSequence getVersion() {
return version;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-version
*
*/
@JsonIgnore
public void setVersion(CharSequence version) {
this.version = version;
}
public EC2FleetFleetLaunchTemplateSpecificationRequest withVersion(CharSequence version) {
this.version = version;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-launchtemplateid
*
*/
@JsonIgnore
public CharSequence getLaunchTemplateId() {
return launchTemplateId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-launchtemplateid
*
*/
@JsonIgnore
public void setLaunchTemplateId(CharSequence launchTemplateId) {
this.launchTemplateId = launchTemplateId;
}
public EC2FleetFleetLaunchTemplateSpecificationRequest withLaunchTemplateId(CharSequence launchTemplateId) {
this.launchTemplateId = launchTemplateId;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("launchTemplateName", launchTemplateName).append("version", version).append("launchTemplateId", launchTemplateId).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(version).append(launchTemplateId).append(launchTemplateName).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof EC2FleetFleetLaunchTemplateSpecificationRequest) == false) {
return false;
}
EC2FleetFleetLaunchTemplateSpecificationRequest rhs = ((EC2FleetFleetLaunchTemplateSpecificationRequest) other);
return new EqualsBuilder().append(version, rhs.version).append(launchTemplateId, rhs.launchTemplateId).append(launchTemplateName, rhs.launchTemplateName).isEquals();
}
}