/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.apigateway.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PutGatewayResponseRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The string identifier of the associated RestApi. *
*/ private String restApiId; /** ** The response type of the associated GatewayResponse *
*/ private String responseType; /** ** The HTTP status code of the GatewayResponse. *
*/ private String statusCode; /** ** Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of * key-value pairs. *
*/ private java.util.Map* Response templates of the GatewayResponse as a string-to-string map of key-value pairs. *
*/ private java.util.Map* The string identifier of the associated RestApi. *
* * @param restApiId * The string identifier of the associated RestApi. */ public void setRestApiId(String restApiId) { this.restApiId = restApiId; } /** ** The string identifier of the associated RestApi. *
* * @return The string identifier of the associated RestApi. */ public String getRestApiId() { return this.restApiId; } /** ** The string identifier of the associated RestApi. *
* * @param restApiId * The string identifier of the associated RestApi. * @return Returns a reference to this object so that method calls can be chained together. */ public PutGatewayResponseRequest withRestApiId(String restApiId) { setRestApiId(restApiId); return this; } /** ** The response type of the associated GatewayResponse *
* * @param responseType * The response type of the associated GatewayResponse * @see GatewayResponseType */ public void setResponseType(String responseType) { this.responseType = responseType; } /** ** The response type of the associated GatewayResponse *
* * @return The response type of the associated GatewayResponse * @see GatewayResponseType */ public String getResponseType() { return this.responseType; } /** ** The response type of the associated GatewayResponse *
* * @param responseType * The response type of the associated GatewayResponse * @return Returns a reference to this object so that method calls can be chained together. * @see GatewayResponseType */ public PutGatewayResponseRequest withResponseType(String responseType) { setResponseType(responseType); return this; } /** ** The response type of the associated GatewayResponse *
* * @param responseType * The response type of the associated GatewayResponse * @see GatewayResponseType */ public void setResponseType(GatewayResponseType responseType) { withResponseType(responseType); } /** ** The response type of the associated GatewayResponse *
* * @param responseType * The response type of the associated GatewayResponse * @return Returns a reference to this object so that method calls can be chained together. * @see GatewayResponseType */ public PutGatewayResponseRequest withResponseType(GatewayResponseType responseType) { this.responseType = responseType.toString(); return this; } /** ** The HTTP status code of the GatewayResponse. *
* * @param statusCode * The HTTP status code of the GatewayResponse. */ public void setStatusCode(String statusCode) { this.statusCode = statusCode; } /** ** The HTTP status code of the GatewayResponse. *
* * @return The HTTP status code of the GatewayResponse. */ public String getStatusCode() { return this.statusCode; } /** ** The HTTP status code of the GatewayResponse. *
* * @param statusCode * The HTTP status code of the GatewayResponse. * @return Returns a reference to this object so that method calls can be chained together. */ public PutGatewayResponseRequest withStatusCode(String statusCode) { setStatusCode(statusCode); return this; } /** ** Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of * key-value pairs. *
* * @return Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map * of key-value pairs. */ public java.util.Map* Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of * key-value pairs. *
* * @param responseParameters * Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of * key-value pairs. */ public void setResponseParameters(java.util.Map* Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of * key-value pairs. *
* * @param responseParameters * Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of * key-value pairs. * @return Returns a reference to this object so that method calls can be chained together. */ public PutGatewayResponseRequest withResponseParameters(java.util.Map* Response templates of the GatewayResponse as a string-to-string map of key-value pairs. *
* * @return Response templates of the GatewayResponse as a string-to-string map of key-value pairs. */ public java.util.Map* Response templates of the GatewayResponse as a string-to-string map of key-value pairs. *
* * @param responseTemplates * Response templates of the GatewayResponse as a string-to-string map of key-value pairs. */ public void setResponseTemplates(java.util.Map* Response templates of the GatewayResponse as a string-to-string map of key-value pairs. *
* * @param responseTemplates * Response templates of the GatewayResponse as a string-to-string map of key-value pairs. * @return Returns a reference to this object so that method calls can be chained together. */ public PutGatewayResponseRequest withResponseTemplates(java.util.Map