
shiver.me.timbers.aws.appmesh.RouteGrpcRoute Maven / Gradle / Ivy
package shiver.me.timbers.aws.appmesh;
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;
/**
* RouteGrpcRoute
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroute.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Action",
"RetryPolicy",
"Match"
})
public class RouteGrpcRoute implements Property
{
/**
* RouteGrpcRouteAction
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcrouteaction.html
*
*/
@JsonProperty("Action")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcrouteaction.html")
private Property action;
/**
* RouteGrpcRetryPolicy
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html
*
*/
@JsonProperty("RetryPolicy")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html")
private Property retryPolicy;
/**
* RouteGrpcRouteMatch
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutematch.html
*
*/
@JsonProperty("Match")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutematch.html")
private Property match;
/**
* RouteGrpcRouteAction
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcrouteaction.html
*
*/
@JsonIgnore
public Property getAction() {
return action;
}
/**
* RouteGrpcRouteAction
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcrouteaction.html
*
*/
@JsonIgnore
public void setAction(Property action) {
this.action = action;
}
public RouteGrpcRoute withAction(Property action) {
this.action = action;
return this;
}
/**
* RouteGrpcRetryPolicy
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html
*
*/
@JsonIgnore
public Property getRetryPolicy() {
return retryPolicy;
}
/**
* RouteGrpcRetryPolicy
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html
*
*/
@JsonIgnore
public void setRetryPolicy(Property retryPolicy) {
this.retryPolicy = retryPolicy;
}
public RouteGrpcRoute withRetryPolicy(Property retryPolicy) {
this.retryPolicy = retryPolicy;
return this;
}
/**
* RouteGrpcRouteMatch
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutematch.html
*
*/
@JsonIgnore
public Property getMatch() {
return match;
}
/**
* RouteGrpcRouteMatch
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutematch.html
*
*/
@JsonIgnore
public void setMatch(Property match) {
this.match = match;
}
public RouteGrpcRoute withMatch(Property match) {
this.match = match;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("action", action).append("retryPolicy", retryPolicy).append("match", match).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(match).append(action).append(retryPolicy).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof RouteGrpcRoute) == false) {
return false;
}
RouteGrpcRoute rhs = ((RouteGrpcRoute) other);
return new EqualsBuilder().append(match, rhs.match).append(action, rhs.action).append(retryPolicy, rhs.retryPolicy).isEquals();
}
}