/*
* 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
{
///
/// Container for the parameters to the PutIntegrationResponse operation.
/// Represents a put integration.
///
public partial class PutIntegrationResponseRequest : AmazonAPIGatewayRequest
{
private ContentHandlingStrategy _contentHandling;
private string _httpMethod;
private string _resourceId;
private Dictionary _responseParameters = new Dictionary();
private Dictionary _responseTemplates = new Dictionary();
private string _restApiId;
private string _selectionPattern;
private string _statusCode;
///
/// Gets and sets the property ContentHandling.
///
/// Specifies how to handle response payload content type conversions. Supported values
/// are CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following
/// behaviors:
///
///
///
/// If this property is not defined, the response payload will be passed through from
/// the integration response to the method response without modification.
///
///
public ContentHandlingStrategy ContentHandling
{
get { return this._contentHandling; }
set { this._contentHandling = value; }
}
// Check to see if ContentHandling property is set
internal bool IsSetContentHandling()
{
return this._contentHandling != null;
}
///
/// Gets and sets the property HttpMethod.
///
/// Specifies a put integration response request's HTTP method.
///
///
[AWSProperty(Required=true)]
public string HttpMethod
{
get { return this._httpMethod; }
set { this._httpMethod = value; }
}
// Check to see if HttpMethod property is set
internal bool IsSetHttpMethod()
{
return this._httpMethod != null;
}
///
/// Gets and sets the property ResourceId.
///
/// Specifies a put integration response request's resource identifier.
///
///
[AWSProperty(Required=true)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
///
/// Gets and sets the property ResponseParameters.
///
/// A key-value map specifying response parameters that are passed to the method response
/// from the back end. 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
must be a valid and unique response header name and JSON-expression
/// 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.
///
/// Specifies a put integration response's templates.
///
///
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 RestApiId.
///
/// The string identifier of the associated RestApi.
///
///
[AWSProperty(Required=true)]
public string RestApiId
{
get { return this._restApiId; }
set { this._restApiId = value; }
}
// Check to see if RestApiId property is set
internal bool IsSetRestApiId()
{
return this._restApiId != null;
}
///
/// Gets and sets the property SelectionPattern.
///
/// Specifies the selection pattern of a put integration response.
///
///
public string SelectionPattern
{
get { return this._selectionPattern; }
set { this._selectionPattern = value; }
}
// Check to see if SelectionPattern property is set
internal bool IsSetSelectionPattern()
{
return this._selectionPattern != null;
}
///
/// Gets and sets the property StatusCode.
///
/// Specifies the status code that is used to map the integration response to an existing
/// MethodResponse.
///
///
[AWSProperty(Required=true)]
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;
}
}
}