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

shiver.me.timbers.aws.ecs.ServiceLoadBalancer 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;


/**
 * ServiceLoadBalancer
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "ContainerName", "ContainerPort", "LoadBalancerName", "TargetGroupArn" }) public class ServiceLoadBalancer implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-containername * */ @JsonProperty("ContainerName") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-containername") private CharSequence containerName; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-containerport * */ @JsonProperty("ContainerPort") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-containerport") private Number containerPort; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-loadbalancername * */ @JsonProperty("LoadBalancerName") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-loadbalancername") private CharSequence loadBalancerName; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-targetgrouparn * */ @JsonProperty("TargetGroupArn") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-targetgrouparn") private CharSequence targetGroupArn; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-containername * */ @JsonIgnore public CharSequence getContainerName() { return containerName; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-containername * */ @JsonIgnore public void setContainerName(CharSequence containerName) { this.containerName = containerName; } public ServiceLoadBalancer withContainerName(CharSequence containerName) { this.containerName = containerName; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-containerport * */ @JsonIgnore public Number getContainerPort() { return containerPort; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-containerport * */ @JsonIgnore public void setContainerPort(Number containerPort) { this.containerPort = containerPort; } public ServiceLoadBalancer withContainerPort(Number containerPort) { this.containerPort = containerPort; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-loadbalancername * */ @JsonIgnore public CharSequence getLoadBalancerName() { return loadBalancerName; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-loadbalancername * */ @JsonIgnore public void setLoadBalancerName(CharSequence loadBalancerName) { this.loadBalancerName = loadBalancerName; } public ServiceLoadBalancer withLoadBalancerName(CharSequence loadBalancerName) { this.loadBalancerName = loadBalancerName; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-targetgrouparn * */ @JsonIgnore public CharSequence getTargetGroupArn() { return targetGroupArn; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-targetgrouparn * */ @JsonIgnore public void setTargetGroupArn(CharSequence targetGroupArn) { this.targetGroupArn = targetGroupArn; } public ServiceLoadBalancer withTargetGroupArn(CharSequence targetGroupArn) { this.targetGroupArn = targetGroupArn; return this; } @Override public String toString() { return new ToStringBuilder(this).append("containerName", containerName).append("containerPort", containerPort).append("loadBalancerName", loadBalancerName).append("targetGroupArn", targetGroupArn).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(containerPort).append(containerName).append(loadBalancerName).append(targetGroupArn).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof ServiceLoadBalancer) == false) { return false; } ServiceLoadBalancer rhs = ((ServiceLoadBalancer) other); return new EqualsBuilder().append(containerPort, rhs.containerPort).append(containerName, rhs.containerName).append(loadBalancerName, rhs.loadBalancerName).append(targetGroupArn, rhs.targetGroupArn).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy