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

shiver.me.timbers.aws.apigateway.GatewayResponse Maven / Gradle / Ivy


package shiver.me.timbers.aws.apigateway;

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


/**
 * GatewayResponse
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "ResponseParameters", "ResponseTemplates", "ResponseType", "RestApiId", "StatusCode" }) public class GatewayResponse { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responseparameters * */ @JsonProperty("ResponseParameters") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responseparameters") private Map responseParameters; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responsetemplates * */ @JsonProperty("ResponseTemplates") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responsetemplates") private Map responseTemplates; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responsetype * */ @JsonProperty("ResponseType") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responsetype") private CharSequence responseType; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-restapiid * */ @JsonProperty("RestApiId") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-restapiid") private CharSequence restApiId; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-statuscode * */ @JsonProperty("StatusCode") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-statuscode") private CharSequence statusCode; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responseparameters * */ @JsonIgnore public Map getResponseParameters() { return responseParameters; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responseparameters * */ @JsonIgnore public void setResponseParameters(Map responseParameters) { this.responseParameters = responseParameters; } public GatewayResponse withResponseParameters(Map responseParameters) { this.responseParameters = responseParameters; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responsetemplates * */ @JsonIgnore public Map getResponseTemplates() { return responseTemplates; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responsetemplates * */ @JsonIgnore public void setResponseTemplates(Map responseTemplates) { this.responseTemplates = responseTemplates; } public GatewayResponse withResponseTemplates(Map responseTemplates) { this.responseTemplates = responseTemplates; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responsetype * */ @JsonIgnore public CharSequence getResponseType() { return responseType; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responsetype * */ @JsonIgnore public void setResponseType(CharSequence responseType) { this.responseType = responseType; } public GatewayResponse withResponseType(CharSequence responseType) { this.responseType = responseType; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-restapiid * */ @JsonIgnore public CharSequence getRestApiId() { return restApiId; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-restapiid * */ @JsonIgnore public void setRestApiId(CharSequence restApiId) { this.restApiId = restApiId; } public GatewayResponse withRestApiId(CharSequence restApiId) { this.restApiId = restApiId; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-statuscode * */ @JsonIgnore public CharSequence getStatusCode() { return statusCode; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-statuscode * */ @JsonIgnore public void setStatusCode(CharSequence statusCode) { this.statusCode = statusCode; } public GatewayResponse withStatusCode(CharSequence statusCode) { this.statusCode = statusCode; return this; } @Override public java.lang.String toString() { return new ToStringBuilder(this).append("responseParameters", responseParameters).append("responseTemplates", responseTemplates).append("responseType", responseType).append("restApiId", restApiId).append("statusCode", statusCode).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(responseParameters).append(responseType).append(responseTemplates).append(restApiId).append(statusCode).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof GatewayResponse) == false) { return false; } GatewayResponse rhs = ((GatewayResponse) other); return new EqualsBuilder().append(responseParameters, rhs.responseParameters).append(responseType, rhs.responseType).append(responseTemplates, rhs.responseTemplates).append(restApiId, rhs.restApiId).append(statusCode, rhs.statusCode).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy