/* * 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 { /// /// A gateway response of a given response type and status code, with optional response /// parameters and mapping templates. /// public partial class GatewayResponse { private bool? _defaultResponse; private Dictionary _responseParameters = new Dictionary(); private Dictionary _responseTemplates = new Dictionary(); private GatewayResponseType _responseType; private string _statusCode; /// /// Gets and sets the property DefaultResponse. /// /// A Boolean flag to indicate whether this GatewayResponse is the default gateway response /// (true) or not (false). A default gateway response is one /// generated by API Gateway without any customization by an API developer. /// /// public bool DefaultResponse { get { return this._defaultResponse.GetValueOrDefault(); } set { this._defaultResponse = value; } } // Check to see if DefaultResponse property is set internal bool IsSetDefaultResponse() { return this._defaultResponse.HasValue; } /// /// Gets and sets the property ResponseParameters. /// /// Response parameters (paths, query strings and headers) of the GatewayResponse as a /// string-to-string map of key-value pairs. /// /// 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 ResponseTemplates. /// /// Response templates of the GatewayResponse as a string-to-string map of key-value pairs. /// /// public Dictionary ResponseTemplates { get { return this._responseTemplates; } set { this._responseTemplates = value; } } // Check to see if ResponseTemplates property is set internal bool IsSetResponseTemplates() { return this._responseTemplates != null && this._responseTemplates.Count > 0; } /// /// Gets and sets the property ResponseType. /// /// The response type of the associated GatewayResponse. /// /// public GatewayResponseType ResponseType { get { return this._responseType; } set { this._responseType = value; } } // Check to see if ResponseType property is set internal bool IsSetResponseType() { return this._responseType != null; } /// /// Gets and sets the property StatusCode. /// /// The HTTP status code for this GatewayResponse. /// /// 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; } } }