/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.APIGateway.Model { /// /// Represents a method response of a given HTTP status code returned to the client. The /// method response is passed from the back end through the associated integration response /// that can be transformed using a mapping template. /// public partial class PutMethodResponseResponse : AmazonWebServiceResponse { private Dictionary _responseModels = new Dictionary(); private Dictionary _responseParameters = new Dictionary(); private string _statusCode; /// /// Gets and sets the property ResponseModels. /// /// Specifies the Model resources used for the response's content-type. Response models /// are represented as a key/value map, with a content-type as the key and a Model name /// as the value. /// /// public Dictionary ResponseModels { get { return this._responseModels; } set { this._responseModels = value; } } // Check to see if ResponseModels property is set internal bool IsSetResponseModels() { return this._responseModels != null && this._responseModels.Count > 0; } /// /// Gets and sets the property ResponseParameters. /// /// A key-value map specifying required or optional response parameters that API Gateway /// can send back to the caller. A key defines a method response header and the value /// specifies whether the associated method response header is required or not. The expression /// of the key must match the pattern method.response.header.{name}, where /// name is a valid and unique header name. API Gateway passes certain integration /// response data to the method response headers specified here according to the mapping /// you prescribe in the API's IntegrationResponse. The integration response data that /// can be mapped include an integration response header expressed in integration.response.header.{name}, /// a static value enclosed within a pair of single quotes (e.g., 'application/json'), /// or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, /// where JSON-expression is a valid JSON expression without the $ /// prefix.) /// /// public Dictionary ResponseParameters { get { return this._responseParameters; } set { this._responseParameters = value; } } // Check to see if ResponseParameters property is set internal bool IsSetResponseParameters() { return this._responseParameters != null && this._responseParameters.Count > 0; } /// /// Gets and sets the property StatusCode. /// /// The method response's status code. /// /// public string StatusCode { get { return this._statusCode; } set { this._statusCode = value; } } // Check to see if StatusCode property is set internal bool IsSetStatusCode() { return this._statusCode != null; } } }