/* * 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 { /// /// Container for the parameters to the CreateIntegrationResponse operation. /// Creates an IntegrationResponses. /// public partial class CreateIntegrationResponseRequest : AmazonApiGatewayV2Request { private string _apiId; private ContentHandlingStrategy _contentHandlingStrategy; private string _integrationId; private string _integrationResponseKey; private Dictionary _responseParameters = new Dictionary(); private Dictionary _responseTemplates = new Dictionary(); private string _templateSelectionExpression; /// /// Gets and sets the property ApiId. /// /// The API identifier. /// /// [AWSProperty(Required=true)] public string ApiId { get { return this._apiId; } set { this._apiId = value; } } // Check to see if ApiId property is set internal bool IsSetApiId() { return this._apiId != null; } /// /// Gets and sets the property ContentHandlingStrategy. /// /// 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 IntegrationId. /// /// The integration ID. /// /// [AWSProperty(Required=true)] public string IntegrationId { get { return this._integrationId; } set { this._integrationId = value; } } // Check to see if IntegrationId property is set internal bool IsSetIntegrationId() { return this._integrationId != null; } /// /// Gets and sets the property IntegrationResponseKey. /// /// The integration response key. /// /// [AWSProperty(Required=true)] 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 expression for the integration response. Supported only for /// WebSocket APIs. /// /// 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; } } }