/* * 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 apigatewayv2-2018-11-29.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.ApiGatewayV2.Model { /// /// This is the response object from the UpdateIntegrationResponse operation. /// public partial class UpdateIntegrationResponseResponse : AmazonWebServiceResponse { private ContentHandlingStrategy _contentHandlingStrategy; private string _integrationResponseId; private string _integrationResponseKey; private Dictionary _responseParameters = new Dictionary(); private Dictionary _responseTemplates = new Dictionary(); private string _templateSelectionExpression; /// /// Gets and sets the property ContentHandlingStrategy. /// /// Supported only for WebSocket APIs. Specifies how to handle response payload content /// type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with /// the following behaviors: /// /// /// /// CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the /// corresponding binary blob. /// /// /// /// CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded /// string. /// /// /// /// If this property is not defined, the response payload will be passed through from /// the integration response to the route response or method response without modification. /// /// public ContentHandlingStrategy ContentHandlingStrategy { get { return this._contentHandlingStrategy; } set { this._contentHandlingStrategy = value; } } // Check to see if ContentHandlingStrategy property is set internal bool IsSetContentHandlingStrategy() { return this._contentHandlingStrategy != null; } /// /// Gets and sets the property IntegrationResponseId. /// /// The integration response ID. /// /// public string IntegrationResponseId { get { return this._integrationResponseId; } set { this._integrationResponseId = value; } } // Check to see if IntegrationResponseId property is set internal bool IsSetIntegrationResponseId() { return this._integrationResponseId != null; } /// /// Gets and sets the property IntegrationResponseKey. /// /// The integration response key. /// /// public string IntegrationResponseKey { get { return this._integrationResponseKey; } set { this._integrationResponseKey = value; } } // Check to see if IntegrationResponseKey property is set internal bool IsSetIntegrationResponseKey() { return this._integrationResponseKey != null; } /// /// Gets and sets the property ResponseParameters. /// /// A key-value map specifying response parameters that are passed to the method response /// from the backend. The key is a method response header parameter name and the mapped /// value is an integration response header value, a static value enclosed within a pair /// of single quotes, or a JSON expression from the integration response body. The mapping /// key must match the pattern of method.response.header.{name}, where name is a valid /// and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} /// or integration.response.body.{JSON-expression}, where name is a valid and unique response /// header name and 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 ResponseTemplates. /// /// The collection of response templates for the integration response as a string-to-string /// map of key-value pairs. Response templates are represented as a key/value map, with /// a content-type as the key and a template as the value. /// /// 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 TemplateSelectionExpression. /// /// The template selection expressions for the integration response. /// /// public string TemplateSelectionExpression { get { return this._templateSelectionExpression; } set { this._templateSelectionExpression = value; } } // Check to see if TemplateSelectionExpression property is set internal bool IsSetTemplateSelectionExpression() { return this._templateSelectionExpression != null; } } }