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

shiver.me.timbers.aws.ecs.ServicePlacementStrategy Maven / Gradle / Ivy


package shiver.me.timbers.aws.ecs;

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;


/**
 * ServicePlacementStrategy
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "Field", "Type" }) public class ServicePlacementStrategy implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-field * */ @JsonProperty("Field") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-field") private CharSequence field; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-type * */ @JsonProperty("Type") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-type") private CharSequence type; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-field * */ @JsonIgnore public CharSequence getField() { return field; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-field * */ @JsonIgnore public void setField(CharSequence field) { this.field = field; } public ServicePlacementStrategy withField(CharSequence field) { this.field = field; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-type * */ @JsonIgnore public CharSequence getType() { return type; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-type * */ @JsonIgnore public void setType(CharSequence type) { this.type = type; } public ServicePlacementStrategy withType(CharSequence type) { this.type = type; return this; } @Override public String toString() { return new ToStringBuilder(this).append("field", field).append("type", type).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(field).append(type).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof ServicePlacementStrategy) == false) { return false; } ServicePlacementStrategy rhs = ((ServicePlacementStrategy) other); return new EqualsBuilder().append(field, rhs.field).append(type, rhs.type).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy