All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shiver.me.timbers.aws.ec2.LaunchTemplatePlacement Maven / Gradle / Ivy


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;


/**
 * LaunchTemplatePlacement
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "GroupName", "Tenancy", "AvailabilityZone", "Affinity", "HostId" }) public class LaunchTemplatePlacement implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-groupname * */ @JsonProperty("GroupName") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-groupname") private CharSequence groupName; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-tenancy * */ @JsonProperty("Tenancy") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-tenancy") private CharSequence tenancy; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-availabilityzone * */ @JsonProperty("AvailabilityZone") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-availabilityzone") private CharSequence availabilityZone; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-affinity * */ @JsonProperty("Affinity") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-affinity") private CharSequence affinity; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-hostid * */ @JsonProperty("HostId") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-hostid") private CharSequence hostId; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-groupname * */ @JsonIgnore public CharSequence getGroupName() { return groupName; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-groupname * */ @JsonIgnore public void setGroupName(CharSequence groupName) { this.groupName = groupName; } public LaunchTemplatePlacement withGroupName(CharSequence groupName) { this.groupName = groupName; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-tenancy * */ @JsonIgnore public CharSequence getTenancy() { return tenancy; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-tenancy * */ @JsonIgnore public void setTenancy(CharSequence tenancy) { this.tenancy = tenancy; } public LaunchTemplatePlacement withTenancy(CharSequence tenancy) { this.tenancy = tenancy; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-availabilityzone * */ @JsonIgnore public CharSequence getAvailabilityZone() { return availabilityZone; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-availabilityzone * */ @JsonIgnore public void setAvailabilityZone(CharSequence availabilityZone) { this.availabilityZone = availabilityZone; } public LaunchTemplatePlacement withAvailabilityZone(CharSequence availabilityZone) { this.availabilityZone = availabilityZone; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-affinity * */ @JsonIgnore public CharSequence getAffinity() { return affinity; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-affinity * */ @JsonIgnore public void setAffinity(CharSequence affinity) { this.affinity = affinity; } public LaunchTemplatePlacement withAffinity(CharSequence affinity) { this.affinity = affinity; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-hostid * */ @JsonIgnore public CharSequence getHostId() { return hostId; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-hostid * */ @JsonIgnore public void setHostId(CharSequence hostId) { this.hostId = hostId; } public LaunchTemplatePlacement withHostId(CharSequence hostId) { this.hostId = hostId; return this; } @Override public String toString() { return new ToStringBuilder(this).append("groupName", groupName).append("tenancy", tenancy).append("availabilityZone", availabilityZone).append("affinity", affinity).append("hostId", hostId).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(tenancy).append(hostId).append(groupName).append(availabilityZone).append(affinity).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof LaunchTemplatePlacement) == false) { return false; } LaunchTemplatePlacement rhs = ((LaunchTemplatePlacement) other); return new EqualsBuilder().append(tenancy, rhs.tenancy).append(hostId, rhs.hostId).append(groupName, rhs.groupName).append(availabilityZone, rhs.availabilityZone).append(affinity, rhs.affinity).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy