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

shiver.me.timbers.aws.appmesh.RouteHttpRetryPolicy Maven / Gradle / Ivy

Go to download

This library is a complete mapping of the AWS CloudFormation Resource Specification into Java objects. The objects have been generated directly from the specification so should be a direct one to one mapping.

The newest version!

package shiver.me.timbers.aws.appmesh;

import java.util.ArrayList;
import java.util.List;
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;


/**
 * RouteHttpRetryPolicy
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "MaxRetries", "PerRetryTimeout", "HttpRetryEvents", "TcpRetryEvents" }) public class RouteHttpRetryPolicy implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-maxretries * */ @JsonProperty("MaxRetries") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-maxretries") private Number maxRetries; /** * RouteDuration *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-duration.html * */ @JsonProperty("PerRetryTimeout") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-duration.html") private Property perRetryTimeout; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-httpretryevents * */ @JsonProperty("HttpRetryEvents") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-httpretryevents") private List httpRetryEvents = new ArrayList(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-tcpretryevents * */ @JsonProperty("TcpRetryEvents") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-tcpretryevents") private List tcpRetryEvents = new ArrayList(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-maxretries * */ @JsonIgnore public Number getMaxRetries() { return maxRetries; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-maxretries * */ @JsonIgnore public void setMaxRetries(Number maxRetries) { this.maxRetries = maxRetries; } public RouteHttpRetryPolicy withMaxRetries(Number maxRetries) { this.maxRetries = maxRetries; return this; } /** * RouteDuration *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-duration.html * */ @JsonIgnore public Property getPerRetryTimeout() { return perRetryTimeout; } /** * RouteDuration *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-duration.html * */ @JsonIgnore public void setPerRetryTimeout(Property perRetryTimeout) { this.perRetryTimeout = perRetryTimeout; } public RouteHttpRetryPolicy withPerRetryTimeout(Property perRetryTimeout) { this.perRetryTimeout = perRetryTimeout; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-httpretryevents * */ @JsonIgnore public List getHttpRetryEvents() { return httpRetryEvents; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-httpretryevents * */ @JsonIgnore public void setHttpRetryEvents(List httpRetryEvents) { this.httpRetryEvents = httpRetryEvents; } public RouteHttpRetryPolicy withHttpRetryEvents(List httpRetryEvents) { this.httpRetryEvents = httpRetryEvents; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-tcpretryevents * */ @JsonIgnore public List getTcpRetryEvents() { return tcpRetryEvents; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-tcpretryevents * */ @JsonIgnore public void setTcpRetryEvents(List tcpRetryEvents) { this.tcpRetryEvents = tcpRetryEvents; } public RouteHttpRetryPolicy withTcpRetryEvents(List tcpRetryEvents) { this.tcpRetryEvents = tcpRetryEvents; return this; } @Override public String toString() { return new ToStringBuilder(this).append("maxRetries", maxRetries).append("perRetryTimeout", perRetryTimeout).append("httpRetryEvents", httpRetryEvents).append("tcpRetryEvents", tcpRetryEvents).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(maxRetries).append(httpRetryEvents).append(tcpRetryEvents).append(perRetryTimeout).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof RouteHttpRetryPolicy) == false) { return false; } RouteHttpRetryPolicy rhs = ((RouteHttpRetryPolicy) other); return new EqualsBuilder().append(maxRetries, rhs.maxRetries).append(httpRetryEvents, rhs.httpRetryEvents).append(tcpRetryEvents, rhs.tcpRetryEvents).append(perRetryTimeout, rhs.perRetryTimeout).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy