shiver.me.timbers.aws.apigatewayv2.IntegrationResponse Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.apigatewayv2;
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;
/**
* IntegrationResponse
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"ResponseTemplates",
"TemplateSelectionExpression",
"ResponseParameters",
"ContentHandlingStrategy",
"IntegrationId",
"IntegrationResponseKey",
"ApiId"
})
public class IntegrationResponse {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-responsetemplates
*
*/
@JsonProperty("ResponseTemplates")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-responsetemplates")
private Object responseTemplates;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-templateselectionexpression
*
*/
@JsonProperty("TemplateSelectionExpression")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-templateselectionexpression")
private CharSequence templateSelectionExpression;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-responseparameters
*
*/
@JsonProperty("ResponseParameters")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-responseparameters")
private Object responseParameters;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-contenthandlingstrategy
*
*/
@JsonProperty("ContentHandlingStrategy")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-contenthandlingstrategy")
private CharSequence contentHandlingStrategy;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-integrationid
*
*/
@JsonProperty("IntegrationId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-integrationid")
private CharSequence integrationId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-integrationresponsekey
*
*/
@JsonProperty("IntegrationResponseKey")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-integrationresponsekey")
private CharSequence integrationResponseKey;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-apiid
*
*/
@JsonProperty("ApiId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-apiid")
private CharSequence apiId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-responsetemplates
*
*/
@JsonIgnore
public Object getResponseTemplates() {
return responseTemplates;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-responsetemplates
*
*/
@JsonIgnore
public void setResponseTemplates(Object responseTemplates) {
this.responseTemplates = responseTemplates;
}
public IntegrationResponse withResponseTemplates(Object responseTemplates) {
this.responseTemplates = responseTemplates;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-templateselectionexpression
*
*/
@JsonIgnore
public CharSequence getTemplateSelectionExpression() {
return templateSelectionExpression;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-templateselectionexpression
*
*/
@JsonIgnore
public void setTemplateSelectionExpression(CharSequence templateSelectionExpression) {
this.templateSelectionExpression = templateSelectionExpression;
}
public IntegrationResponse withTemplateSelectionExpression(CharSequence templateSelectionExpression) {
this.templateSelectionExpression = templateSelectionExpression;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-responseparameters
*
*/
@JsonIgnore
public Object getResponseParameters() {
return responseParameters;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-responseparameters
*
*/
@JsonIgnore
public void setResponseParameters(Object responseParameters) {
this.responseParameters = responseParameters;
}
public IntegrationResponse withResponseParameters(Object responseParameters) {
this.responseParameters = responseParameters;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-contenthandlingstrategy
*
*/
@JsonIgnore
public CharSequence getContentHandlingStrategy() {
return contentHandlingStrategy;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-contenthandlingstrategy
*
*/
@JsonIgnore
public void setContentHandlingStrategy(CharSequence contentHandlingStrategy) {
this.contentHandlingStrategy = contentHandlingStrategy;
}
public IntegrationResponse withContentHandlingStrategy(CharSequence contentHandlingStrategy) {
this.contentHandlingStrategy = contentHandlingStrategy;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-integrationid
*
*/
@JsonIgnore
public CharSequence getIntegrationId() {
return integrationId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-integrationid
*
*/
@JsonIgnore
public void setIntegrationId(CharSequence integrationId) {
this.integrationId = integrationId;
}
public IntegrationResponse withIntegrationId(CharSequence integrationId) {
this.integrationId = integrationId;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-integrationresponsekey
*
*/
@JsonIgnore
public CharSequence getIntegrationResponseKey() {
return integrationResponseKey;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-integrationresponsekey
*
*/
@JsonIgnore
public void setIntegrationResponseKey(CharSequence integrationResponseKey) {
this.integrationResponseKey = integrationResponseKey;
}
public IntegrationResponse withIntegrationResponseKey(CharSequence integrationResponseKey) {
this.integrationResponseKey = integrationResponseKey;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-apiid
*
*/
@JsonIgnore
public CharSequence getApiId() {
return apiId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-apiid
*
*/
@JsonIgnore
public void setApiId(CharSequence apiId) {
this.apiId = apiId;
}
public IntegrationResponse withApiId(CharSequence apiId) {
this.apiId = apiId;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("responseTemplates", responseTemplates).append("templateSelectionExpression", templateSelectionExpression).append("responseParameters", responseParameters).append("contentHandlingStrategy", contentHandlingStrategy).append("integrationId", integrationId).append("integrationResponseKey", integrationResponseKey).append("apiId", apiId).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(responseParameters).append(integrationResponseKey).append(templateSelectionExpression).append(integrationId).append(responseTemplates).append(apiId).append(contentHandlingStrategy).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof IntegrationResponse) == false) {
return false;
}
IntegrationResponse rhs = ((IntegrationResponse) other);
return new EqualsBuilder().append(responseParameters, rhs.responseParameters).append(integrationResponseKey, rhs.integrationResponseKey).append(templateSelectionExpression, rhs.templateSelectionExpression).append(integrationId, rhs.integrationId).append(responseTemplates, rhs.responseTemplates).append(apiId, rhs.apiId).append(contentHandlingStrategy, rhs.contentHandlingStrategy).isEquals();
}
}