repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A gateway response of a given response type and status code, with optional response /// parameters and mapping templates. /// </summary> public partial class GetGatewayResponseResponse : AmazonWebServiceResponse { private bool? _defaultResponse; private Dictionary<string, string> _responseParameters = new Dictionary<string, string>(); private Dictionary<string, string> _responseTemplates = new Dictionary<string, string>(); private GatewayResponseType _responseType; private string _statusCode; /// <summary> /// Gets and sets the property DefaultResponse. /// <para> /// A Boolean flag to indicate whether this GatewayResponse is the default gateway response /// (<code>true</code>) or not (<code>false</code>). A default gateway response is one /// generated by API Gateway without any customization by an API developer. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property ResponseParameters. /// <para> /// Response parameters (paths, query strings and headers) of the GatewayResponse as a /// string-to-string map of key-value pairs. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseTemplates. /// <para> /// Response templates of the GatewayResponse as a string-to-string map of key-value pairs. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseType. /// <para> /// The response type of the associated GatewayResponse. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// The HTTP status code for this GatewayResponse. /// </para> /// </summary> 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; } } }
137
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetGatewayResponses operation. /// Gets the GatewayResponses collection on the given RestApi. If an API developer has /// not added any definitions for gateway responses, the result will be the API Gateway-generated /// default GatewayResponses collection for the supported response types. /// </summary> public partial class GetGatewayResponsesRequest : AmazonAPIGatewayRequest { private int? _limit; private string _position; private string _restApiId; /// <summary> /// Gets and sets the property Limit. /// <para> /// The maximum number of returned results per page. The default value is 25 and the maximum /// value is 500. The GatewayResponses collection does not support pagination and the /// limit does not apply here. /// </para> /// </summary> public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// <summary> /// Gets and sets the property Position. /// <para> /// The current pagination position in the paged result set. The GatewayResponse collection /// does not support pagination and the position does not apply here. /// </para> /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
102
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The collection of the GatewayResponse instances of a RestApi as a <code>responseType</code>-to-GatewayResponse /// object map of key-value pairs. As such, pagination is not supported for querying this /// collection. /// </summary> public partial class GetGatewayResponsesResponse : AmazonWebServiceResponse { private List<GatewayResponse> _items = new List<GatewayResponse>(); private string _position; /// <summary> /// Gets and sets the property Items. /// <para> /// Returns the entire collection, because of no pagination support. /// </para> /// </summary> public List<GatewayResponse> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Position. /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
75
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetIntegration operation. /// Get the integration settings. /// </summary> public partial class GetIntegrationRequest : AmazonAPIGatewayRequest { private string _httpMethod; private string _resourceId; private string _restApiId; /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// Specifies a get integration request's HTTP method. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// Specifies a get integration request's resource identifier /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
99
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration. /// </summary> public partial class GetIntegrationResponse : AmazonWebServiceResponse { private List<string> _cacheKeyParameters = new List<string>(); private string _cacheNamespace; private string _connectionId; private ConnectionType _connectionType; private ContentHandlingStrategy _contentHandling; private string _credentials; private string _httpMethod; private Dictionary<string, IntegrationResponse> _integrationResponses = new Dictionary<string, IntegrationResponse>(); private string _passthroughBehavior; private Dictionary<string, string> _requestParameters = new Dictionary<string, string>(); private Dictionary<string, string> _requestTemplates = new Dictionary<string, string>(); private int? _timeoutInMillis; private TlsConfig _tlsConfig; private IntegrationType _type; private string _uri; /// <summary> /// Gets and sets the property CacheKeyParameters. /// <para> /// A list of request parameters whose values API Gateway caches. To be valid values for /// <code>cacheKeyParameters</code>, these parameters must also be specified for Method /// <code>requestParameters</code>. /// </para> /// </summary> public List<string> CacheKeyParameters { get { return this._cacheKeyParameters; } set { this._cacheKeyParameters = value; } } // Check to see if CacheKeyParameters property is set internal bool IsSetCacheKeyParameters() { return this._cacheKeyParameters != null && this._cacheKeyParameters.Count > 0; } /// <summary> /// Gets and sets the property CacheNamespace. /// <para> /// Specifies a group of related cached parameters. By default, API Gateway uses the resource /// ID as the <code>cacheNamespace</code>. You can specify the same <code>cacheNamespace</code> /// across resources to return the same cached data for requests to different resources. /// </para> /// </summary> public string CacheNamespace { get { return this._cacheNamespace; } set { this._cacheNamespace = value; } } // Check to see if CacheNamespace property is set internal bool IsSetCacheNamespace() { return this._cacheNamespace != null; } /// <summary> /// Gets and sets the property ConnectionId. /// <para> /// The ID of the VpcLink used for the integration when <code>connectionType=VPC_LINK</code> /// and undefined, otherwise. /// </para> /// </summary> public string ConnectionId { get { return this._connectionId; } set { this._connectionId = value; } } // Check to see if ConnectionId property is set internal bool IsSetConnectionId() { return this._connectionId != null; } /// <summary> /// Gets and sets the property ConnectionType. /// <para> /// The type of the network connection to the integration endpoint. The valid value is /// <code>INTERNET</code> for connections through the public routable internet or <code>VPC_LINK</code> /// for private connections between API Gateway and a network load balancer in a VPC. /// The default value is <code>INTERNET</code>. /// </para> /// </summary> public ConnectionType ConnectionType { get { return this._connectionType; } set { this._connectionType = value; } } // Check to see if ConnectionType property is set internal bool IsSetConnectionType() { return this._connectionType != null; } /// <summary> /// Gets and sets the property ContentHandling. /// <para> /// Specifies how to handle request payload content type conversions. Supported values /// are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following /// behaviors: /// </para> /// /// <para> /// If this property is not defined, the request payload will be passed through from the /// method request to integration request without modification, provided that the <code>passthroughBehavior</code> /// is configured to support payload pass-through. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property Credentials. /// <para> /// Specifies the credentials required for the integration, if any. For AWS integrations, /// three options are available. To specify an IAM Role for API Gateway to assume, use /// the role's Amazon Resource Name (ARN). To require that the caller's identity be passed /// through from the request, specify the string <code>arn:aws:iam::\*:user/\*</code>. /// To use resource-based permissions on supported AWS services, specify null. /// </para> /// </summary> public string Credentials { get { return this._credentials; } set { this._credentials = value; } } // Check to see if Credentials property is set internal bool IsSetCredentials() { return this._credentials != null; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// Specifies the integration's HTTP method type. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property IntegrationResponses. /// <para> /// Specifies the integration's responses. /// </para> /// </summary> public Dictionary<string, IntegrationResponse> IntegrationResponses { get { return this._integrationResponses; } set { this._integrationResponses = value; } } // Check to see if IntegrationResponses property is set internal bool IsSetIntegrationResponses() { return this._integrationResponses != null && this._integrationResponses.Count > 0; } /// <summary> /// Gets and sets the property PassthroughBehavior. /// <para> /// Specifies how the method request body of an unmapped content type will be passed through /// the integration request to the back end without transformation. A content type is /// unmapped if no mapping template is defined in the integration or the content type /// does not match any of the mapped content types, as specified in <code>requestTemplates</code>. /// The valid value is one of the following: <code>WHEN_NO_MATCH</code>: passes the method /// request body through the integration request to the back end without transformation /// when the method request content type does not match any content type associated with /// the mapping templates defined in the integration request. <code>WHEN_NO_TEMPLATES</code>: /// passes the method request body through the integration request to the back end without /// transformation when no mapping template is defined in the integration request. If /// a template is defined when this option is selected, the method request of an unmapped /// content-type will be rejected with an HTTP 415 Unsupported Media Type response. <code>NEVER</code>: /// rejects the method request with an HTTP 415 Unsupported Media Type response when either /// the method request content type does not match any content type associated with the /// mapping templates defined in the integration request or no mapping template is defined /// in the integration request. /// </para> /// </summary> public string PassthroughBehavior { get { return this._passthroughBehavior; } set { this._passthroughBehavior = value; } } // Check to see if PassthroughBehavior property is set internal bool IsSetPassthroughBehavior() { return this._passthroughBehavior != null; } /// <summary> /// Gets and sets the property RequestParameters. /// <para> /// A key-value map specifying request parameters that are passed from the method request /// to the back end. The key is an integration request parameter name and the associated /// value is a method request parameter value or static value that must be enclosed within /// single quotes and pre-encoded as required by the back end. The method request parameter /// value must match the pattern of <code>method.request.{location}.{name}</code>, where /// <code>location</code> is <code>querystring</code>, <code>path</code>, or <code>header</code> /// and <code>name</code> must be a valid and unique method request parameter name. /// </para> /// </summary> public Dictionary<string, string> RequestParameters { get { return this._requestParameters; } set { this._requestParameters = value; } } // Check to see if RequestParameters property is set internal bool IsSetRequestParameters() { return this._requestParameters != null && this._requestParameters.Count > 0; } /// <summary> /// Gets and sets the property RequestTemplates. /// <para> /// Represents a map of Velocity templates that are applied on the request payload based /// on the value of the Content-Type header sent by the client. The content type value /// is the key in this map, and the template (as a String) is the value. /// </para> /// </summary> public Dictionary<string, string> RequestTemplates { get { return this._requestTemplates; } set { this._requestTemplates = value; } } // Check to see if RequestTemplates property is set internal bool IsSetRequestTemplates() { return this._requestTemplates != null && this._requestTemplates.Count > 0; } /// <summary> /// Gets and sets the property TimeoutInMillis. /// <para> /// Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds /// or 29 seconds. /// </para> /// </summary> public int TimeoutInMillis { get { return this._timeoutInMillis.GetValueOrDefault(); } set { this._timeoutInMillis = value; } } // Check to see if TimeoutInMillis property is set internal bool IsSetTimeoutInMillis() { return this._timeoutInMillis.HasValue; } /// <summary> /// Gets and sets the property TlsConfig. /// <para> /// Specifies the TLS configuration for an integration. /// </para> /// </summary> public TlsConfig TlsConfig { get { return this._tlsConfig; } set { this._tlsConfig = value; } } // Check to see if TlsConfig property is set internal bool IsSetTlsConfig() { return this._tlsConfig != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// Specifies an API method integration type. The valid value is one of the following: /// </para> /// /// <para> /// For the HTTP and HTTP proxy integrations, each integration can specify a protocol /// (<code>http/https</code>), port and path. Standard 80 and 443 ports are supported /// as well as custom ports above 1024. An HTTP or HTTP proxy integration with a <code>connectionType</code> /// of <code>VPC_LINK</code> is referred to as a private integration and uses a VpcLink /// to connect API Gateway to a network load balancer of a VPC. /// </para> /// </summary> public IntegrationType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property Uri. /// <para> /// Specifies Uniform Resource Identifier (URI) of the integration endpoint. /// </para> /// /// <para> /// For <code>HTTP</code> or <code>HTTP_PROXY</code> integrations, the URI must be a fully /// formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard /// integration, where <code>connectionType</code> is not <code>VPC_LINK</code>, or private /// integration, where <code>connectionType</code> is <code>VPC_LINK</code>. For a private /// HTTP integration, the URI is not used for routing. For <code>AWS</code> or <code>AWS_PROXY</code> /// integrations, the URI is of the form <code>arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}</code>. /// Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name /// of the integrated Amazon Web Services service (e.g., s3); and {subdomain} is a designated /// subdomain supported by certain Amazon Web Services service for fast host-name lookup. /// action can be used for an Amazon Web Services service action-based API, using an Action={name}&amp;{p1}={v1}&amp;p2={v2}... /// query string. The ensuing {service_api} refers to a supported action {name} plus any /// required input parameters. Alternatively, path can be used for an AWS service path-based /// API. The ensuing service_api refers to the path to an Amazon Web Services service /// resource, including the region of the integrated Amazon Web Services service, if applicable. /// For example, for integration with the S3 API of GetObject, the uri can be either <code>arn:aws:apigateway:us-west-2:s3:action/GetObject&amp;Bucket={bucket}&amp;Key={key}</code> /// or <code>arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}</code> /// </para> /// </summary> public string Uri { get { return this._uri; } set { this._uri = value; } } // Check to see if Uri property is set internal bool IsSetUri() { return this._uri != null; } } }
394
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetIntegrationResponse operation. /// Represents a get integration response. /// </summary> public partial class GetIntegrationResponseRequest : AmazonAPIGatewayRequest { private string _httpMethod; private string _resourceId; private string _restApiId; private string _statusCode; /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// Specifies a get integration response request's HTTP method. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// Specifies a get integration response request's resource identifier. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// Specifies a get integration response request's status code. /// </para> /// </summary> [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; } } }
119
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents an integration response. The status code must map to an existing MethodResponse, /// and parameters and templates can be used to transform the back-end response. /// </summary> public partial class GetIntegrationResponseResponse : AmazonWebServiceResponse { private ContentHandlingStrategy _contentHandling; private Dictionary<string, string> _responseParameters = new Dictionary<string, string>(); private Dictionary<string, string> _responseTemplates = new Dictionary<string, string>(); private string _selectionPattern; private string _statusCode; /// <summary> /// Gets and sets the property ContentHandling. /// <para> /// Specifies how to handle response payload content type conversions. Supported values /// are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following /// behaviors: /// </para> /// /// <para> /// If this property is not defined, the response payload will be passed through from /// the integration response to the method response without modification. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property ResponseParameters. /// <para> /// 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 <code>method.response.header.{name}</code>, where <code>name</code> /// is a valid and unique header name. The mapped non-static value must match the pattern /// of <code>integration.response.header.{name}</code> or <code>integration.response.body.{JSON-expression}</code>, /// where <code>name</code> is a valid and unique response header name and <code>JSON-expression</code> /// is a valid JSON expression without the <code>$</code> prefix. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseTemplates. /// <para> /// Specifies the templates used to transform the integration response body. Response /// templates are represented as a key/value map, with a content-type as the key and a /// template as the value. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property SelectionPattern. /// <para> /// Specifies the regular expression (regex) pattern used to choose an integration response /// based on the response from the back end. For example, if the success response returns /// nothing and the error response returns some string, you could use the <code>.+</code> /// regex to match error response. However, make sure that the error response does not /// contain any newline (<code>\n</code>) character in such cases. If the back end is /// an AWS Lambda function, the AWS Lambda function error header is matched. For all other /// HTTP and AWS back ends, the HTTP status code is matched. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// Specifies the status code that is used to map the integration response to an existing /// MethodResponse. /// </para> /// </summary> 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; } } }
158
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetMethod operation. /// Describe an existing Method resource. /// </summary> public partial class GetMethodRequest : AmazonAPIGatewayRequest { private string _httpMethod; private string _resourceId; private string _restApiId; /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// Specifies the method request's HTTP method type. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The Resource identifier for the Method resource. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
99
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a client-facing interface by which the client calls the API to access /// back-end resources. A Method resource is integrated with an Integration resource. /// Both consist of a request and one or more responses. The method request takes the /// client input that is passed to the back end through the integration request. A method /// response returns the output from the back end to the client through an integration /// response. A method request is embodied in a Method resource, whereas an integration /// request is embodied in an Integration resource. On the other hand, a method response /// is represented by a MethodResponse resource, whereas an integration response is represented /// by an IntegrationResponse resource. /// </summary> public partial class GetMethodResponse : AmazonWebServiceResponse { private bool? _apiKeyRequired; private List<string> _authorizationScopes = new List<string>(); private string _authorizationType; private string _authorizerId; private string _httpMethod; private Integration _methodIntegration; private Dictionary<string, MethodResponse> _methodResponses = new Dictionary<string, MethodResponse>(); private string _operationName; private Dictionary<string, string> _requestModels = new Dictionary<string, string>(); private Dictionary<string, bool> _requestParameters = new Dictionary<string, bool>(); private string _requestValidatorId; /// <summary> /// Gets and sets the property ApiKeyRequired. /// <para> /// A boolean flag specifying whether a valid ApiKey is required to invoke this method. /// </para> /// </summary> public bool ApiKeyRequired { get { return this._apiKeyRequired.GetValueOrDefault(); } set { this._apiKeyRequired = value; } } // Check to see if ApiKeyRequired property is set internal bool IsSetApiKeyRequired() { return this._apiKeyRequired.HasValue; } /// <summary> /// Gets and sets the property AuthorizationScopes. /// <para> /// A list of authorization scopes configured on the method. The scopes are used with /// a <code>COGNITO_USER_POOLS</code> authorizer to authorize the method invocation. The /// authorization works by matching the method scopes against the scopes parsed from the /// access token in the incoming request. The method invocation is authorized if any method /// scopes matches a claimed scope in the access token. Otherwise, the invocation is not /// authorized. When the method scope is configured, the client must provide an access /// token instead of an identity token for authorization purposes. /// </para> /// </summary> public List<string> AuthorizationScopes { get { return this._authorizationScopes; } set { this._authorizationScopes = value; } } // Check to see if AuthorizationScopes property is set internal bool IsSetAuthorizationScopes() { return this._authorizationScopes != null && this._authorizationScopes.Count > 0; } /// <summary> /// Gets and sets the property AuthorizationType. /// <para> /// The method's authorization type. Valid values are <code>NONE</code> for open access, /// <code>AWS_IAM</code> for using AWS IAM permissions, <code>CUSTOM</code> for using /// a custom authorizer, or <code>COGNITO_USER_POOLS</code> for using a Cognito user pool. /// </para> /// </summary> public string AuthorizationType { get { return this._authorizationType; } set { this._authorizationType = value; } } // Check to see if AuthorizationType property is set internal bool IsSetAuthorizationType() { return this._authorizationType != null; } /// <summary> /// Gets and sets the property AuthorizerId. /// <para> /// The identifier of an Authorizer to use on this method. The <code>authorizationType</code> /// must be <code>CUSTOM</code>. /// </para> /// </summary> public string AuthorizerId { get { return this._authorizerId; } set { this._authorizerId = value; } } // Check to see if AuthorizerId property is set internal bool IsSetAuthorizerId() { return this._authorizerId != null; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// The method's HTTP verb. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property MethodIntegration. /// <para> /// Gets the method's integration responsible for passing the client-submitted request /// to the back end and performing necessary transformations to make the request compliant /// with the back end. /// </para> /// </summary> public Integration MethodIntegration { get { return this._methodIntegration; } set { this._methodIntegration = value; } } // Check to see if MethodIntegration property is set internal bool IsSetMethodIntegration() { return this._methodIntegration != null; } /// <summary> /// Gets and sets the property MethodResponses. /// <para> /// Gets a method response associated with a given HTTP status code. /// </para> /// </summary> public Dictionary<string, MethodResponse> MethodResponses { get { return this._methodResponses; } set { this._methodResponses = value; } } // Check to see if MethodResponses property is set internal bool IsSetMethodResponses() { return this._methodResponses != null && this._methodResponses.Count > 0; } /// <summary> /// Gets and sets the property OperationName. /// <para> /// A human-friendly operation identifier for the method. For example, you can assign /// the <code>operationName</code> of <code>ListPets</code> for the <code>GET /pets</code> /// method in the <code>PetStore</code> example. /// </para> /// </summary> public string OperationName { get { return this._operationName; } set { this._operationName = value; } } // Check to see if OperationName property is set internal bool IsSetOperationName() { return this._operationName != null; } /// <summary> /// Gets and sets the property RequestModels. /// <para> /// A key-value map specifying data schemas, represented by Model resources, (as the mapped /// value) of the request payloads of given content types (as the mapping key). /// </para> /// </summary> public Dictionary<string, string> RequestModels { get { return this._requestModels; } set { this._requestModels = value; } } // Check to see if RequestModels property is set internal bool IsSetRequestModels() { return this._requestModels != null && this._requestModels.Count > 0; } /// <summary> /// Gets and sets the property RequestParameters. /// <para> /// A key-value map defining required or optional method request parameters that can be /// accepted by API Gateway. A key is a method request parameter name matching the pattern /// of <code>method.request.{location}.{name}</code>, where <code>location</code> is <code>querystring</code>, /// <code>path</code>, or <code>header</code> and <code>name</code> is a valid and unique /// parameter name. The value associated with the key is a Boolean flag indicating whether /// the parameter is required (<code>true</code>) or optional (<code>false</code>). The /// method request parameter names defined here are available in Integration to be mapped /// to integration request parameters or templates. /// </para> /// </summary> public Dictionary<string, bool> RequestParameters { get { return this._requestParameters; } set { this._requestParameters = value; } } // Check to see if RequestParameters property is set internal bool IsSetRequestParameters() { return this._requestParameters != null && this._requestParameters.Count > 0; } /// <summary> /// Gets and sets the property RequestValidatorId. /// <para> /// The identifier of a RequestValidator for request validation. /// </para> /// </summary> public string RequestValidatorId { get { return this._requestValidatorId; } set { this._requestValidatorId = value; } } // Check to see if RequestValidatorId property is set internal bool IsSetRequestValidatorId() { return this._requestValidatorId != null; } } }
276
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetMethodResponse operation. /// Describes a MethodResponse resource. /// </summary> public partial class GetMethodResponseRequest : AmazonAPIGatewayRequest { private string _httpMethod; private string _resourceId; private string _restApiId; private string _statusCode; /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// The HTTP verb of the Method resource. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The Resource identifier for the MethodResponse resource. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// The status code for the MethodResponse resource. /// </para> /// </summary> [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; } } }
119
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// 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. /// </summary> public partial class GetMethodResponseResponse : AmazonWebServiceResponse { private Dictionary<string, string> _responseModels = new Dictionary<string, string>(); private Dictionary<string, bool> _responseParameters = new Dictionary<string, bool>(); private string _statusCode; /// <summary> /// Gets and sets the property ResponseModels. /// <para> /// 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. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseParameters. /// <para> /// 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 <code>method.response.header.{name}</code>, where /// <code>name</code> 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 <code>integration.response.header.{name}</code>, /// a static value enclosed within a pair of single quotes (e.g., <code>'application/json'</code>), /// or a JSON expression from the back-end response payload in the form of <code>integration.response.body.{JSON-expression}</code>, /// where <code>JSON-expression</code> is a valid JSON expression without the <code>$</code> /// prefix.) /// </para> /// </summary> public Dictionary<string, bool> 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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// The method response's status code. /// </para> /// </summary> 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; } } }
110
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetModel operation. /// Describes an existing model defined for a RestApi resource. /// </summary> public partial class GetModelRequest : AmazonAPIGatewayRequest { private bool? _flatten; private string _modelName; private string _restApiId; /// <summary> /// Gets and sets the property Flatten. /// <para> /// A query parameter of a Boolean value to resolve (<code>true</code>) all external model /// references and returns a flattened model schema or not (<code>false</code>) The default /// is <code>false</code>. /// </para> /// </summary> public bool Flatten { get { return this._flatten.GetValueOrDefault(); } set { this._flatten = value; } } // Check to see if Flatten property is set internal bool IsSetFlatten() { return this._flatten.HasValue; } /// <summary> /// Gets and sets the property ModelName. /// <para> /// The name of the model as an identifier. /// </para> /// </summary> [AWSProperty(Required=true)] public string ModelName { get { return this._modelName; } set { this._modelName = value; } } // Check to see if ModelName property is set internal bool IsSetModelName() { return this._modelName != null; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The RestApi identifier under which the Model exists. /// </para> /// </summary> [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; } } }
100
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents the data structure of a method's request or response payload. /// </summary> public partial class GetModelResponse : AmazonWebServiceResponse { private string _contentType; private string _description; private string _id; private string _name; private string _schema; /// <summary> /// Gets and sets the property ContentType. /// <para> /// The content-type for the model. /// </para> /// </summary> public string ContentType { get { return this._contentType; } set { this._contentType = value; } } // Check to see if ContentType property is set internal bool IsSetContentType() { return this._contentType != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the model. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier for the model resource. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the model. Must be an alphanumeric string. /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Schema. /// <para> /// The schema for the model. For <code>application/json</code> models, this should be /// JSON schema draft 4 model. Do not include "\*/" characters in the description of any /// properties because such "\*/" characters may be interpreted as the closing marker /// for comments in some languages, such as Java or JavaScript, causing the installation /// of your API's SDK generated by API Gateway to fail. /// </para> /// </summary> public string Schema { get { return this._schema; } set { this._schema = value; } } // Check to see if Schema property is set internal bool IsSetSchema() { return this._schema != null; } } }
137
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetModels operation. /// Describes existing Models defined for a RestApi resource. /// </summary> public partial class GetModelsRequest : AmazonAPIGatewayRequest { private int? _limit; private string _position; private string _restApiId; /// <summary> /// Gets and sets the property Limit. /// <para> /// The maximum number of returned results per page. The default value is 25 and the maximum /// value is 500. /// </para> /// </summary> public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// <summary> /// Gets and sets the property Position. /// <para> /// The current pagination position in the paged result set. /// </para> /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
98
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a collection of Model resources. /// </summary> public partial class GetModelsResponse : AmazonWebServiceResponse { private List<Model> _items = new List<Model>(); private string _position; /// <summary> /// Gets and sets the property Items. /// <para> /// The current page of elements from this collection. /// </para> /// </summary> public List<Model> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Position. /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
73
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetModelTemplate operation. /// Generates a sample mapping template that can be used to transform a payload into the /// structure of a model. /// </summary> public partial class GetModelTemplateRequest : AmazonAPIGatewayRequest { private string _modelName; private string _restApiId; /// <summary> /// Gets and sets the property ModelName. /// <para> /// The name of the model for which to generate a template. /// </para> /// </summary> [AWSProperty(Required=true)] public string ModelName { get { return this._modelName; } set { this._modelName = value; } } // Check to see if ModelName property is set internal bool IsSetModelName() { return this._modelName != null; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
80
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a mapping template used to transform a payload. /// </summary> public partial class GetModelTemplateResponse : AmazonWebServiceResponse { private string _value; /// <summary> /// Gets and sets the property Value. /// <para> /// The Apache Velocity Template Language (VTL) template content used for the template /// resource. /// </para> /// </summary> public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
58
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetRequestValidator operation. /// Gets a RequestValidator of a given RestApi. /// </summary> public partial class GetRequestValidatorRequest : AmazonAPIGatewayRequest { private string _requestValidatorId; private string _restApiId; /// <summary> /// Gets and sets the property RequestValidatorId. /// <para> /// The identifier of the RequestValidator to be retrieved. /// </para> /// </summary> [AWSProperty(Required=true)] public string RequestValidatorId { get { return this._requestValidatorId; } set { this._requestValidatorId = value; } } // Check to see if RequestValidatorId property is set internal bool IsSetRequestValidatorId() { return this._requestValidatorId != null; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
79
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A set of validation rules for incoming Method requests. /// </summary> public partial class GetRequestValidatorResponse : AmazonWebServiceResponse { private string _id; private string _name; private bool? _validateRequestBody; private bool? _validateRequestParameters; /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier of this RequestValidator. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of this RequestValidator /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property ValidateRequestBody. /// <para> /// A Boolean flag to indicate whether to validate a request body according to the configured /// Model schema. /// </para> /// </summary> public bool ValidateRequestBody { get { return this._validateRequestBody.GetValueOrDefault(); } set { this._validateRequestBody = value; } } // Check to see if ValidateRequestBody property is set internal bool IsSetValidateRequestBody() { return this._validateRequestBody.HasValue; } /// <summary> /// Gets and sets the property ValidateRequestParameters. /// <para> /// A Boolean flag to indicate whether to validate request parameters (<code>true</code>) /// or not (<code>false</code>). /// </para> /// </summary> public bool ValidateRequestParameters { get { return this._validateRequestParameters.GetValueOrDefault(); } set { this._validateRequestParameters = value; } } // Check to see if ValidateRequestParameters property is set internal bool IsSetValidateRequestParameters() { return this._validateRequestParameters.HasValue; } } }
116
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetRequestValidators operation. /// Gets the RequestValidators collection of a given RestApi. /// </summary> public partial class GetRequestValidatorsRequest : AmazonAPIGatewayRequest { private int? _limit; private string _position; private string _restApiId; /// <summary> /// Gets and sets the property Limit. /// <para> /// The maximum number of returned results per page. The default value is 25 and the maximum /// value is 500. /// </para> /// </summary> public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// <summary> /// Gets and sets the property Position. /// <para> /// The current pagination position in the paged result set. /// </para> /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
98
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A collection of RequestValidator resources of a given RestApi. /// </summary> public partial class GetRequestValidatorsResponse : AmazonWebServiceResponse { private List<RequestValidator> _items = new List<RequestValidator>(); private string _position; /// <summary> /// Gets and sets the property Items. /// <para> /// The current page of elements from this collection. /// </para> /// </summary> public List<RequestValidator> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Position. /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
73
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetResource operation. /// Lists information about a resource. /// </summary> public partial class GetResourceRequest : AmazonAPIGatewayRequest { private List<string> _embed = new List<string>(); private string _resourceId; private string _restApiId; /// <summary> /// Gets and sets the property Embed. /// <para> /// A query parameter to retrieve the specified resources embedded in the returned Resource /// representation in the response. This <code>embed</code> parameter value is a list /// of comma-separated strings. Currently, the request supports only retrieval of the /// embedded Method resources this way. The query parameter value must be a single-valued /// list and contain the <code>"methods"</code> string. For example, <code>GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods</code>. /// </para> /// </summary> public List<string> Embed { get { return this._embed; } set { this._embed = value; } } // Check to see if Embed property is set internal bool IsSetEmbed() { return this._embed != null && this._embed.Count > 0; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The identifier for the Resource resource. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
102
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents an API resource. /// </summary> public partial class GetResourceResponse : AmazonWebServiceResponse { private string _id; private string _parentId; private string _path; private string _pathPart; private Dictionary<string, Method> _resourceMethods = new Dictionary<string, Method>(); /// <summary> /// Gets and sets the property Id. /// <para> /// The resource's identifier. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property ParentId. /// <para> /// The parent resource's identifier. /// </para> /// </summary> public string ParentId { get { return this._parentId; } set { this._parentId = value; } } // Check to see if ParentId property is set internal bool IsSetParentId() { return this._parentId != null; } /// <summary> /// Gets and sets the property Path. /// <para> /// The full path for this resource. /// </para> /// </summary> public string Path { get { return this._path; } set { this._path = value; } } // Check to see if Path property is set internal bool IsSetPath() { return this._path != null; } /// <summary> /// Gets and sets the property PathPart. /// <para> /// The last path segment for this resource. /// </para> /// </summary> public string PathPart { get { return this._pathPart; } set { this._pathPart = value; } } // Check to see if PathPart property is set internal bool IsSetPathPart() { return this._pathPart != null; } /// <summary> /// Gets and sets the property ResourceMethods. /// <para> /// Gets an API resource's method of a given HTTP verb. /// </para> /// </summary> public Dictionary<string, Method> ResourceMethods { get { return this._resourceMethods; } set { this._resourceMethods = value; } } // Check to see if ResourceMethods property is set internal bool IsSetResourceMethods() { return this._resourceMethods != null && this._resourceMethods.Count > 0; } } }
133
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetResources operation. /// Lists information about a collection of Resource resources. /// </summary> public partial class GetResourcesRequest : AmazonAPIGatewayRequest { private List<string> _embed = new List<string>(); private int? _limit; private string _position; private string _restApiId; /// <summary> /// Gets and sets the property Embed. /// <para> /// A query parameter used to retrieve the specified resources embedded in the returned /// Resources resource in the response. This <code>embed</code> parameter value is a list /// of comma-separated strings. Currently, the request supports only retrieval of the /// embedded Method resources this way. The query parameter value must be a single-valued /// list and contain the <code>"methods"</code> string. For example, <code>GET /restapis/{restapi_id}/resources?embed=methods</code>. /// </para> /// </summary> public List<string> Embed { get { return this._embed; } set { this._embed = value; } } // Check to see if Embed property is set internal bool IsSetEmbed() { return this._embed != null && this._embed.Count > 0; } /// <summary> /// Gets and sets the property Limit. /// <para> /// The maximum number of returned results per page. The default value is 25 and the maximum /// value is 500. /// </para> /// </summary> public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// <summary> /// Gets and sets the property Position. /// <para> /// The current pagination position in the paged result set. /// </para> /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
121
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a collection of Resource resources. /// </summary> public partial class GetResourcesResponse : AmazonWebServiceResponse { private List<Resource> _items = new List<Resource>(); private string _position; /// <summary> /// Gets and sets the property Items. /// <para> /// The current page of elements from this collection. /// </para> /// </summary> public List<Resource> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Position. /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
73
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetRestApi operation. /// Lists the RestApi resource in the collection. /// </summary> public partial class GetRestApiRequest : AmazonAPIGatewayRequest { private string _restApiId; /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
59
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a REST API. /// </summary> public partial class GetRestApiResponse : AmazonWebServiceResponse { private ApiKeySourceType _apiKeySource; private List<string> _binaryMediaTypes = new List<string>(); private DateTime? _createdDate; private string _description; private bool? _disableExecuteApiEndpoint; private EndpointConfiguration _endpointConfiguration; private string _id; private int? _minimumCompressionSize; private string _name; private string _policy; private Dictionary<string, string> _tags = new Dictionary<string, string>(); private string _version; private List<string> _warnings = new List<string>(); /// <summary> /// Gets and sets the property ApiKeySource. /// <para> /// The source of the API key for metering requests according to a usage plan. Valid values /// are: &gt;<code>HEADER</code> to read the API key from the <code>X-API-Key</code> header /// of a request. <code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> /// from a custom authorizer. /// </para> /// </summary> public ApiKeySourceType ApiKeySource { get { return this._apiKeySource; } set { this._apiKeySource = value; } } // Check to see if ApiKeySource property is set internal bool IsSetApiKeySource() { return this._apiKeySource != null; } /// <summary> /// Gets and sets the property BinaryMediaTypes. /// <para> /// The list of binary media types supported by the RestApi. By default, the RestApi supports /// only UTF-8-encoded text payloads. /// </para> /// </summary> public List<string> BinaryMediaTypes { get { return this._binaryMediaTypes; } set { this._binaryMediaTypes = value; } } // Check to see if BinaryMediaTypes property is set internal bool IsSetBinaryMediaTypes() { return this._binaryMediaTypes != null && this._binaryMediaTypes.Count > 0; } /// <summary> /// Gets and sets the property CreatedDate. /// <para> /// The timestamp when the API was created. /// </para> /// </summary> public DateTime CreatedDate { get { return this._createdDate.GetValueOrDefault(); } set { this._createdDate = value; } } // Check to see if CreatedDate property is set internal bool IsSetCreatedDate() { return this._createdDate.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The API's description. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property DisableExecuteApiEndpoint. /// <para> /// Specifies whether clients can invoke your API by using the default <code>execute-api</code> /// endpoint. By default, clients can invoke your API with the default <code>https://{api_id}.execute-api.{region}.amazonaws.com</code> /// endpoint. To require that clients use a custom domain name to invoke your API, disable /// the default endpoint. /// </para> /// </summary> public bool DisableExecuteApiEndpoint { get { return this._disableExecuteApiEndpoint.GetValueOrDefault(); } set { this._disableExecuteApiEndpoint = value; } } // Check to see if DisableExecuteApiEndpoint property is set internal bool IsSetDisableExecuteApiEndpoint() { return this._disableExecuteApiEndpoint.HasValue; } /// <summary> /// Gets and sets the property EndpointConfiguration. /// <para> /// The endpoint configuration of this RestApi showing the endpoint types of the API. /// /// </para> /// </summary> public EndpointConfiguration EndpointConfiguration { get { return this._endpointConfiguration; } set { this._endpointConfiguration = value; } } // Check to see if EndpointConfiguration property is set internal bool IsSetEndpointConfiguration() { return this._endpointConfiguration != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The API's identifier. This identifier is unique across all of your APIs in API Gateway. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property MinimumCompressionSize. /// <para> /// A nullable integer that is used to enable compression (with non-negative between 0 /// and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on /// an API. When compression is enabled, compression or decompression is not applied on /// the payload if the payload size is smaller than this value. Setting it to zero allows /// compression for any payload size. /// </para> /// </summary> public int MinimumCompressionSize { get { return this._minimumCompressionSize.GetValueOrDefault(); } set { this._minimumCompressionSize = value; } } // Check to see if MinimumCompressionSize property is set internal bool IsSetMinimumCompressionSize() { return this._minimumCompressionSize.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The API's name. /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Policy. /// <para> /// A stringified JSON policy document that applies to this RestApi regardless of the /// caller and Method configuration. /// </para> /// </summary> public string Policy { get { return this._policy; } set { this._policy = value; } } // Check to see if Policy property is set internal bool IsSetPolicy() { return this._policy != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The collection of tags. Each tag element is associated with a given resource. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property Version. /// <para> /// A version identifier for the API. /// </para> /// </summary> public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } /// <summary> /// Gets and sets the property Warnings. /// <para> /// The warning messages reported when <code>failonwarnings</code> is turned on during /// API import. /// </para> /// </summary> public List<string> Warnings { get { return this._warnings; } set { this._warnings = value; } } // Check to see if Warnings property is set internal bool IsSetWarnings() { return this._warnings != null && this._warnings.Count > 0; } } }
299
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetRestApis operation. /// Lists the RestApis resources for your collection. /// </summary> public partial class GetRestApisRequest : AmazonAPIGatewayRequest { private int? _limit; private string _position; /// <summary> /// Gets and sets the property Limit. /// <para> /// The maximum number of returned results per page. The default value is 25 and the maximum /// value is 500. /// </para> /// </summary> public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// <summary> /// Gets and sets the property Position. /// <para> /// The current pagination position in the paged result set. /// </para> /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
78
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Contains references to your APIs and links that guide you in how to interact with /// your collection. A collection offers a paginated view of your APIs. /// </summary> public partial class GetRestApisResponse : AmazonWebServiceResponse { private List<RestApi> _items = new List<RestApi>(); private string _position; /// <summary> /// Gets and sets the property Items. /// <para> /// The current page of elements from this collection. /// </para> /// </summary> public List<RestApi> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Position. /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
74
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetSdk operation. /// Generates a client SDK for a RestApi and Stage. /// </summary> public partial class GetSdkRequest : AmazonAPIGatewayRequest { private Dictionary<string, string> _parameters = new Dictionary<string, string>(); private string _restApiId; private string _sdkType; private string _stageName; /// <summary> /// Gets and sets the property Parameters. /// <para> /// A string-to-string key-value map of query parameters <code>sdkType</code>-dependent /// properties of the SDK. For <code>sdkType</code> of <code>objectivec</code> or <code>swift</code>, /// a parameter named <code>classPrefix</code> is required. For <code>sdkType</code> of /// <code>android</code>, parameters named <code>groupId</code>, <code>artifactId</code>, /// <code>artifactVersion</code>, and <code>invokerPackage</code> are required. For <code>sdkType</code> /// of <code>java</code>, parameters named <code>serviceName</code> and <code>javaPackageName</code> /// are required. /// </para> /// </summary> public Dictionary<string, string> Parameters { get { return this._parameters; } set { this._parameters = value; } } // Check to see if Parameters property is set internal bool IsSetParameters() { return this._parameters != null && this._parameters.Count > 0; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property SdkType. /// <para> /// The language for the generated SDK. Currently <code>java</code>, <code>javascript</code>, /// <code>android</code>, <code>objectivec</code> (for iOS), <code>swift</code> (for iOS), /// and <code>ruby</code> are supported. /// </para> /// </summary> [AWSProperty(Required=true)] public string SdkType { get { return this._sdkType; } set { this._sdkType = value; } } // Check to see if SdkType property is set internal bool IsSetSdkType() { return this._sdkType != null; } /// <summary> /// Gets and sets the property StageName. /// <para> /// The name of the Stage that the SDK will use. /// </para> /// </summary> [AWSProperty(Required=true)] public string StageName { get { return this._stageName; } set { this._stageName = value; } } // Check to see if StageName property is set internal bool IsSetStageName() { return this._stageName != null; } } }
126
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The binary blob response to GetSdk, which contains the generated SDK. /// </summary> public partial class GetSdkResponse : AmazonWebServiceResponse { private MemoryStream _body; private string _contentDisposition; private string _contentType; /// <summary> /// Gets and sets the property Body. /// <para> /// The binary blob response to GetSdk, which contains the generated SDK. /// </para> /// </summary> public MemoryStream Body { get { return this._body; } set { this._body = value; } } // Check to see if Body property is set internal bool IsSetBody() { return this._body != null; } /// <summary> /// Gets and sets the property ContentDisposition. /// <para> /// The content-disposition header value in the HTTP response. /// </para> /// </summary> public string ContentDisposition { get { return this._contentDisposition; } set { this._contentDisposition = value; } } // Check to see if ContentDisposition property is set internal bool IsSetContentDisposition() { return this._contentDisposition != null; } /// <summary> /// Gets and sets the property ContentType. /// <para> /// The content-type header value in the HTTP response. /// </para> /// </summary> public string ContentType { get { return this._contentType; } set { this._contentType = value; } } // Check to see if ContentType property is set internal bool IsSetContentType() { return this._contentType != null; } } }
95
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetSdkType operation. /// Gets an SDK type. /// </summary> public partial class GetSdkTypeRequest : AmazonAPIGatewayRequest { private string _id; /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier of the queried SdkType instance. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } } }
59
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A type of SDK that API Gateway can generate. /// </summary> public partial class GetSdkTypeResponse : AmazonWebServiceResponse { private List<SdkConfigurationProperty> _configurationProperties = new List<SdkConfigurationProperty>(); private string _description; private string _friendlyName; private string _id; /// <summary> /// Gets and sets the property ConfigurationProperties. /// <para> /// A list of configuration properties of an SdkType. /// </para> /// </summary> public List<SdkConfigurationProperty> ConfigurationProperties { get { return this._configurationProperties; } set { this._configurationProperties = value; } } // Check to see if ConfigurationProperties property is set internal bool IsSetConfigurationProperties() { return this._configurationProperties != null && this._configurationProperties.Count > 0; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of an SdkType. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property FriendlyName. /// <para> /// The user-friendly name of an SdkType instance. /// </para> /// </summary> public string FriendlyName { get { return this._friendlyName; } set { this._friendlyName = value; } } // Check to see if FriendlyName property is set internal bool IsSetFriendlyName() { return this._friendlyName != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier of an SdkType instance. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } } }
114
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetSdkTypes operation. /// Gets SDK types /// </summary> public partial class GetSdkTypesRequest : AmazonAPIGatewayRequest { private int? _limit; private string _position; /// <summary> /// Gets and sets the property Limit. /// <para> /// The maximum number of returned results per page. The default value is 25 and the maximum /// value is 500. /// </para> /// </summary> public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// <summary> /// Gets and sets the property Position. /// <para> /// The current pagination position in the paged result set. /// </para> /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
78
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The collection of SdkType instances. /// </summary> public partial class GetSdkTypesResponse : AmazonWebServiceResponse { private List<SdkType> _items = new List<SdkType>(); private string _position; /// <summary> /// Gets and sets the property Items. /// <para> /// The current page of elements from this collection. /// </para> /// </summary> public List<SdkType> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Position. /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
73
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetStage operation. /// Gets information about a Stage resource. /// </summary> public partial class GetStageRequest : AmazonAPIGatewayRequest { private string _restApiId; private string _stageName; /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property StageName. /// <para> /// The name of the Stage resource to get information about. /// </para> /// </summary> [AWSProperty(Required=true)] public string StageName { get { return this._stageName; } set { this._stageName = value; } } // Check to see if StageName property is set internal bool IsSetStageName() { return this._stageName != null; } } }
79
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a unique identifier for a version of a deployed RestApi that is callable /// by users. /// </summary> public partial class GetStageResponse : AmazonWebServiceResponse { private AccessLogSettings _accessLogSettings; private bool? _cacheClusterEnabled; private CacheClusterSize _cacheClusterSize; private CacheClusterStatus _cacheClusterStatus; private CanarySettings _canarySettings; private string _clientCertificateId; private DateTime? _createdDate; private string _deploymentId; private string _description; private string _documentationVersion; private DateTime? _lastUpdatedDate; private Dictionary<string, MethodSetting> _methodSettings = new Dictionary<string, MethodSetting>(); private string _stageName; private Dictionary<string, string> _tags = new Dictionary<string, string>(); private bool? _tracingEnabled; private Dictionary<string, string> _variables = new Dictionary<string, string>(); private string _webAclArn; /// <summary> /// Gets and sets the property AccessLogSettings. /// <para> /// Settings for logging access in this stage. /// </para> /// </summary> public AccessLogSettings AccessLogSettings { get { return this._accessLogSettings; } set { this._accessLogSettings = value; } } // Check to see if AccessLogSettings property is set internal bool IsSetAccessLogSettings() { return this._accessLogSettings != null; } /// <summary> /// Gets and sets the property CacheClusterEnabled. /// <para> /// Specifies whether a cache cluster is enabled for the stage. /// </para> /// </summary> public bool CacheClusterEnabled { get { return this._cacheClusterEnabled.GetValueOrDefault(); } set { this._cacheClusterEnabled = value; } } // Check to see if CacheClusterEnabled property is set internal bool IsSetCacheClusterEnabled() { return this._cacheClusterEnabled.HasValue; } /// <summary> /// Gets and sets the property CacheClusterSize. /// <para> /// The stage's cache capacity in GB. For more information about choosing a cache size, /// see <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html">Enabling /// API caching to enhance responsiveness</a>. /// </para> /// </summary> public CacheClusterSize CacheClusterSize { get { return this._cacheClusterSize; } set { this._cacheClusterSize = value; } } // Check to see if CacheClusterSize property is set internal bool IsSetCacheClusterSize() { return this._cacheClusterSize != null; } /// <summary> /// Gets and sets the property CacheClusterStatus. /// <para> /// The status of the cache cluster for the stage, if enabled. /// </para> /// </summary> public CacheClusterStatus CacheClusterStatus { get { return this._cacheClusterStatus; } set { this._cacheClusterStatus = value; } } // Check to see if CacheClusterStatus property is set internal bool IsSetCacheClusterStatus() { return this._cacheClusterStatus != null; } /// <summary> /// Gets and sets the property CanarySettings. /// <para> /// Settings for the canary deployment in this stage. /// </para> /// </summary> public CanarySettings CanarySettings { get { return this._canarySettings; } set { this._canarySettings = value; } } // Check to see if CanarySettings property is set internal bool IsSetCanarySettings() { return this._canarySettings != null; } /// <summary> /// Gets and sets the property ClientCertificateId. /// <para> /// The identifier of a client certificate for an API stage. /// </para> /// </summary> public string ClientCertificateId { get { return this._clientCertificateId; } set { this._clientCertificateId = value; } } // Check to see if ClientCertificateId property is set internal bool IsSetClientCertificateId() { return this._clientCertificateId != null; } /// <summary> /// Gets and sets the property CreatedDate. /// <para> /// The timestamp when the stage was created. /// </para> /// </summary> public DateTime CreatedDate { get { return this._createdDate.GetValueOrDefault(); } set { this._createdDate = value; } } // Check to see if CreatedDate property is set internal bool IsSetCreatedDate() { return this._createdDate.HasValue; } /// <summary> /// Gets and sets the property DeploymentId. /// <para> /// The identifier of the Deployment that the stage points to. /// </para> /// </summary> public string DeploymentId { get { return this._deploymentId; } set { this._deploymentId = value; } } // Check to see if DeploymentId property is set internal bool IsSetDeploymentId() { return this._deploymentId != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The stage's description. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property DocumentationVersion. /// <para> /// The version of the associated API documentation. /// </para> /// </summary> public string DocumentationVersion { get { return this._documentationVersion; } set { this._documentationVersion = value; } } // Check to see if DocumentationVersion property is set internal bool IsSetDocumentationVersion() { return this._documentationVersion != null; } /// <summary> /// Gets and sets the property LastUpdatedDate. /// <para> /// The timestamp when the stage last updated. /// </para> /// </summary> public DateTime LastUpdatedDate { get { return this._lastUpdatedDate.GetValueOrDefault(); } set { this._lastUpdatedDate = value; } } // Check to see if LastUpdatedDate property is set internal bool IsSetLastUpdatedDate() { return this._lastUpdatedDate.HasValue; } /// <summary> /// Gets and sets the property MethodSettings. /// <para> /// A map that defines the method settings for a Stage resource. Keys (designated as <code>/{method_setting_key</code> /// below) are method paths defined as <code>{resource_path}/{http_method}</code> for /// an individual method override, or <code>/\*/\*</code> for overriding all methods in /// the stage. /// </para> /// </summary> public Dictionary<string, MethodSetting> MethodSettings { get { return this._methodSettings; } set { this._methodSettings = value; } } // Check to see if MethodSettings property is set internal bool IsSetMethodSettings() { return this._methodSettings != null && this._methodSettings.Count > 0; } /// <summary> /// Gets and sets the property StageName. /// <para> /// The name of the stage is the first path segment in the Uniform Resource Identifier /// (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, /// hyphens, and underscores. Maximum length is 128 characters. /// </para> /// </summary> public string StageName { get { return this._stageName; } set { this._stageName = value; } } // Check to see if StageName property is set internal bool IsSetStageName() { return this._stageName != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The collection of tags. Each tag element is associated with a given resource. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property TracingEnabled. /// <para> /// Specifies whether active tracing with X-ray is enabled for the Stage. /// </para> /// </summary> public bool TracingEnabled { get { return this._tracingEnabled.GetValueOrDefault(); } set { this._tracingEnabled = value; } } // Check to see if TracingEnabled property is set internal bool IsSetTracingEnabled() { return this._tracingEnabled.HasValue; } /// <summary> /// Gets and sets the property Variables. /// <para> /// A map that defines the stage variables for a Stage resource. Variable names can have /// alphanumeric and underscore characters, and the values must match <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>. /// </para> /// </summary> public Dictionary<string, string> Variables { get { return this._variables; } set { this._variables = value; } } // Check to see if Variables property is set internal bool IsSetVariables() { return this._variables != null && this._variables.Count > 0; } /// <summary> /// Gets and sets the property WebAclArn. /// <para> /// The ARN of the WebAcl associated with the Stage. /// </para> /// </summary> public string WebAclArn { get { return this._webAclArn; } set { this._webAclArn = value; } } // Check to see if WebAclArn property is set internal bool IsSetWebAclArn() { return this._webAclArn != null; } } }
370
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetStages operation. /// Gets information about one or more Stage resources. /// </summary> public partial class GetStagesRequest : AmazonAPIGatewayRequest { private string _deploymentId; private string _restApiId; /// <summary> /// Gets and sets the property DeploymentId. /// <para> /// The stages' deployment identifiers. /// </para> /// </summary> public string DeploymentId { get { return this._deploymentId; } set { this._deploymentId = value; } } // Check to see if DeploymentId property is set internal bool IsSetDeploymentId() { return this._deploymentId != null; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
78
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A list of Stage resources that are associated with the ApiKey resource. /// </summary> public partial class GetStagesResponse : AmazonWebServiceResponse { private List<Stage> _item = new List<Stage>(); /// <summary> /// Gets and sets the property Item. /// <para> /// The current page of elements from this collection. /// </para> /// </summary> public List<Stage> Item { get { return this._item; } set { this._item = value; } } // Check to see if Item property is set internal bool IsSetItem() { return this._item != null && this._item.Count > 0; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetTags operation. /// Gets the Tags collection for a given resource. /// </summary> public partial class GetTagsRequest : AmazonAPIGatewayRequest { private int? _limit; private string _position; private string _resourceArn; /// <summary> /// Gets and sets the property Limit. /// <para> /// (Not currently supported) The maximum number of returned results per page. The default /// value is 25 and the maximum value is 500. /// </para> /// </summary> public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// <summary> /// Gets and sets the property Position. /// <para> /// (Not currently supported) The current pagination position in the paged result set. /// </para> /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The ARN of a resource that can be tagged. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } } }
98
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The collection of tags. Each tag element is associated with a given resource. /// </summary> public partial class GetTagsResponse : AmazonWebServiceResponse { private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property Tags. /// <para> /// The collection of tags. Each tag element is associated with a given resource. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetUsagePlanKey operation. /// Gets a usage plan key of a given key identifier. /// </summary> public partial class GetUsagePlanKeyRequest : AmazonAPIGatewayRequest { private string _keyId; private string _usagePlanId; /// <summary> /// Gets and sets the property KeyId. /// <para> /// The key Id of the to-be-retrieved UsagePlanKey resource representing a plan customer. /// </para> /// </summary> [AWSProperty(Required=true)] public string KeyId { get { return this._keyId; } set { this._keyId = value; } } // Check to see if KeyId property is set internal bool IsSetKeyId() { return this._keyId != null; } /// <summary> /// Gets and sets the property UsagePlanId. /// <para> /// The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved /// UsagePlanKey resource representing a plan customer. /// </para> /// </summary> [AWSProperty(Required=true)] public string UsagePlanId { get { return this._usagePlanId; } set { this._usagePlanId = value; } } // Check to see if UsagePlanId property is set internal bool IsSetUsagePlanId() { return this._usagePlanId != null; } } }
80
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a usage plan key to identify a plan customer. /// </summary> public partial class GetUsagePlanKeyResponse : AmazonWebServiceResponse { private string _id; private string _name; private string _type; private string _value; /// <summary> /// Gets and sets the property Id. /// <para> /// The Id of a usage plan key. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of a usage plan key. /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The type of a usage plan key. Currently, the valid key type is <code>API_KEY</code>. /// </para> /// </summary> public string Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// The value of a usage plan key. /// </para> /// </summary> public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
114
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetUsagePlanKeys operation. /// Gets all the usage plan keys representing the API keys added to a specified usage /// plan. /// </summary> public partial class GetUsagePlanKeysRequest : AmazonAPIGatewayRequest { private int? _limit; private string _nameQuery; private string _position; private string _usagePlanId; /// <summary> /// Gets and sets the property Limit. /// <para> /// The maximum number of returned results per page. The default value is 25 and the maximum /// value is 500. /// </para> /// </summary> public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// <summary> /// Gets and sets the property NameQuery. /// <para> /// A query parameter specifying the name of the to-be-returned usage plan keys. /// </para> /// </summary> public string NameQuery { get { return this._nameQuery; } set { this._nameQuery = value; } } // Check to see if NameQuery property is set internal bool IsSetNameQuery() { return this._nameQuery != null; } /// <summary> /// Gets and sets the property Position. /// <para> /// The current pagination position in the paged result set. /// </para> /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } /// <summary> /// Gets and sets the property UsagePlanId. /// <para> /// The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved /// UsagePlanKey resource representing a plan customer. /// </para> /// </summary> [AWSProperty(Required=true)] public string UsagePlanId { get { return this._usagePlanId; } set { this._usagePlanId = value; } } // Check to see if UsagePlanId property is set internal bool IsSetUsagePlanId() { return this._usagePlanId != null; } } }
119
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents the collection of usage plan keys added to usage plans for the associated /// API keys and, possibly, other types of keys. /// </summary> public partial class GetUsagePlanKeysResponse : AmazonWebServiceResponse { private List<UsagePlanKey> _items = new List<UsagePlanKey>(); private string _position; /// <summary> /// Gets and sets the property Items. /// <para> /// The current page of elements from this collection. /// </para> /// </summary> public List<UsagePlanKey> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Position. /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
74
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetUsagePlan operation. /// Gets a usage plan of a given plan identifier. /// </summary> public partial class GetUsagePlanRequest : AmazonAPIGatewayRequest { private string _usagePlanId; /// <summary> /// Gets and sets the property UsagePlanId. /// <para> /// The identifier of the UsagePlan resource to be retrieved. /// </para> /// </summary> [AWSProperty(Required=true)] public string UsagePlanId { get { return this._usagePlanId; } set { this._usagePlanId = value; } } // Check to see if UsagePlanId property is set internal bool IsSetUsagePlanId() { return this._usagePlanId != null; } } }
59
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a usage plan used to specify who can assess associated API stages. Optionally, /// target request rate and quota limits can be set. In some cases clients can exceed /// the targets that you set. Don’t rely on usage plans to control costs. Consider using /// <a href="https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html">Amazon /// Web Services Budgets</a> to monitor costs and <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">WAF</a> /// to manage API requests. /// </summary> public partial class GetUsagePlanResponse : AmazonWebServiceResponse { private List<ApiStage> _apiStages = new List<ApiStage>(); private string _description; private string _id; private string _name; private string _productCode; private QuotaSettings _quota; private Dictionary<string, string> _tags = new Dictionary<string, string>(); private ThrottleSettings _throttle; /// <summary> /// Gets and sets the property ApiStages. /// <para> /// The associated API stages of a usage plan. /// </para> /// </summary> public List<ApiStage> ApiStages { get { return this._apiStages; } set { this._apiStages = value; } } // Check to see if ApiStages property is set internal bool IsSetApiStages() { return this._apiStages != null && this._apiStages.Count > 0; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of a usage plan. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier of a UsagePlan resource. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of a usage plan. /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property ProductCode. /// <para> /// The AWS Markeplace product identifier to associate with the usage plan as a SaaS product /// on AWS Marketplace. /// </para> /// </summary> public string ProductCode { get { return this._productCode; } set { this._productCode = value; } } // Check to see if ProductCode property is set internal bool IsSetProductCode() { return this._productCode != null; } /// <summary> /// Gets and sets the property Quota. /// <para> /// The target maximum number of permitted requests per a given unit time interval. /// </para> /// </summary> public QuotaSettings Quota { get { return this._quota; } set { this._quota = value; } } // Check to see if Quota property is set internal bool IsSetQuota() { return this._quota != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The collection of tags. Each tag element is associated with a given resource. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property Throttle. /// <para> /// A map containing method level throttling information for API stage in a usage plan. /// </para> /// </summary> public ThrottleSettings Throttle { get { return this._throttle; } set { this._throttle = value; } } // Check to see if Throttle property is set internal bool IsSetThrottle() { return this._throttle != null; } } }
196
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetUsagePlans operation. /// Gets all the usage plans of the caller's account. /// </summary> public partial class GetUsagePlansRequest : AmazonAPIGatewayRequest { private string _keyId; private int? _limit; private string _position; /// <summary> /// Gets and sets the property KeyId. /// <para> /// The identifier of the API key associated with the usage plans. /// </para> /// </summary> public string KeyId { get { return this._keyId; } set { this._keyId = value; } } // Check to see if KeyId property is set internal bool IsSetKeyId() { return this._keyId != null; } /// <summary> /// Gets and sets the property Limit. /// <para> /// The maximum number of returned results per page. The default value is 25 and the maximum /// value is 500. /// </para> /// </summary> public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// <summary> /// Gets and sets the property Position. /// <para> /// The current pagination position in the paged result set. /// </para> /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
97
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a collection of usage plans for an AWS account. /// </summary> public partial class GetUsagePlansResponse : AmazonWebServiceResponse { private List<UsagePlan> _items = new List<UsagePlan>(); private string _position; /// <summary> /// Gets and sets the property Items. /// <para> /// The current page of elements from this collection. /// </para> /// </summary> public List<UsagePlan> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Position. /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
73
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetUsage operation. /// Gets the usage data of a usage plan in a specified time interval. /// </summary> public partial class GetUsageRequest : AmazonAPIGatewayRequest { private string _endDate; private string _keyId; private int? _limit; private string _position; private string _startDate; private string _usagePlanId; /// <summary> /// Gets and sets the property EndDate. /// <para> /// The ending date (e.g., 2016-12-31) of the usage data. /// </para> /// </summary> [AWSProperty(Required=true)] public string EndDate { get { return this._endDate; } set { this._endDate = value; } } // Check to see if EndDate property is set internal bool IsSetEndDate() { return this._endDate != null; } /// <summary> /// Gets and sets the property KeyId. /// <para> /// The Id of the API key associated with the resultant usage data. /// </para> /// </summary> public string KeyId { get { return this._keyId; } set { this._keyId = value; } } // Check to see if KeyId property is set internal bool IsSetKeyId() { return this._keyId != null; } /// <summary> /// Gets and sets the property Limit. /// <para> /// The maximum number of returned results per page. The default value is 25 and the maximum /// value is 500. /// </para> /// </summary> public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// <summary> /// Gets and sets the property Position. /// <para> /// The current pagination position in the paged result set. /// </para> /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } /// <summary> /// Gets and sets the property StartDate. /// <para> /// The starting date (e.g., 2016-01-01) of the usage data. /// </para> /// </summary> [AWSProperty(Required=true)] public string StartDate { get { return this._startDate; } set { this._startDate = value; } } // Check to see if StartDate property is set internal bool IsSetStartDate() { return this._startDate != null; } /// <summary> /// Gets and sets the property UsagePlanId. /// <para> /// The Id of the usage plan associated with the usage data. /// </para> /// </summary> [AWSProperty(Required=true)] public string UsagePlanId { get { return this._usagePlanId; } set { this._usagePlanId = value; } } // Check to see if UsagePlanId property is set internal bool IsSetUsagePlanId() { return this._usagePlanId != null; } } }
157
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents the usage data of a usage plan. /// </summary> public partial class GetUsageResponse : AmazonWebServiceResponse { private string _endDate; private Dictionary<string, List<List<long>>> _items = new Dictionary<string, List<List<long>>>(); private string _position; private string _startDate; private string _usagePlanId; /// <summary> /// Gets and sets the property EndDate. /// <para> /// The ending date of the usage data. /// </para> /// </summary> public string EndDate { get { return this._endDate; } set { this._endDate = value; } } // Check to see if EndDate property is set internal bool IsSetEndDate() { return this._endDate != null; } /// <summary> /// Gets and sets the property Items. /// <para> /// The usage data, as daily logs of used and remaining quotas, over the specified time /// interval indexed over the API keys in a usage plan. For example, <code>{..., "values" /// : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}</code>, where <code>{api_key}</code> /// stands for an API key value and the daily log entry is of the format <code>[used quota, /// remaining quota]</code>. /// </para> /// </summary> public Dictionary<string, List<List<long>>> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Position. /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } /// <summary> /// Gets and sets the property StartDate. /// <para> /// The starting date of the usage data. /// </para> /// </summary> public string StartDate { get { return this._startDate; } set { this._startDate = value; } } // Check to see if StartDate property is set internal bool IsSetStartDate() { return this._startDate != null; } /// <summary> /// Gets and sets the property UsagePlanId. /// <para> /// The plan Id associated with this usage data. /// </para> /// </summary> public string UsagePlanId { get { return this._usagePlanId; } set { this._usagePlanId = value; } } // Check to see if UsagePlanId property is set internal bool IsSetUsagePlanId() { return this._usagePlanId != null; } } }
134
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetVpcLink operation. /// Gets a specified VPC link under the caller's account in a region. /// </summary> public partial class GetVpcLinkRequest : AmazonAPIGatewayRequest { private string _vpcLinkId; /// <summary> /// Gets and sets the property VpcLinkId. /// <para> /// The identifier of the VpcLink. It is used in an Integration to reference this VpcLink. /// </para> /// </summary> [AWSProperty(Required=true)] public string VpcLinkId { get { return this._vpcLinkId; } set { this._vpcLinkId = value; } } // Check to see if VpcLinkId property is set internal bool IsSetVpcLinkId() { return this._vpcLinkId != null; } } }
59
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private /// Cloud (VPC). /// </summary> public partial class GetVpcLinkResponse : AmazonWebServiceResponse { private string _description; private string _id; private string _name; private VpcLinkStatus _status; private string _statusMessage; private Dictionary<string, string> _tags = new Dictionary<string, string>(); private List<string> _targetArns = new List<string>(); /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the VPC link. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier of the VpcLink. It is used in an Integration to reference this VpcLink. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name used to label and identify the VPC link. /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the VPC link. The valid values are <code>AVAILABLE</code>, <code>PENDING</code>, /// <code>DELETING</code>, or <code>FAILED</code>. Deploying an API will wait if the status /// is <code>PENDING</code> and will fail if the status is <code>DELETING</code>. /// </para> /// </summary> public VpcLinkStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property StatusMessage. /// <para> /// A description about the VPC link status. /// </para> /// </summary> public string StatusMessage { get { return this._statusMessage; } set { this._statusMessage = value; } } // Check to see if StatusMessage property is set internal bool IsSetStatusMessage() { return this._statusMessage != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The collection of tags. Each tag element is associated with a given resource. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property TargetArns. /// <para> /// The ARN of the network load balancer of the VPC targeted by the VPC link. The network /// load balancer must be owned by the same AWS account of the API owner. /// </para> /// </summary> public List<string> TargetArns { get { return this._targetArns; } set { this._targetArns = value; } } // Check to see if TargetArns property is set internal bool IsSetTargetArns() { return this._targetArns != null && this._targetArns.Count > 0; } } }
175
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetVpcLinks operation. /// Gets the VpcLinks collection under the caller's account in a selected region. /// </summary> public partial class GetVpcLinksRequest : AmazonAPIGatewayRequest { private int? _limit; private string _position; /// <summary> /// Gets and sets the property Limit. /// <para> /// The maximum number of returned results per page. The default value is 25 and the maximum /// value is 500. /// </para> /// </summary> public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// <summary> /// Gets and sets the property Position. /// <para> /// The current pagination position in the paged result set. /// </para> /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
78
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The collection of VPC links under the caller's account in a region. /// </summary> public partial class GetVpcLinksResponse : AmazonWebServiceResponse { private List<VpcLink> _items = new List<VpcLink>(); private string _position; /// <summary> /// Gets and sets the property Items. /// <para> /// The current page of elements from this collection. /// </para> /// </summary> public List<VpcLink> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Position. /// </summary> public string Position { get { return this._position; } set { this._position = value; } } // Check to see if Position property is set internal bool IsSetPosition() { return this._position != null; } } }
73
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the ImportApiKeys operation. /// Import API keys from an external source, such as a CSV-formatted file. /// </summary> public partial class ImportApiKeysRequest : AmazonAPIGatewayRequest { private MemoryStream _body; private bool? _failOnWarnings; private ApiKeysFormat _format; /// <summary> /// Gets and sets the property Body. /// <para> /// The payload of the POST request to import API keys. For the payload format, see API /// Key File Format. /// </para> /// </summary> [AWSProperty(Required=true)] public MemoryStream Body { get { return this._body; } set { this._body = value; } } // Check to see if Body property is set internal bool IsSetBody() { return this._body != null; } /// <summary> /// Gets and sets the property FailOnWarnings. /// <para> /// A query parameter to indicate whether to rollback ApiKey importation (<code>true</code>) /// or not (<code>false</code>) when error is encountered. /// </para> /// </summary> public bool FailOnWarnings { get { return this._failOnWarnings.GetValueOrDefault(); } set { this._failOnWarnings = value; } } // Check to see if FailOnWarnings property is set internal bool IsSetFailOnWarnings() { return this._failOnWarnings.HasValue; } /// <summary> /// Gets and sets the property Format. /// <para> /// A query parameter to specify the input format to imported API keys. Currently, only /// the <code>csv</code> format is supported. /// </para> /// </summary> [AWSProperty(Required=true)] public ApiKeysFormat Format { get { return this._format; } set { this._format = value; } } // Check to see if Format property is set internal bool IsSetFormat() { return this._format != null; } } }
101
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The identifier of an ApiKey used in a UsagePlan. /// </summary> public partial class ImportApiKeysResponse : AmazonWebServiceResponse { private List<string> _ids = new List<string>(); private List<string> _warnings = new List<string>(); /// <summary> /// Gets and sets the property Ids. /// <para> /// A list of all the ApiKey identifiers. /// </para> /// </summary> public List<string> Ids { get { return this._ids; } set { this._ids = value; } } // Check to see if Ids property is set internal bool IsSetIds() { return this._ids != null && this._ids.Count > 0; } /// <summary> /// Gets and sets the property Warnings. /// <para> /// A list of warning messages. /// </para> /// </summary> public List<string> Warnings { get { return this._warnings; } set { this._warnings = value; } } // Check to see if Warnings property is set internal bool IsSetWarnings() { return this._warnings != null && this._warnings.Count > 0; } } }
76
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the ImportDocumentationParts operation. /// Imports documentation parts /// </summary> public partial class ImportDocumentationPartsRequest : AmazonAPIGatewayRequest { private MemoryStream _body; private bool? _failOnWarnings; private PutMode _mode; private string _restApiId; /// <summary> /// Gets and sets the property Body. /// <para> /// Raw byte array representing the to-be-imported documentation parts. To import from /// an OpenAPI file, this is a JSON object. /// </para> /// </summary> [AWSProperty(Required=true)] public MemoryStream Body { get { return this._body; } set { this._body = value; } } // Check to see if Body property is set internal bool IsSetBody() { return this._body != null; } /// <summary> /// Gets and sets the property FailOnWarnings. /// <para> /// A query parameter to specify whether to rollback the documentation importation (<code>true</code>) /// or not (<code>false</code>) when a warning is encountered. The default value is <code>false</code>. /// </para> /// </summary> public bool FailOnWarnings { get { return this._failOnWarnings.GetValueOrDefault(); } set { this._failOnWarnings = value; } } // Check to see if FailOnWarnings property is set internal bool IsSetFailOnWarnings() { return this._failOnWarnings.HasValue; } /// <summary> /// Gets and sets the property Mode. /// <para> /// A query parameter to indicate whether to overwrite (<code>OVERWRITE</code>) any existing /// DocumentationParts definition or to merge (<code>MERGE</code>) the new definition /// into the existing one. The default value is <code>MERGE</code>. /// </para> /// </summary> public PutMode Mode { get { return this._mode; } set { this._mode = value; } } // Check to see if Mode property is set internal bool IsSetMode() { return this._mode != null; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
121
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A collection of the imported DocumentationPart identifiers. /// </summary> public partial class ImportDocumentationPartsResponse : AmazonWebServiceResponse { private List<string> _ids = new List<string>(); private List<string> _warnings = new List<string>(); /// <summary> /// Gets and sets the property Ids. /// <para> /// A list of the returned documentation part identifiers. /// </para> /// </summary> public List<string> Ids { get { return this._ids; } set { this._ids = value; } } // Check to see if Ids property is set internal bool IsSetIds() { return this._ids != null && this._ids.Count > 0; } /// <summary> /// Gets and sets the property Warnings. /// <para> /// A list of warning messages reported during import of documentation parts. /// </para> /// </summary> public List<string> Warnings { get { return this._warnings; } set { this._warnings = value; } } // Check to see if Warnings property is set internal bool IsSetWarnings() { return this._warnings != null && this._warnings.Count > 0; } } }
76
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the ImportRestApi operation. /// A feature of the API Gateway control service for creating a new API from an external /// API definition file. /// </summary> public partial class ImportRestApiRequest : AmazonAPIGatewayRequest { private MemoryStream _body; private bool? _failOnWarnings; private Dictionary<string, string> _parameters = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property Body. /// <para> /// The POST request body containing external API definitions. Currently, only OpenAPI /// definition JSON/YAML files are supported. The maximum size of the API definition file /// is 6MB. /// </para> /// </summary> [AWSProperty(Required=true)] public MemoryStream Body { get { return this._body; } set { this._body = value; } } // Check to see if Body property is set internal bool IsSetBody() { return this._body != null; } /// <summary> /// Gets and sets the property FailOnWarnings. /// <para> /// A query parameter to indicate whether to rollback the API creation (<code>true</code>) /// or not (<code>false</code>) when a warning is encountered. The default value is <code>false</code>. /// </para> /// </summary> public bool FailOnWarnings { get { return this._failOnWarnings.GetValueOrDefault(); } set { this._failOnWarnings = value; } } // Check to see if FailOnWarnings property is set internal bool IsSetFailOnWarnings() { return this._failOnWarnings.HasValue; } /// <summary> /// Gets and sets the property Parameters. /// <para> /// A key-value map of context-specific query string parameters specifying the behavior /// of different API importing operations. The following shows operation-specific parameters /// and their supported values. /// </para> /// /// <para> /// To exclude DocumentationParts from the import, set <code>parameters</code> as <code>ignore=documentation</code>. /// </para> /// /// <para> /// To configure the endpoint type, set <code>parameters</code> as <code>endpointConfigurationTypes=EDGE</code>, /// <code>endpointConfigurationTypes=REGIONAL</code>, or <code>endpointConfigurationTypes=PRIVATE</code>. /// The default endpoint type is <code>EDGE</code>. /// </para> /// /// <para> /// To handle imported <code>basepath</code>, set <code>parameters</code> as <code>basepath=ignore</code>, /// <code>basepath=prepend</code> or <code>basepath=split</code>. /// </para> /// /// <para> /// For example, the AWS CLI command to exclude documentation from the imported API is: /// </para> /// /// <para> /// The AWS CLI command to set the regional endpoint on the imported API is: /// </para> /// </summary> public Dictionary<string, string> Parameters { get { return this._parameters; } set { this._parameters = value; } } // Check to see if Parameters property is set internal bool IsSetParameters() { return this._parameters != null && this._parameters.Count > 0; } } }
126
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a REST API. /// </summary> public partial class ImportRestApiResponse : AmazonWebServiceResponse { private ApiKeySourceType _apiKeySource; private List<string> _binaryMediaTypes = new List<string>(); private DateTime? _createdDate; private string _description; private bool? _disableExecuteApiEndpoint; private EndpointConfiguration _endpointConfiguration; private string _id; private int? _minimumCompressionSize; private string _name; private string _policy; private Dictionary<string, string> _tags = new Dictionary<string, string>(); private string _version; private List<string> _warnings = new List<string>(); /// <summary> /// Gets and sets the property ApiKeySource. /// <para> /// The source of the API key for metering requests according to a usage plan. Valid values /// are: &gt;<code>HEADER</code> to read the API key from the <code>X-API-Key</code> header /// of a request. <code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> /// from a custom authorizer. /// </para> /// </summary> public ApiKeySourceType ApiKeySource { get { return this._apiKeySource; } set { this._apiKeySource = value; } } // Check to see if ApiKeySource property is set internal bool IsSetApiKeySource() { return this._apiKeySource != null; } /// <summary> /// Gets and sets the property BinaryMediaTypes. /// <para> /// The list of binary media types supported by the RestApi. By default, the RestApi supports /// only UTF-8-encoded text payloads. /// </para> /// </summary> public List<string> BinaryMediaTypes { get { return this._binaryMediaTypes; } set { this._binaryMediaTypes = value; } } // Check to see if BinaryMediaTypes property is set internal bool IsSetBinaryMediaTypes() { return this._binaryMediaTypes != null && this._binaryMediaTypes.Count > 0; } /// <summary> /// Gets and sets the property CreatedDate. /// <para> /// The timestamp when the API was created. /// </para> /// </summary> public DateTime CreatedDate { get { return this._createdDate.GetValueOrDefault(); } set { this._createdDate = value; } } // Check to see if CreatedDate property is set internal bool IsSetCreatedDate() { return this._createdDate.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The API's description. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property DisableExecuteApiEndpoint. /// <para> /// Specifies whether clients can invoke your API by using the default <code>execute-api</code> /// endpoint. By default, clients can invoke your API with the default <code>https://{api_id}.execute-api.{region}.amazonaws.com</code> /// endpoint. To require that clients use a custom domain name to invoke your API, disable /// the default endpoint. /// </para> /// </summary> public bool DisableExecuteApiEndpoint { get { return this._disableExecuteApiEndpoint.GetValueOrDefault(); } set { this._disableExecuteApiEndpoint = value; } } // Check to see if DisableExecuteApiEndpoint property is set internal bool IsSetDisableExecuteApiEndpoint() { return this._disableExecuteApiEndpoint.HasValue; } /// <summary> /// Gets and sets the property EndpointConfiguration. /// <para> /// The endpoint configuration of this RestApi showing the endpoint types of the API. /// /// </para> /// </summary> public EndpointConfiguration EndpointConfiguration { get { return this._endpointConfiguration; } set { this._endpointConfiguration = value; } } // Check to see if EndpointConfiguration property is set internal bool IsSetEndpointConfiguration() { return this._endpointConfiguration != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The API's identifier. This identifier is unique across all of your APIs in API Gateway. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property MinimumCompressionSize. /// <para> /// A nullable integer that is used to enable compression (with non-negative between 0 /// and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on /// an API. When compression is enabled, compression or decompression is not applied on /// the payload if the payload size is smaller than this value. Setting it to zero allows /// compression for any payload size. /// </para> /// </summary> public int MinimumCompressionSize { get { return this._minimumCompressionSize.GetValueOrDefault(); } set { this._minimumCompressionSize = value; } } // Check to see if MinimumCompressionSize property is set internal bool IsSetMinimumCompressionSize() { return this._minimumCompressionSize.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The API's name. /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Policy. /// <para> /// A stringified JSON policy document that applies to this RestApi regardless of the /// caller and Method configuration. /// </para> /// </summary> public string Policy { get { return this._policy; } set { this._policy = value; } } // Check to see if Policy property is set internal bool IsSetPolicy() { return this._policy != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The collection of tags. Each tag element is associated with a given resource. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property Version. /// <para> /// A version identifier for the API. /// </para> /// </summary> public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } /// <summary> /// Gets and sets the property Warnings. /// <para> /// The warning messages reported when <code>failonwarnings</code> is turned on during /// API import. /// </para> /// </summary> public List<string> Warnings { get { return this._warnings; } set { this._warnings = value; } } // Check to see if Warnings property is set internal bool IsSetWarnings() { return this._warnings != null && this._warnings.Count > 0; } } }
299
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration. /// </summary> public partial class Integration { private List<string> _cacheKeyParameters = new List<string>(); private string _cacheNamespace; private string _connectionId; private ConnectionType _connectionType; private ContentHandlingStrategy _contentHandling; private string _credentials; private string _httpMethod; private Dictionary<string, IntegrationResponse> _integrationResponses = new Dictionary<string, IntegrationResponse>(); private string _passthroughBehavior; private Dictionary<string, string> _requestParameters = new Dictionary<string, string>(); private Dictionary<string, string> _requestTemplates = new Dictionary<string, string>(); private int? _timeoutInMillis; private TlsConfig _tlsConfig; private IntegrationType _type; private string _uri; /// <summary> /// Gets and sets the property CacheKeyParameters. /// <para> /// A list of request parameters whose values API Gateway caches. To be valid values for /// <code>cacheKeyParameters</code>, these parameters must also be specified for Method /// <code>requestParameters</code>. /// </para> /// </summary> public List<string> CacheKeyParameters { get { return this._cacheKeyParameters; } set { this._cacheKeyParameters = value; } } // Check to see if CacheKeyParameters property is set internal bool IsSetCacheKeyParameters() { return this._cacheKeyParameters != null && this._cacheKeyParameters.Count > 0; } /// <summary> /// Gets and sets the property CacheNamespace. /// <para> /// Specifies a group of related cached parameters. By default, API Gateway uses the resource /// ID as the <code>cacheNamespace</code>. You can specify the same <code>cacheNamespace</code> /// across resources to return the same cached data for requests to different resources. /// </para> /// </summary> public string CacheNamespace { get { return this._cacheNamespace; } set { this._cacheNamespace = value; } } // Check to see if CacheNamespace property is set internal bool IsSetCacheNamespace() { return this._cacheNamespace != null; } /// <summary> /// Gets and sets the property ConnectionId. /// <para> /// The ID of the VpcLink used for the integration when <code>connectionType=VPC_LINK</code> /// and undefined, otherwise. /// </para> /// </summary> public string ConnectionId { get { return this._connectionId; } set { this._connectionId = value; } } // Check to see if ConnectionId property is set internal bool IsSetConnectionId() { return this._connectionId != null; } /// <summary> /// Gets and sets the property ConnectionType. /// <para> /// The type of the network connection to the integration endpoint. The valid value is /// <code>INTERNET</code> for connections through the public routable internet or <code>VPC_LINK</code> /// for private connections between API Gateway and a network load balancer in a VPC. /// The default value is <code>INTERNET</code>. /// </para> /// </summary> public ConnectionType ConnectionType { get { return this._connectionType; } set { this._connectionType = value; } } // Check to see if ConnectionType property is set internal bool IsSetConnectionType() { return this._connectionType != null; } /// <summary> /// Gets and sets the property ContentHandling. /// <para> /// Specifies how to handle request payload content type conversions. Supported values /// are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following /// behaviors: /// </para> /// /// <para> /// If this property is not defined, the request payload will be passed through from the /// method request to integration request without modification, provided that the <code>passthroughBehavior</code> /// is configured to support payload pass-through. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property Credentials. /// <para> /// Specifies the credentials required for the integration, if any. For AWS integrations, /// three options are available. To specify an IAM Role for API Gateway to assume, use /// the role's Amazon Resource Name (ARN). To require that the caller's identity be passed /// through from the request, specify the string <code>arn:aws:iam::\*:user/\*</code>. /// To use resource-based permissions on supported AWS services, specify null. /// </para> /// </summary> public string Credentials { get { return this._credentials; } set { this._credentials = value; } } // Check to see if Credentials property is set internal bool IsSetCredentials() { return this._credentials != null; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// Specifies the integration's HTTP method type. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property IntegrationResponses. /// <para> /// Specifies the integration's responses. /// </para> /// </summary> public Dictionary<string, IntegrationResponse> IntegrationResponses { get { return this._integrationResponses; } set { this._integrationResponses = value; } } // Check to see if IntegrationResponses property is set internal bool IsSetIntegrationResponses() { return this._integrationResponses != null && this._integrationResponses.Count > 0; } /// <summary> /// Gets and sets the property PassthroughBehavior. /// <para> /// Specifies how the method request body of an unmapped content type will be passed through /// the integration request to the back end without transformation. A content type is /// unmapped if no mapping template is defined in the integration or the content type /// does not match any of the mapped content types, as specified in <code>requestTemplates</code>. /// The valid value is one of the following: <code>WHEN_NO_MATCH</code>: passes the method /// request body through the integration request to the back end without transformation /// when the method request content type does not match any content type associated with /// the mapping templates defined in the integration request. <code>WHEN_NO_TEMPLATES</code>: /// passes the method request body through the integration request to the back end without /// transformation when no mapping template is defined in the integration request. If /// a template is defined when this option is selected, the method request of an unmapped /// content-type will be rejected with an HTTP 415 Unsupported Media Type response. <code>NEVER</code>: /// rejects the method request with an HTTP 415 Unsupported Media Type response when either /// the method request content type does not match any content type associated with the /// mapping templates defined in the integration request or no mapping template is defined /// in the integration request. /// </para> /// </summary> public string PassthroughBehavior { get { return this._passthroughBehavior; } set { this._passthroughBehavior = value; } } // Check to see if PassthroughBehavior property is set internal bool IsSetPassthroughBehavior() { return this._passthroughBehavior != null; } /// <summary> /// Gets and sets the property RequestParameters. /// <para> /// A key-value map specifying request parameters that are passed from the method request /// to the back end. The key is an integration request parameter name and the associated /// value is a method request parameter value or static value that must be enclosed within /// single quotes and pre-encoded as required by the back end. The method request parameter /// value must match the pattern of <code>method.request.{location}.{name}</code>, where /// <code>location</code> is <code>querystring</code>, <code>path</code>, or <code>header</code> /// and <code>name</code> must be a valid and unique method request parameter name. /// </para> /// </summary> public Dictionary<string, string> RequestParameters { get { return this._requestParameters; } set { this._requestParameters = value; } } // Check to see if RequestParameters property is set internal bool IsSetRequestParameters() { return this._requestParameters != null && this._requestParameters.Count > 0; } /// <summary> /// Gets and sets the property RequestTemplates. /// <para> /// Represents a map of Velocity templates that are applied on the request payload based /// on the value of the Content-Type header sent by the client. The content type value /// is the key in this map, and the template (as a String) is the value. /// </para> /// </summary> public Dictionary<string, string> RequestTemplates { get { return this._requestTemplates; } set { this._requestTemplates = value; } } // Check to see if RequestTemplates property is set internal bool IsSetRequestTemplates() { return this._requestTemplates != null && this._requestTemplates.Count > 0; } /// <summary> /// Gets and sets the property TimeoutInMillis. /// <para> /// Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds /// or 29 seconds. /// </para> /// </summary> public int TimeoutInMillis { get { return this._timeoutInMillis.GetValueOrDefault(); } set { this._timeoutInMillis = value; } } // Check to see if TimeoutInMillis property is set internal bool IsSetTimeoutInMillis() { return this._timeoutInMillis.HasValue; } /// <summary> /// Gets and sets the property TlsConfig. /// <para> /// Specifies the TLS configuration for an integration. /// </para> /// </summary> public TlsConfig TlsConfig { get { return this._tlsConfig; } set { this._tlsConfig = value; } } // Check to see if TlsConfig property is set internal bool IsSetTlsConfig() { return this._tlsConfig != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// Specifies an API method integration type. The valid value is one of the following: /// </para> /// /// <para> /// For the HTTP and HTTP proxy integrations, each integration can specify a protocol /// (<code>http/https</code>), port and path. Standard 80 and 443 ports are supported /// as well as custom ports above 1024. An HTTP or HTTP proxy integration with a <code>connectionType</code> /// of <code>VPC_LINK</code> is referred to as a private integration and uses a VpcLink /// to connect API Gateway to a network load balancer of a VPC. /// </para> /// </summary> public IntegrationType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property Uri. /// <para> /// Specifies Uniform Resource Identifier (URI) of the integration endpoint. /// </para> /// /// <para> /// For <code>HTTP</code> or <code>HTTP_PROXY</code> integrations, the URI must be a fully /// formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard /// integration, where <code>connectionType</code> is not <code>VPC_LINK</code>, or private /// integration, where <code>connectionType</code> is <code>VPC_LINK</code>. For a private /// HTTP integration, the URI is not used for routing. For <code>AWS</code> or <code>AWS_PROXY</code> /// integrations, the URI is of the form <code>arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}</code>. /// Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name /// of the integrated Amazon Web Services service (e.g., s3); and {subdomain} is a designated /// subdomain supported by certain Amazon Web Services service for fast host-name lookup. /// action can be used for an Amazon Web Services service action-based API, using an Action={name}&amp;{p1}={v1}&amp;p2={v2}... /// query string. The ensuing {service_api} refers to a supported action {name} plus any /// required input parameters. Alternatively, path can be used for an AWS service path-based /// API. The ensuing service_api refers to the path to an Amazon Web Services service /// resource, including the region of the integrated Amazon Web Services service, if applicable. /// For example, for integration with the S3 API of GetObject, the uri can be either <code>arn:aws:apigateway:us-west-2:s3:action/GetObject&amp;Bucket={bucket}&amp;Key={key}</code> /// or <code>arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}</code> /// </para> /// </summary> public string Uri { get { return this._uri; } set { this._uri = value; } } // Check to see if Uri property is set internal bool IsSetUri() { return this._uri != null; } } }
394
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents an integration response. The status code must map to an existing MethodResponse, /// and parameters and templates can be used to transform the back-end response. /// </summary> public partial class IntegrationResponse { private ContentHandlingStrategy _contentHandling; private Dictionary<string, string> _responseParameters = new Dictionary<string, string>(); private Dictionary<string, string> _responseTemplates = new Dictionary<string, string>(); private string _selectionPattern; private string _statusCode; /// <summary> /// Gets and sets the property ContentHandling. /// <para> /// Specifies how to handle response payload content type conversions. Supported values /// are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following /// behaviors: /// </para> /// /// <para> /// If this property is not defined, the response payload will be passed through from /// the integration response to the method response without modification. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property ResponseParameters. /// <para> /// 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 <code>method.response.header.{name}</code>, where <code>name</code> /// is a valid and unique header name. The mapped non-static value must match the pattern /// of <code>integration.response.header.{name}</code> or <code>integration.response.body.{JSON-expression}</code>, /// where <code>name</code> is a valid and unique response header name and <code>JSON-expression</code> /// is a valid JSON expression without the <code>$</code> prefix. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseTemplates. /// <para> /// Specifies the templates used to transform the integration response body. Response /// templates are represented as a key/value map, with a content-type as the key and a /// template as the value. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property SelectionPattern. /// <para> /// Specifies the regular expression (regex) pattern used to choose an integration response /// based on the response from the back end. For example, if the success response returns /// nothing and the error response returns some string, you could use the <code>.+</code> /// regex to match error response. However, make sure that the error response does not /// contain any newline (<code>\n</code>) character in such cases. If the back end is /// an AWS Lambda function, the AWS Lambda function error header is matched. For all other /// HTTP and AWS back ends, the HTTP status code is matched. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// Specifies the status code that is used to map the integration response to an existing /// MethodResponse. /// </para> /// </summary> 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; } } }
158
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The request exceeded the rate limit. Retry after the specified time period. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class LimitExceededException : AmazonAPIGatewayException { private string _retryAfterSeconds; /// <summary> /// Constructs a new LimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public LimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public LimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="innerException"></param> public LimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public LimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public LimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the LimitExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected LimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.RetryAfterSeconds = (string)info.GetValue("RetryAfterSeconds", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("RetryAfterSeconds", this.RetryAfterSeconds); } #endif /// <summary> /// Gets and sets the property RetryAfterSeconds. /// </summary> public string RetryAfterSeconds { get { return this._retryAfterSeconds; } set { this._retryAfterSeconds = value; } } // Check to see if RetryAfterSeconds property is set internal bool IsSetRetryAfterSeconds() { return this._retryAfterSeconds != null; } } }
142
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a client-facing interface by which the client calls the API to access /// back-end resources. A Method resource is integrated with an Integration resource. /// Both consist of a request and one or more responses. The method request takes the /// client input that is passed to the back end through the integration request. A method /// response returns the output from the back end to the client through an integration /// response. A method request is embodied in a Method resource, whereas an integration /// request is embodied in an Integration resource. On the other hand, a method response /// is represented by a MethodResponse resource, whereas an integration response is represented /// by an IntegrationResponse resource. /// </summary> public partial class Method { private bool? _apiKeyRequired; private List<string> _authorizationScopes = new List<string>(); private string _authorizationType; private string _authorizerId; private string _httpMethod; private Integration _methodIntegration; private Dictionary<string, MethodResponse> _methodResponses = new Dictionary<string, MethodResponse>(); private string _operationName; private Dictionary<string, string> _requestModels = new Dictionary<string, string>(); private Dictionary<string, bool> _requestParameters = new Dictionary<string, bool>(); private string _requestValidatorId; /// <summary> /// Gets and sets the property ApiKeyRequired. /// <para> /// A boolean flag specifying whether a valid ApiKey is required to invoke this method. /// </para> /// </summary> public bool ApiKeyRequired { get { return this._apiKeyRequired.GetValueOrDefault(); } set { this._apiKeyRequired = value; } } // Check to see if ApiKeyRequired property is set internal bool IsSetApiKeyRequired() { return this._apiKeyRequired.HasValue; } /// <summary> /// Gets and sets the property AuthorizationScopes. /// <para> /// A list of authorization scopes configured on the method. The scopes are used with /// a <code>COGNITO_USER_POOLS</code> authorizer to authorize the method invocation. The /// authorization works by matching the method scopes against the scopes parsed from the /// access token in the incoming request. The method invocation is authorized if any method /// scopes matches a claimed scope in the access token. Otherwise, the invocation is not /// authorized. When the method scope is configured, the client must provide an access /// token instead of an identity token for authorization purposes. /// </para> /// </summary> public List<string> AuthorizationScopes { get { return this._authorizationScopes; } set { this._authorizationScopes = value; } } // Check to see if AuthorizationScopes property is set internal bool IsSetAuthorizationScopes() { return this._authorizationScopes != null && this._authorizationScopes.Count > 0; } /// <summary> /// Gets and sets the property AuthorizationType. /// <para> /// The method's authorization type. Valid values are <code>NONE</code> for open access, /// <code>AWS_IAM</code> for using AWS IAM permissions, <code>CUSTOM</code> for using /// a custom authorizer, or <code>COGNITO_USER_POOLS</code> for using a Cognito user pool. /// </para> /// </summary> public string AuthorizationType { get { return this._authorizationType; } set { this._authorizationType = value; } } // Check to see if AuthorizationType property is set internal bool IsSetAuthorizationType() { return this._authorizationType != null; } /// <summary> /// Gets and sets the property AuthorizerId. /// <para> /// The identifier of an Authorizer to use on this method. The <code>authorizationType</code> /// must be <code>CUSTOM</code>. /// </para> /// </summary> public string AuthorizerId { get { return this._authorizerId; } set { this._authorizerId = value; } } // Check to see if AuthorizerId property is set internal bool IsSetAuthorizerId() { return this._authorizerId != null; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// The method's HTTP verb. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property MethodIntegration. /// <para> /// Gets the method's integration responsible for passing the client-submitted request /// to the back end and performing necessary transformations to make the request compliant /// with the back end. /// </para> /// </summary> public Integration MethodIntegration { get { return this._methodIntegration; } set { this._methodIntegration = value; } } // Check to see if MethodIntegration property is set internal bool IsSetMethodIntegration() { return this._methodIntegration != null; } /// <summary> /// Gets and sets the property MethodResponses. /// <para> /// Gets a method response associated with a given HTTP status code. /// </para> /// </summary> public Dictionary<string, MethodResponse> MethodResponses { get { return this._methodResponses; } set { this._methodResponses = value; } } // Check to see if MethodResponses property is set internal bool IsSetMethodResponses() { return this._methodResponses != null && this._methodResponses.Count > 0; } /// <summary> /// Gets and sets the property OperationName. /// <para> /// A human-friendly operation identifier for the method. For example, you can assign /// the <code>operationName</code> of <code>ListPets</code> for the <code>GET /pets</code> /// method in the <code>PetStore</code> example. /// </para> /// </summary> public string OperationName { get { return this._operationName; } set { this._operationName = value; } } // Check to see if OperationName property is set internal bool IsSetOperationName() { return this._operationName != null; } /// <summary> /// Gets and sets the property RequestModels. /// <para> /// A key-value map specifying data schemas, represented by Model resources, (as the mapped /// value) of the request payloads of given content types (as the mapping key). /// </para> /// </summary> public Dictionary<string, string> RequestModels { get { return this._requestModels; } set { this._requestModels = value; } } // Check to see if RequestModels property is set internal bool IsSetRequestModels() { return this._requestModels != null && this._requestModels.Count > 0; } /// <summary> /// Gets and sets the property RequestParameters. /// <para> /// A key-value map defining required or optional method request parameters that can be /// accepted by API Gateway. A key is a method request parameter name matching the pattern /// of <code>method.request.{location}.{name}</code>, where <code>location</code> is <code>querystring</code>, /// <code>path</code>, or <code>header</code> and <code>name</code> is a valid and unique /// parameter name. The value associated with the key is a Boolean flag indicating whether /// the parameter is required (<code>true</code>) or optional (<code>false</code>). The /// method request parameter names defined here are available in Integration to be mapped /// to integration request parameters or templates. /// </para> /// </summary> public Dictionary<string, bool> RequestParameters { get { return this._requestParameters; } set { this._requestParameters = value; } } // Check to see if RequestParameters property is set internal bool IsSetRequestParameters() { return this._requestParameters != null && this._requestParameters.Count > 0; } /// <summary> /// Gets and sets the property RequestValidatorId. /// <para> /// The identifier of a RequestValidator for request validation. /// </para> /// </summary> public string RequestValidatorId { get { return this._requestValidatorId; } set { this._requestValidatorId = value; } } // Check to see if RequestValidatorId property is set internal bool IsSetRequestValidatorId() { return this._requestValidatorId != null; } } }
276
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// 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. /// </summary> public partial class MethodResponse { private Dictionary<string, string> _responseModels = new Dictionary<string, string>(); private Dictionary<string, bool> _responseParameters = new Dictionary<string, bool>(); private string _statusCode; /// <summary> /// Gets and sets the property ResponseModels. /// <para> /// 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. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseParameters. /// <para> /// 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 <code>method.response.header.{name}</code>, where /// <code>name</code> 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 <code>integration.response.header.{name}</code>, /// a static value enclosed within a pair of single quotes (e.g., <code>'application/json'</code>), /// or a JSON expression from the back-end response payload in the form of <code>integration.response.body.{JSON-expression}</code>, /// where <code>JSON-expression</code> is a valid JSON expression without the <code>$</code> /// prefix.) /// </para> /// </summary> public Dictionary<string, bool> 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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// The method response's status code. /// </para> /// </summary> 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; } } }
110
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Specifies the method setting properties. /// </summary> public partial class MethodSetting { private bool? _cacheDataEncrypted; private int? _cacheTtlInSeconds; private bool? _cachingEnabled; private bool? _dataTraceEnabled; private string _loggingLevel; private bool? _metricsEnabled; private bool? _requireAuthorizationForCacheControl; private int? _throttlingBurstLimit; private double? _throttlingRateLimit; private UnauthorizedCacheControlHeaderStrategy _unauthorizedCacheControlHeaderStrategy; /// <summary> /// Gets and sets the property CacheDataEncrypted. /// <para> /// Specifies whether the cached responses are encrypted. The PATCH path for this setting /// is <code>/{method_setting_key}/caching/dataEncrypted</code>, and the value is a Boolean. /// </para> /// </summary> public bool CacheDataEncrypted { get { return this._cacheDataEncrypted.GetValueOrDefault(); } set { this._cacheDataEncrypted = value; } } // Check to see if CacheDataEncrypted property is set internal bool IsSetCacheDataEncrypted() { return this._cacheDataEncrypted.HasValue; } /// <summary> /// Gets and sets the property CacheTtlInSeconds. /// <para> /// Specifies the time to live (TTL), in seconds, for cached responses. The higher the /// TTL, the longer the response will be cached. The PATCH path for this setting is <code>/{method_setting_key}/caching/ttlInSeconds</code>, /// and the value is an integer. /// </para> /// </summary> public int CacheTtlInSeconds { get { return this._cacheTtlInSeconds.GetValueOrDefault(); } set { this._cacheTtlInSeconds = value; } } // Check to see if CacheTtlInSeconds property is set internal bool IsSetCacheTtlInSeconds() { return this._cacheTtlInSeconds.HasValue; } /// <summary> /// Gets and sets the property CachingEnabled. /// <para> /// Specifies whether responses should be cached and returned for requests. A cache cluster /// must be enabled on the stage for responses to be cached. The PATCH path for this setting /// is <code>/{method_setting_key}/caching/enabled</code>, and the value is a Boolean. /// </para> /// </summary> public bool CachingEnabled { get { return this._cachingEnabled.GetValueOrDefault(); } set { this._cachingEnabled = value; } } // Check to see if CachingEnabled property is set internal bool IsSetCachingEnabled() { return this._cachingEnabled.HasValue; } /// <summary> /// Gets and sets the property DataTraceEnabled. /// <para> /// Specifies whether data trace logging is enabled for this method, which affects the /// log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is <code>/{method_setting_key}/logging/dataTrace</code>, /// and the value is a Boolean. /// </para> /// </summary> public bool DataTraceEnabled { get { return this._dataTraceEnabled.GetValueOrDefault(); } set { this._dataTraceEnabled = value; } } // Check to see if DataTraceEnabled property is set internal bool IsSetDataTraceEnabled() { return this._dataTraceEnabled.HasValue; } /// <summary> /// Gets and sets the property LoggingLevel. /// <para> /// Specifies the logging level for this method, which affects the log entries pushed /// to Amazon CloudWatch Logs. The PATCH path for this setting is <code>/{method_setting_key}/logging/loglevel</code>, /// and the available levels are <code>OFF</code>, <code>ERROR</code>, and <code>INFO</code>. /// Choose <code>ERROR</code> to write only error-level entries to CloudWatch Logs, or /// choose <code>INFO</code> to include all <code>ERROR</code> events as well as extra /// informational events. /// </para> /// </summary> public string LoggingLevel { get { return this._loggingLevel; } set { this._loggingLevel = value; } } // Check to see if LoggingLevel property is set internal bool IsSetLoggingLevel() { return this._loggingLevel != null; } /// <summary> /// Gets and sets the property MetricsEnabled. /// <para> /// Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH /// path for this setting is <code>/{method_setting_key}/metrics/enabled</code>, and the /// value is a Boolean. /// </para> /// </summary> public bool MetricsEnabled { get { return this._metricsEnabled.GetValueOrDefault(); } set { this._metricsEnabled = value; } } // Check to see if MetricsEnabled property is set internal bool IsSetMetricsEnabled() { return this._metricsEnabled.HasValue; } /// <summary> /// Gets and sets the property RequireAuthorizationForCacheControl. /// <para> /// Specifies whether authorization is required for a cache invalidation request. The /// PATCH path for this setting is <code>/{method_setting_key}/caching/requireAuthorizationForCacheControl</code>, /// and the value is a Boolean. /// </para> /// </summary> public bool RequireAuthorizationForCacheControl { get { return this._requireAuthorizationForCacheControl.GetValueOrDefault(); } set { this._requireAuthorizationForCacheControl = value; } } // Check to see if RequireAuthorizationForCacheControl property is set internal bool IsSetRequireAuthorizationForCacheControl() { return this._requireAuthorizationForCacheControl.HasValue; } /// <summary> /// Gets and sets the property ThrottlingBurstLimit. /// <para> /// Specifies the throttling burst limit. The PATCH path for this setting is <code>/{method_setting_key}/throttling/burstLimit</code>, /// and the value is an integer. /// </para> /// </summary> public int ThrottlingBurstLimit { get { return this._throttlingBurstLimit.GetValueOrDefault(); } set { this._throttlingBurstLimit = value; } } // Check to see if ThrottlingBurstLimit property is set internal bool IsSetThrottlingBurstLimit() { return this._throttlingBurstLimit.HasValue; } /// <summary> /// Gets and sets the property ThrottlingRateLimit. /// <para> /// Specifies the throttling rate limit. The PATCH path for this setting is <code>/{method_setting_key}/throttling/rateLimit</code>, /// and the value is a double. /// </para> /// </summary> public double ThrottlingRateLimit { get { return this._throttlingRateLimit.GetValueOrDefault(); } set { this._throttlingRateLimit = value; } } // Check to see if ThrottlingRateLimit property is set internal bool IsSetThrottlingRateLimit() { return this._throttlingRateLimit.HasValue; } /// <summary> /// Gets and sets the property UnauthorizedCacheControlHeaderStrategy. /// <para> /// Specifies how to handle unauthorized requests for cache invalidation. The PATCH path /// for this setting is <code>/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy</code>, /// and the available values are <code>FAIL_WITH_403</code>, <code>SUCCEED_WITH_RESPONSE_HEADER</code>, /// <code>SUCCEED_WITHOUT_RESPONSE_HEADER</code>. /// </para> /// </summary> public UnauthorizedCacheControlHeaderStrategy UnauthorizedCacheControlHeaderStrategy { get { return this._unauthorizedCacheControlHeaderStrategy; } set { this._unauthorizedCacheControlHeaderStrategy = value; } } // Check to see if UnauthorizedCacheControlHeaderStrategy property is set internal bool IsSetUnauthorizedCacheControlHeaderStrategy() { return this._unauthorizedCacheControlHeaderStrategy != null; } } }
249
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a summary of a Method resource, given a particular date and time. /// </summary> public partial class MethodSnapshot { private bool? _apiKeyRequired; private string _authorizationType; /// <summary> /// Gets and sets the property ApiKeyRequired. /// <para> /// Specifies whether the method requires a valid ApiKey. /// </para> /// </summary> public bool ApiKeyRequired { get { return this._apiKeyRequired.GetValueOrDefault(); } set { this._apiKeyRequired = value; } } // Check to see if ApiKeyRequired property is set internal bool IsSetApiKeyRequired() { return this._apiKeyRequired.HasValue; } /// <summary> /// Gets and sets the property AuthorizationType. /// <para> /// The method's authorization type. Valid values are <code>NONE</code> for open access, /// <code>AWS_IAM</code> for using AWS IAM permissions, <code>CUSTOM</code> for using /// a custom authorizer, or <code>COGNITO_USER_POOLS</code> for using a Cognito user pool. /// </para> /// </summary> public string AuthorizationType { get { return this._authorizationType; } set { this._authorizationType = value; } } // Check to see if AuthorizationType property is set internal bool IsSetAuthorizationType() { return this._authorizationType != null; } } }
78
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents the data structure of a method's request or response payload. /// </summary> public partial class Model { private string _contentType; private string _description; private string _id; private string _name; private string _schema; /// <summary> /// Gets and sets the property ContentType. /// <para> /// The content-type for the model. /// </para> /// </summary> public string ContentType { get { return this._contentType; } set { this._contentType = value; } } // Check to see if ContentType property is set internal bool IsSetContentType() { return this._contentType != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the model. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier for the model resource. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the model. Must be an alphanumeric string. /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Schema. /// <para> /// The schema for the model. For <code>application/json</code> models, this should be /// JSON schema draft 4 model. Do not include "\*/" characters in the description of any /// properties because such "\*/" characters may be interpreted as the closing marker /// for comments in some languages, such as Java or JavaScript, causing the installation /// of your API's SDK generated by API Gateway to fail. /// </para> /// </summary> public string Schema { get { return this._schema; } set { this._schema = value; } } // Check to see if Schema property is set internal bool IsSetSchema() { return this._schema != null; } } }
137
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The mutual TLS authentication configuration for a custom domain name. If specified, /// API Gateway performs two-way authentication between the client and the server. Clients /// must present a trusted certificate to access your API. /// </summary> public partial class MutualTlsAuthentication { private string _truststoreUri; private string _truststoreVersion; private List<string> _truststoreWarnings = new List<string>(); /// <summary> /// Gets and sets the property TruststoreUri. /// <para> /// An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for /// example <code>s3://bucket-name/key-name</code>. The truststore can contain certificates /// from public or private certificate authorities. To update the truststore, upload a /// new version to S3, and then update your custom domain name to use the new version. /// To update the truststore, you must have permissions to access the S3 object. /// </para> /// </summary> public string TruststoreUri { get { return this._truststoreUri; } set { this._truststoreUri = value; } } // Check to see if TruststoreUri property is set internal bool IsSetTruststoreUri() { return this._truststoreUri != null; } /// <summary> /// Gets and sets the property TruststoreVersion. /// <para> /// The version of the S3 object that contains your truststore. To specify a version, /// you must have versioning enabled for the S3 bucket. /// </para> /// </summary> public string TruststoreVersion { get { return this._truststoreVersion; } set { this._truststoreVersion = value; } } // Check to see if TruststoreVersion property is set internal bool IsSetTruststoreVersion() { return this._truststoreVersion != null; } /// <summary> /// Gets and sets the property TruststoreWarnings. /// <para> /// A list of warnings that API Gateway returns while processing your truststore. Invalid /// certificates produce warnings. Mutual TLS is still enabled, but some clients might /// not be able to access your API. To resolve warnings, upload a new truststore to S3, /// and then update you domain name to use the new version. /// </para> /// </summary> public List<string> TruststoreWarnings { get { return this._truststoreWarnings; } set { this._truststoreWarnings = value; } } // Check to see if TruststoreWarnings property is set internal bool IsSetTruststoreWarnings() { return this._truststoreWarnings != null && this._truststoreWarnings.Count > 0; } } }
105
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The mutual TLS authentication configuration for a custom domain name. If specified, /// API Gateway performs two-way authentication between the client and the server. Clients /// must present a trusted certificate to access your API. /// </summary> public partial class MutualTlsAuthenticationInput { private string _truststoreUri; private string _truststoreVersion; /// <summary> /// Gets and sets the property TruststoreUri. /// <para> /// An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for /// example <code>s3://bucket-name/key-name</code>. The truststore can contain certificates /// from public or private certificate authorities. To update the truststore, upload a /// new version to S3, and then update your custom domain name to use the new version. /// To update the truststore, you must have permissions to access the S3 object. /// </para> /// </summary> public string TruststoreUri { get { return this._truststoreUri; } set { this._truststoreUri = value; } } // Check to see if TruststoreUri property is set internal bool IsSetTruststoreUri() { return this._truststoreUri != null; } /// <summary> /// Gets and sets the property TruststoreVersion. /// <para> /// The version of the S3 object that contains your truststore. To specify a version, /// you must have versioning enabled for the S3 bucket /// </para> /// </summary> public string TruststoreVersion { get { return this._truststoreVersion; } set { this._truststoreVersion = value; } } // Check to see if TruststoreVersion property is set internal bool IsSetTruststoreVersion() { return this._truststoreVersion != null; } } }
83
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The requested resource is not found. Make sure that the request URI is correct. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class NotFoundException : AmazonAPIGatewayException { /// <summary> /// Constructs a new NotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public NotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of NotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public NotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of NotFoundException /// </summary> /// <param name="innerException"></param> public NotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of NotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of NotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the NotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected NotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// For more information about supported patch operations, see <a href="https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html">Patch /// Operations</a>. /// </summary> public partial class PatchOperation { private string _from; private Op _op; private string _path; private string _value; /// <summary> /// Gets and sets the property From. /// <para> /// The copy update operation's source as identified by a JSON-Pointer value referencing /// the location within the targeted resource to copy the value from. For example, to /// promote a canary deployment, you copy the canary deployment ID to the affiliated deployment /// ID by calling a PATCH request on a Stage resource with "op":"copy", "from":"/canarySettings/deploymentId" /// and "path":"/deploymentId". /// </para> /// </summary> public string From { get { return this._from; } set { this._from = value; } } // Check to see if From property is set internal bool IsSetFrom() { return this._from != null; } /// <summary> /// Gets and sets the property Op. /// <para> /// An update operation to be performed with this PATCH request. The valid value can be /// add, remove, replace or copy. Not all valid operations are supported for a given resource. /// Support of the operations depends on specific operational contexts. Attempts to apply /// an unsupported operation on a resource will return an error message.. /// </para> /// </summary> public Op Op { get { return this._op; } set { this._op = value; } } // Check to see if Op property is set internal bool IsSetOp() { return this._op != null; } /// <summary> /// Gets and sets the property Path. /// <para> /// The op operation's target, as identified by a JSON Pointer value that references a /// location within the targeted resource. For example, if the target resource has an /// updateable property of {"name":"value"}, the path for this property is /name. If the /// name property value is a JSON object (e.g., {"name": {"child/name": "child-value"}}), /// the path for the child/name property will be /name/child~1name. Any slash ("/") character /// appearing in path names must be escaped with "~1", as shown in the example above. /// Each op operation can have only one path associated with it. /// </para> /// </summary> public string Path { get { return this._path; } set { this._path = value; } } // Check to see if Path property is set internal bool IsSetPath() { return this._path != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// The new target value of the update operation. It is applicable for the add or replace /// operation. When using AWS CLI to update a property of a JSON value, enclose the JSON /// object with a pair of single quotes in a Linux shell, e.g., '{"a": ...}'. /// </para> /// </summary> public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
130
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the PutGatewayResponse operation. /// Creates a customization of a GatewayResponse of a specified response type and status /// code on the given RestApi. /// </summary> public partial class PutGatewayResponseRequest : AmazonAPIGatewayRequest { private Dictionary<string, string> _responseParameters = new Dictionary<string, string>(); private Dictionary<string, string> _responseTemplates = new Dictionary<string, string>(); private GatewayResponseType _responseType; private string _restApiId; private string _statusCode; /// <summary> /// Gets and sets the property ResponseParameters. /// <para> /// Response parameters (paths, query strings and headers) of the GatewayResponse as a /// string-to-string map of key-value pairs. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseTemplates. /// <para> /// Response templates of the GatewayResponse as a string-to-string map of key-value pairs. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseType. /// <para> /// The response type of the associated GatewayResponse /// </para> /// </summary> [AWSProperty(Required=true)] 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; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// The HTTP status code of the GatewayResponse. /// </para> /// </summary> 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; } } }
138
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A gateway response of a given response type and status code, with optional response /// parameters and mapping templates. /// </summary> public partial class PutGatewayResponseResponse : AmazonWebServiceResponse { private bool? _defaultResponse; private Dictionary<string, string> _responseParameters = new Dictionary<string, string>(); private Dictionary<string, string> _responseTemplates = new Dictionary<string, string>(); private GatewayResponseType _responseType; private string _statusCode; /// <summary> /// Gets and sets the property DefaultResponse. /// <para> /// A Boolean flag to indicate whether this GatewayResponse is the default gateway response /// (<code>true</code>) or not (<code>false</code>). A default gateway response is one /// generated by API Gateway without any customization by an API developer. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property ResponseParameters. /// <para> /// Response parameters (paths, query strings and headers) of the GatewayResponse as a /// string-to-string map of key-value pairs. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseTemplates. /// <para> /// Response templates of the GatewayResponse as a string-to-string map of key-value pairs. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseType. /// <para> /// The response type of the associated GatewayResponse. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// The HTTP status code for this GatewayResponse. /// </para> /// </summary> 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; } } }
137
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the PutIntegration operation. /// Sets up a method's integration. /// </summary> public partial class PutIntegrationRequest : AmazonAPIGatewayRequest { private List<string> _cacheKeyParameters = new List<string>(); private string _cacheNamespace; private string _connectionId; private ConnectionType _connectionType; private ContentHandlingStrategy _contentHandling; private string _credentials; private string _httpMethod; private string _integrationHttpMethod; private string _passthroughBehavior; private Dictionary<string, string> _requestParameters = new Dictionary<string, string>(); private Dictionary<string, string> _requestTemplates = new Dictionary<string, string>(); private string _resourceId; private string _restApiId; private int? _timeoutInMillis; private TlsConfig _tlsConfig; private IntegrationType _type; private string _uri; /// <summary> /// Gets and sets the property CacheKeyParameters. /// <para> /// A list of request parameters whose values API Gateway caches. To be valid values for /// <code>cacheKeyParameters</code>, these parameters must also be specified for Method /// <code>requestParameters</code>. /// </para> /// </summary> public List<string> CacheKeyParameters { get { return this._cacheKeyParameters; } set { this._cacheKeyParameters = value; } } // Check to see if CacheKeyParameters property is set internal bool IsSetCacheKeyParameters() { return this._cacheKeyParameters != null && this._cacheKeyParameters.Count > 0; } /// <summary> /// Gets and sets the property CacheNamespace. /// <para> /// Specifies a group of related cached parameters. By default, API Gateway uses the resource /// ID as the <code>cacheNamespace</code>. You can specify the same <code>cacheNamespace</code> /// across resources to return the same cached data for requests to different resources. /// </para> /// </summary> public string CacheNamespace { get { return this._cacheNamespace; } set { this._cacheNamespace = value; } } // Check to see if CacheNamespace property is set internal bool IsSetCacheNamespace() { return this._cacheNamespace != null; } /// <summary> /// Gets and sets the property ConnectionId. /// <para> /// The ID of the VpcLink used for the integration. Specify this value only if you specify /// <code>VPC_LINK</code> as the connection type. /// </para> /// </summary> public string ConnectionId { get { return this._connectionId; } set { this._connectionId = value; } } // Check to see if ConnectionId property is set internal bool IsSetConnectionId() { return this._connectionId != null; } /// <summary> /// Gets and sets the property ConnectionType. /// <para> /// The type of the network connection to the integration endpoint. The valid value is /// <code>INTERNET</code> for connections through the public routable internet or <code>VPC_LINK</code> /// for private connections between API Gateway and a network load balancer in a VPC. /// The default value is <code>INTERNET</code>. /// </para> /// </summary> public ConnectionType ConnectionType { get { return this._connectionType; } set { this._connectionType = value; } } // Check to see if ConnectionType property is set internal bool IsSetConnectionType() { return this._connectionType != null; } /// <summary> /// Gets and sets the property ContentHandling. /// <para> /// Specifies how to handle request payload content type conversions. Supported values /// are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following /// behaviors: /// </para> /// /// <para> /// If this property is not defined, the request payload will be passed through from the /// method request to integration request without modification, provided that the <code>passthroughBehavior</code> /// is configured to support payload pass-through. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property Credentials. /// <para> /// Specifies whether credentials are required for a put integration. /// </para> /// </summary> public string Credentials { get { return this._credentials; } set { this._credentials = value; } } // Check to see if Credentials property is set internal bool IsSetCredentials() { return this._credentials != null; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// Specifies the HTTP method for the integration. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property IntegrationHttpMethod. /// <para> /// The HTTP method for the integration. /// </para> /// </summary> public string IntegrationHttpMethod { get { return this._integrationHttpMethod; } set { this._integrationHttpMethod = value; } } // Check to see if IntegrationHttpMethod property is set internal bool IsSetIntegrationHttpMethod() { return this._integrationHttpMethod != null; } /// <summary> /// Gets and sets the property PassthroughBehavior. /// <para> /// Specifies the pass-through behavior for incoming requests based on the Content-Type /// header in the request, and the available mapping templates specified as the <code>requestTemplates</code> /// property on the Integration resource. There are three valid values: <code>WHEN_NO_MATCH</code>, /// <code>WHEN_NO_TEMPLATES</code>, and <code>NEVER</code>. /// </para> /// </summary> public string PassthroughBehavior { get { return this._passthroughBehavior; } set { this._passthroughBehavior = value; } } // Check to see if PassthroughBehavior property is set internal bool IsSetPassthroughBehavior() { return this._passthroughBehavior != null; } /// <summary> /// Gets and sets the property RequestParameters. /// <para> /// A key-value map specifying request parameters that are passed from the method request /// to the back end. The key is an integration request parameter name and the associated /// value is a method request parameter value or static value that must be enclosed within /// single quotes and pre-encoded as required by the back end. The method request parameter /// value must match the pattern of <code>method.request.{location}.{name}</code>, where /// <code>location</code> is <code>querystring</code>, <code>path</code>, or <code>header</code> /// and <code>name</code> must be a valid and unique method request parameter name. /// </para> /// </summary> public Dictionary<string, string> RequestParameters { get { return this._requestParameters; } set { this._requestParameters = value; } } // Check to see if RequestParameters property is set internal bool IsSetRequestParameters() { return this._requestParameters != null && this._requestParameters.Count > 0; } /// <summary> /// Gets and sets the property RequestTemplates. /// <para> /// Represents a map of Velocity templates that are applied on the request payload based /// on the value of the Content-Type header sent by the client. The content type value /// is the key in this map, and the template (as a String) is the value. /// </para> /// </summary> public Dictionary<string, string> RequestTemplates { get { return this._requestTemplates; } set { this._requestTemplates = value; } } // Check to see if RequestTemplates property is set internal bool IsSetRequestTemplates() { return this._requestTemplates != null && this._requestTemplates.Count > 0; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// Specifies a put integration request's resource ID. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property TimeoutInMillis. /// <para> /// Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds /// or 29 seconds. /// </para> /// </summary> public int TimeoutInMillis { get { return this._timeoutInMillis.GetValueOrDefault(); } set { this._timeoutInMillis = value; } } // Check to see if TimeoutInMillis property is set internal bool IsSetTimeoutInMillis() { return this._timeoutInMillis.HasValue; } /// <summary> /// Gets and sets the property TlsConfig. /// </summary> public TlsConfig TlsConfig { get { return this._tlsConfig; } set { this._tlsConfig = value; } } // Check to see if TlsConfig property is set internal bool IsSetTlsConfig() { return this._tlsConfig != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// Specifies a put integration input's type. /// </para> /// </summary> [AWSProperty(Required=true)] public IntegrationType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property Uri. /// <para> /// Specifies Uniform Resource Identifier (URI) of the integration endpoint. For HTTP /// or <code>HTTP_PROXY</code> integrations, the URI must be a fully formed, encoded HTTP(S) /// URL according to the RFC-3986 specification, for either standard integration, where /// <code>connectionType</code> is not <code>VPC_LINK</code>, or private integration, /// where <code>connectionType</code> is <code>VPC_LINK</code>. For a private HTTP integration, /// the URI is not used for routing. For <code>AWS</code> or <code>AWS_PROXY</code> integrations, /// the URI is of the form <code>arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api</code>}. /// Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name /// of the integrated Amazon Web Services service (e.g., s3); and {subdomain} is a designated /// subdomain supported by certain Amazon Web Services service for fast host-name lookup. /// action can be used for an Amazon Web Services service action-based API, using an Action={name}&amp;{p1}={v1}&amp;p2={v2}... /// query string. The ensuing {service_api} refers to a supported action {name} plus any /// required input parameters. Alternatively, path can be used for an Amazon Web Services /// service path-based API. The ensuing service_api refers to the path to an Amazon Web /// Services service resource, including the region of the integrated Amazon Web Services /// service, if applicable. For example, for integration with the S3 API of <code>GetObject</code>, /// the <code>uri</code> can be either <code>arn:aws:apigateway:us-west-2:s3:action/GetObject&amp;Bucket={bucket}&amp;Key={key}</code> /// or <code>arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}</code>. /// </para> /// </summary> public string Uri { get { return this._uri; } set { this._uri = value; } } // Check to see if Uri property is set internal bool IsSetUri() { return this._uri != null; } } }
408
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration. /// </summary> public partial class PutIntegrationResponse : AmazonWebServiceResponse { private List<string> _cacheKeyParameters = new List<string>(); private string _cacheNamespace; private string _connectionId; private ConnectionType _connectionType; private ContentHandlingStrategy _contentHandling; private string _credentials; private string _httpMethod; private Dictionary<string, IntegrationResponse> _integrationResponses = new Dictionary<string, IntegrationResponse>(); private string _passthroughBehavior; private Dictionary<string, string> _requestParameters = new Dictionary<string, string>(); private Dictionary<string, string> _requestTemplates = new Dictionary<string, string>(); private int? _timeoutInMillis; private TlsConfig _tlsConfig; private IntegrationType _type; private string _uri; /// <summary> /// Gets and sets the property CacheKeyParameters. /// <para> /// A list of request parameters whose values API Gateway caches. To be valid values for /// <code>cacheKeyParameters</code>, these parameters must also be specified for Method /// <code>requestParameters</code>. /// </para> /// </summary> public List<string> CacheKeyParameters { get { return this._cacheKeyParameters; } set { this._cacheKeyParameters = value; } } // Check to see if CacheKeyParameters property is set internal bool IsSetCacheKeyParameters() { return this._cacheKeyParameters != null && this._cacheKeyParameters.Count > 0; } /// <summary> /// Gets and sets the property CacheNamespace. /// <para> /// Specifies a group of related cached parameters. By default, API Gateway uses the resource /// ID as the <code>cacheNamespace</code>. You can specify the same <code>cacheNamespace</code> /// across resources to return the same cached data for requests to different resources. /// </para> /// </summary> public string CacheNamespace { get { return this._cacheNamespace; } set { this._cacheNamespace = value; } } // Check to see if CacheNamespace property is set internal bool IsSetCacheNamespace() { return this._cacheNamespace != null; } /// <summary> /// Gets and sets the property ConnectionId. /// <para> /// The ID of the VpcLink used for the integration when <code>connectionType=VPC_LINK</code> /// and undefined, otherwise. /// </para> /// </summary> public string ConnectionId { get { return this._connectionId; } set { this._connectionId = value; } } // Check to see if ConnectionId property is set internal bool IsSetConnectionId() { return this._connectionId != null; } /// <summary> /// Gets and sets the property ConnectionType. /// <para> /// The type of the network connection to the integration endpoint. The valid value is /// <code>INTERNET</code> for connections through the public routable internet or <code>VPC_LINK</code> /// for private connections between API Gateway and a network load balancer in a VPC. /// The default value is <code>INTERNET</code>. /// </para> /// </summary> public ConnectionType ConnectionType { get { return this._connectionType; } set { this._connectionType = value; } } // Check to see if ConnectionType property is set internal bool IsSetConnectionType() { return this._connectionType != null; } /// <summary> /// Gets and sets the property ContentHandling. /// <para> /// Specifies how to handle request payload content type conversions. Supported values /// are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following /// behaviors: /// </para> /// /// <para> /// If this property is not defined, the request payload will be passed through from the /// method request to integration request without modification, provided that the <code>passthroughBehavior</code> /// is configured to support payload pass-through. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property Credentials. /// <para> /// Specifies the credentials required for the integration, if any. For AWS integrations, /// three options are available. To specify an IAM Role for API Gateway to assume, use /// the role's Amazon Resource Name (ARN). To require that the caller's identity be passed /// through from the request, specify the string <code>arn:aws:iam::\*:user/\*</code>. /// To use resource-based permissions on supported AWS services, specify null. /// </para> /// </summary> public string Credentials { get { return this._credentials; } set { this._credentials = value; } } // Check to see if Credentials property is set internal bool IsSetCredentials() { return this._credentials != null; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// Specifies the integration's HTTP method type. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property IntegrationResponses. /// <para> /// Specifies the integration's responses. /// </para> /// </summary> public Dictionary<string, IntegrationResponse> IntegrationResponses { get { return this._integrationResponses; } set { this._integrationResponses = value; } } // Check to see if IntegrationResponses property is set internal bool IsSetIntegrationResponses() { return this._integrationResponses != null && this._integrationResponses.Count > 0; } /// <summary> /// Gets and sets the property PassthroughBehavior. /// <para> /// Specifies how the method request body of an unmapped content type will be passed through /// the integration request to the back end without transformation. A content type is /// unmapped if no mapping template is defined in the integration or the content type /// does not match any of the mapped content types, as specified in <code>requestTemplates</code>. /// The valid value is one of the following: <code>WHEN_NO_MATCH</code>: passes the method /// request body through the integration request to the back end without transformation /// when the method request content type does not match any content type associated with /// the mapping templates defined in the integration request. <code>WHEN_NO_TEMPLATES</code>: /// passes the method request body through the integration request to the back end without /// transformation when no mapping template is defined in the integration request. If /// a template is defined when this option is selected, the method request of an unmapped /// content-type will be rejected with an HTTP 415 Unsupported Media Type response. <code>NEVER</code>: /// rejects the method request with an HTTP 415 Unsupported Media Type response when either /// the method request content type does not match any content type associated with the /// mapping templates defined in the integration request or no mapping template is defined /// in the integration request. /// </para> /// </summary> public string PassthroughBehavior { get { return this._passthroughBehavior; } set { this._passthroughBehavior = value; } } // Check to see if PassthroughBehavior property is set internal bool IsSetPassthroughBehavior() { return this._passthroughBehavior != null; } /// <summary> /// Gets and sets the property RequestParameters. /// <para> /// A key-value map specifying request parameters that are passed from the method request /// to the back end. The key is an integration request parameter name and the associated /// value is a method request parameter value or static value that must be enclosed within /// single quotes and pre-encoded as required by the back end. The method request parameter /// value must match the pattern of <code>method.request.{location}.{name}</code>, where /// <code>location</code> is <code>querystring</code>, <code>path</code>, or <code>header</code> /// and <code>name</code> must be a valid and unique method request parameter name. /// </para> /// </summary> public Dictionary<string, string> RequestParameters { get { return this._requestParameters; } set { this._requestParameters = value; } } // Check to see if RequestParameters property is set internal bool IsSetRequestParameters() { return this._requestParameters != null && this._requestParameters.Count > 0; } /// <summary> /// Gets and sets the property RequestTemplates. /// <para> /// Represents a map of Velocity templates that are applied on the request payload based /// on the value of the Content-Type header sent by the client. The content type value /// is the key in this map, and the template (as a String) is the value. /// </para> /// </summary> public Dictionary<string, string> RequestTemplates { get { return this._requestTemplates; } set { this._requestTemplates = value; } } // Check to see if RequestTemplates property is set internal bool IsSetRequestTemplates() { return this._requestTemplates != null && this._requestTemplates.Count > 0; } /// <summary> /// Gets and sets the property TimeoutInMillis. /// <para> /// Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds /// or 29 seconds. /// </para> /// </summary> public int TimeoutInMillis { get { return this._timeoutInMillis.GetValueOrDefault(); } set { this._timeoutInMillis = value; } } // Check to see if TimeoutInMillis property is set internal bool IsSetTimeoutInMillis() { return this._timeoutInMillis.HasValue; } /// <summary> /// Gets and sets the property TlsConfig. /// <para> /// Specifies the TLS configuration for an integration. /// </para> /// </summary> public TlsConfig TlsConfig { get { return this._tlsConfig; } set { this._tlsConfig = value; } } // Check to see if TlsConfig property is set internal bool IsSetTlsConfig() { return this._tlsConfig != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// Specifies an API method integration type. The valid value is one of the following: /// </para> /// /// <para> /// For the HTTP and HTTP proxy integrations, each integration can specify a protocol /// (<code>http/https</code>), port and path. Standard 80 and 443 ports are supported /// as well as custom ports above 1024. An HTTP or HTTP proxy integration with a <code>connectionType</code> /// of <code>VPC_LINK</code> is referred to as a private integration and uses a VpcLink /// to connect API Gateway to a network load balancer of a VPC. /// </para> /// </summary> public IntegrationType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property Uri. /// <para> /// Specifies Uniform Resource Identifier (URI) of the integration endpoint. /// </para> /// /// <para> /// For <code>HTTP</code> or <code>HTTP_PROXY</code> integrations, the URI must be a fully /// formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard /// integration, where <code>connectionType</code> is not <code>VPC_LINK</code>, or private /// integration, where <code>connectionType</code> is <code>VPC_LINK</code>. For a private /// HTTP integration, the URI is not used for routing. For <code>AWS</code> or <code>AWS_PROXY</code> /// integrations, the URI is of the form <code>arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}</code>. /// Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name /// of the integrated Amazon Web Services service (e.g., s3); and {subdomain} is a designated /// subdomain supported by certain Amazon Web Services service for fast host-name lookup. /// action can be used for an Amazon Web Services service action-based API, using an Action={name}&amp;{p1}={v1}&amp;p2={v2}... /// query string. The ensuing {service_api} refers to a supported action {name} plus any /// required input parameters. Alternatively, path can be used for an AWS service path-based /// API. The ensuing service_api refers to the path to an Amazon Web Services service /// resource, including the region of the integrated Amazon Web Services service, if applicable. /// For example, for integration with the S3 API of GetObject, the uri can be either <code>arn:aws:apigateway:us-west-2:s3:action/GetObject&amp;Bucket={bucket}&amp;Key={key}</code> /// or <code>arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}</code> /// </para> /// </summary> public string Uri { get { return this._uri; } set { this._uri = value; } } // Check to see if Uri property is set internal bool IsSetUri() { return this._uri != null; } } }
394
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the PutIntegrationResponse operation. /// Represents a put integration. /// </summary> public partial class PutIntegrationResponseRequest : AmazonAPIGatewayRequest { private ContentHandlingStrategy _contentHandling; private string _httpMethod; private string _resourceId; private Dictionary<string, string> _responseParameters = new Dictionary<string, string>(); private Dictionary<string, string> _responseTemplates = new Dictionary<string, string>(); private string _restApiId; private string _selectionPattern; private string _statusCode; /// <summary> /// Gets and sets the property ContentHandling. /// <para> /// Specifies how to handle response payload content type conversions. Supported values /// are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following /// behaviors: /// </para> /// /// <para> /// If this property is not defined, the response payload will be passed through from /// the integration response to the method response without modification. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// Specifies a put integration response request's HTTP method. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// Specifies a put integration response request's resource identifier. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property ResponseParameters. /// <para> /// 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 <code>method.response.header.{name}</code>, where <code>name</code> /// is a valid and unique header name. The mapped non-static value must match the pattern /// of <code>integration.response.header.{name}</code> or <code>integration.response.body.{JSON-expression}</code>, /// where <code>name</code> must be a valid and unique response header name and <code>JSON-expression</code> /// a valid JSON expression without the <code>$</code> prefix. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseTemplates. /// <para> /// Specifies a put integration response's templates. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property SelectionPattern. /// <para> /// Specifies the selection pattern of a put integration response. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// Specifies the status code that is used to map the integration response to an existing /// MethodResponse. /// </para> /// </summary> [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; } } }
211
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents an integration response. The status code must map to an existing MethodResponse, /// and parameters and templates can be used to transform the back-end response. /// </summary> public partial class PutIntegrationResponseResponse : AmazonWebServiceResponse { private ContentHandlingStrategy _contentHandling; private Dictionary<string, string> _responseParameters = new Dictionary<string, string>(); private Dictionary<string, string> _responseTemplates = new Dictionary<string, string>(); private string _selectionPattern; private string _statusCode; /// <summary> /// Gets and sets the property ContentHandling. /// <para> /// Specifies how to handle response payload content type conversions. Supported values /// are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following /// behaviors: /// </para> /// /// <para> /// If this property is not defined, the response payload will be passed through from /// the integration response to the method response without modification. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property ResponseParameters. /// <para> /// 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 <code>method.response.header.{name}</code>, where <code>name</code> /// is a valid and unique header name. The mapped non-static value must match the pattern /// of <code>integration.response.header.{name}</code> or <code>integration.response.body.{JSON-expression}</code>, /// where <code>name</code> is a valid and unique response header name and <code>JSON-expression</code> /// is a valid JSON expression without the <code>$</code> prefix. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseTemplates. /// <para> /// Specifies the templates used to transform the integration response body. Response /// templates are represented as a key/value map, with a content-type as the key and a /// template as the value. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property SelectionPattern. /// <para> /// Specifies the regular expression (regex) pattern used to choose an integration response /// based on the response from the back end. For example, if the success response returns /// nothing and the error response returns some string, you could use the <code>.+</code> /// regex to match error response. However, make sure that the error response does not /// contain any newline (<code>\n</code>) character in such cases. If the back end is /// an AWS Lambda function, the AWS Lambda function error header is matched. For all other /// HTTP and AWS back ends, the HTTP status code is matched. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// Specifies the status code that is used to map the integration response to an existing /// MethodResponse. /// </para> /// </summary> 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; } } }
158
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the PutMethod operation. /// Add a method to an existing Resource resource. /// </summary> public partial class PutMethodRequest : AmazonAPIGatewayRequest { private bool? _apiKeyRequired; private List<string> _authorizationScopes = new List<string>(); private string _authorizationType; private string _authorizerId; private string _httpMethod; private string _operationName; private Dictionary<string, string> _requestModels = new Dictionary<string, string>(); private Dictionary<string, bool> _requestParameters = new Dictionary<string, bool>(); private string _requestValidatorId; private string _resourceId; private string _restApiId; /// <summary> /// Gets and sets the property ApiKeyRequired. /// <para> /// Specifies whether the method required a valid ApiKey. /// </para> /// </summary> public bool ApiKeyRequired { get { return this._apiKeyRequired.GetValueOrDefault(); } set { this._apiKeyRequired = value; } } // Check to see if ApiKeyRequired property is set internal bool IsSetApiKeyRequired() { return this._apiKeyRequired.HasValue; } /// <summary> /// Gets and sets the property AuthorizationScopes. /// <para> /// A list of authorization scopes configured on the method. The scopes are used with /// a <code>COGNITO_USER_POOLS</code> authorizer to authorize the method invocation. The /// authorization works by matching the method scopes against the scopes parsed from the /// access token in the incoming request. The method invocation is authorized if any method /// scopes matches a claimed scope in the access token. Otherwise, the invocation is not /// authorized. When the method scope is configured, the client must provide an access /// token instead of an identity token for authorization purposes. /// </para> /// </summary> public List<string> AuthorizationScopes { get { return this._authorizationScopes; } set { this._authorizationScopes = value; } } // Check to see if AuthorizationScopes property is set internal bool IsSetAuthorizationScopes() { return this._authorizationScopes != null && this._authorizationScopes.Count > 0; } /// <summary> /// Gets and sets the property AuthorizationType. /// <para> /// The method's authorization type. Valid values are <code>NONE</code> for open access, /// <code>AWS_IAM</code> for using AWS IAM permissions, <code>CUSTOM</code> for using /// a custom authorizer, or <code>COGNITO_USER_POOLS</code> for using a Cognito user pool. /// </para> /// </summary> [AWSProperty(Required=true)] public string AuthorizationType { get { return this._authorizationType; } set { this._authorizationType = value; } } // Check to see if AuthorizationType property is set internal bool IsSetAuthorizationType() { return this._authorizationType != null; } /// <summary> /// Gets and sets the property AuthorizerId. /// <para> /// Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM /// or COGNITO_USER_POOLS. The authorizer identifier is generated by API Gateway when /// you created the authorizer. /// </para> /// </summary> public string AuthorizerId { get { return this._authorizerId; } set { this._authorizerId = value; } } // Check to see if AuthorizerId property is set internal bool IsSetAuthorizerId() { return this._authorizerId != null; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// Specifies the method request's HTTP method type. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property OperationName. /// <para> /// A human-friendly operation identifier for the method. For example, you can assign /// the <code>operationName</code> of <code>ListPets</code> for the <code>GET /pets</code> /// method in the <code>PetStore</code> example. /// </para> /// </summary> public string OperationName { get { return this._operationName; } set { this._operationName = value; } } // Check to see if OperationName property is set internal bool IsSetOperationName() { return this._operationName != null; } /// <summary> /// Gets and sets the property RequestModels. /// <para> /// Specifies the Model resources used for the request's content type. Request models /// are represented as a key/value map, with a content type as the key and a Model name /// as the value. /// </para> /// </summary> public Dictionary<string, string> RequestModels { get { return this._requestModels; } set { this._requestModels = value; } } // Check to see if RequestModels property is set internal bool IsSetRequestModels() { return this._requestModels != null && this._requestModels.Count > 0; } /// <summary> /// Gets and sets the property RequestParameters. /// <para> /// A key-value map defining required or optional method request parameters that can be /// accepted by API Gateway. A key defines a method request parameter name matching the /// pattern of <code>method.request.{location}.{name}</code>, where <code>location</code> /// is <code>querystring</code>, <code>path</code>, or <code>header</code> and <code>name</code> /// is a valid and unique parameter name. The value associated with the key is a Boolean /// flag indicating whether the parameter is required (<code>true</code>) or optional /// (<code>false</code>). The method request parameter names defined here are available /// in Integration to be mapped to integration request parameters or body-mapping templates. /// </para> /// </summary> public Dictionary<string, bool> RequestParameters { get { return this._requestParameters; } set { this._requestParameters = value; } } // Check to see if RequestParameters property is set internal bool IsSetRequestParameters() { return this._requestParameters != null && this._requestParameters.Count > 0; } /// <summary> /// Gets and sets the property RequestValidatorId. /// <para> /// The identifier of a RequestValidator for validating the method request. /// </para> /// </summary> public string RequestValidatorId { get { return this._requestValidatorId; } set { this._requestValidatorId = value; } } // Check to see if RequestValidatorId property is set internal bool IsSetRequestValidatorId() { return this._requestValidatorId != null; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The Resource identifier for the new Method resource. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
273
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a client-facing interface by which the client calls the API to access /// back-end resources. A Method resource is integrated with an Integration resource. /// Both consist of a request and one or more responses. The method request takes the /// client input that is passed to the back end through the integration request. A method /// response returns the output from the back end to the client through an integration /// response. A method request is embodied in a Method resource, whereas an integration /// request is embodied in an Integration resource. On the other hand, a method response /// is represented by a MethodResponse resource, whereas an integration response is represented /// by an IntegrationResponse resource. /// </summary> public partial class PutMethodResponse : AmazonWebServiceResponse { private bool? _apiKeyRequired; private List<string> _authorizationScopes = new List<string>(); private string _authorizationType; private string _authorizerId; private string _httpMethod; private Integration _methodIntegration; private Dictionary<string, MethodResponse> _methodResponses = new Dictionary<string, MethodResponse>(); private string _operationName; private Dictionary<string, string> _requestModels = new Dictionary<string, string>(); private Dictionary<string, bool> _requestParameters = new Dictionary<string, bool>(); private string _requestValidatorId; /// <summary> /// Gets and sets the property ApiKeyRequired. /// <para> /// A boolean flag specifying whether a valid ApiKey is required to invoke this method. /// </para> /// </summary> public bool ApiKeyRequired { get { return this._apiKeyRequired.GetValueOrDefault(); } set { this._apiKeyRequired = value; } } // Check to see if ApiKeyRequired property is set internal bool IsSetApiKeyRequired() { return this._apiKeyRequired.HasValue; } /// <summary> /// Gets and sets the property AuthorizationScopes. /// <para> /// A list of authorization scopes configured on the method. The scopes are used with /// a <code>COGNITO_USER_POOLS</code> authorizer to authorize the method invocation. The /// authorization works by matching the method scopes against the scopes parsed from the /// access token in the incoming request. The method invocation is authorized if any method /// scopes matches a claimed scope in the access token. Otherwise, the invocation is not /// authorized. When the method scope is configured, the client must provide an access /// token instead of an identity token for authorization purposes. /// </para> /// </summary> public List<string> AuthorizationScopes { get { return this._authorizationScopes; } set { this._authorizationScopes = value; } } // Check to see if AuthorizationScopes property is set internal bool IsSetAuthorizationScopes() { return this._authorizationScopes != null && this._authorizationScopes.Count > 0; } /// <summary> /// Gets and sets the property AuthorizationType. /// <para> /// The method's authorization type. Valid values are <code>NONE</code> for open access, /// <code>AWS_IAM</code> for using AWS IAM permissions, <code>CUSTOM</code> for using /// a custom authorizer, or <code>COGNITO_USER_POOLS</code> for using a Cognito user pool. /// </para> /// </summary> public string AuthorizationType { get { return this._authorizationType; } set { this._authorizationType = value; } } // Check to see if AuthorizationType property is set internal bool IsSetAuthorizationType() { return this._authorizationType != null; } /// <summary> /// Gets and sets the property AuthorizerId. /// <para> /// The identifier of an Authorizer to use on this method. The <code>authorizationType</code> /// must be <code>CUSTOM</code>. /// </para> /// </summary> public string AuthorizerId { get { return this._authorizerId; } set { this._authorizerId = value; } } // Check to see if AuthorizerId property is set internal bool IsSetAuthorizerId() { return this._authorizerId != null; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// The method's HTTP verb. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property MethodIntegration. /// <para> /// Gets the method's integration responsible for passing the client-submitted request /// to the back end and performing necessary transformations to make the request compliant /// with the back end. /// </para> /// </summary> public Integration MethodIntegration { get { return this._methodIntegration; } set { this._methodIntegration = value; } } // Check to see if MethodIntegration property is set internal bool IsSetMethodIntegration() { return this._methodIntegration != null; } /// <summary> /// Gets and sets the property MethodResponses. /// <para> /// Gets a method response associated with a given HTTP status code. /// </para> /// </summary> public Dictionary<string, MethodResponse> MethodResponses { get { return this._methodResponses; } set { this._methodResponses = value; } } // Check to see if MethodResponses property is set internal bool IsSetMethodResponses() { return this._methodResponses != null && this._methodResponses.Count > 0; } /// <summary> /// Gets and sets the property OperationName. /// <para> /// A human-friendly operation identifier for the method. For example, you can assign /// the <code>operationName</code> of <code>ListPets</code> for the <code>GET /pets</code> /// method in the <code>PetStore</code> example. /// </para> /// </summary> public string OperationName { get { return this._operationName; } set { this._operationName = value; } } // Check to see if OperationName property is set internal bool IsSetOperationName() { return this._operationName != null; } /// <summary> /// Gets and sets the property RequestModels. /// <para> /// A key-value map specifying data schemas, represented by Model resources, (as the mapped /// value) of the request payloads of given content types (as the mapping key). /// </para> /// </summary> public Dictionary<string, string> RequestModels { get { return this._requestModels; } set { this._requestModels = value; } } // Check to see if RequestModels property is set internal bool IsSetRequestModels() { return this._requestModels != null && this._requestModels.Count > 0; } /// <summary> /// Gets and sets the property RequestParameters. /// <para> /// A key-value map defining required or optional method request parameters that can be /// accepted by API Gateway. A key is a method request parameter name matching the pattern /// of <code>method.request.{location}.{name}</code>, where <code>location</code> is <code>querystring</code>, /// <code>path</code>, or <code>header</code> and <code>name</code> is a valid and unique /// parameter name. The value associated with the key is a Boolean flag indicating whether /// the parameter is required (<code>true</code>) or optional (<code>false</code>). The /// method request parameter names defined here are available in Integration to be mapped /// to integration request parameters or templates. /// </para> /// </summary> public Dictionary<string, bool> RequestParameters { get { return this._requestParameters; } set { this._requestParameters = value; } } // Check to see if RequestParameters property is set internal bool IsSetRequestParameters() { return this._requestParameters != null && this._requestParameters.Count > 0; } /// <summary> /// Gets and sets the property RequestValidatorId. /// <para> /// The identifier of a RequestValidator for request validation. /// </para> /// </summary> public string RequestValidatorId { get { return this._requestValidatorId; } set { this._requestValidatorId = value; } } // Check to see if RequestValidatorId property is set internal bool IsSetRequestValidatorId() { return this._requestValidatorId != null; } } }
276
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the PutMethodResponse operation. /// Adds a MethodResponse to an existing Method resource. /// </summary> public partial class PutMethodResponseRequest : AmazonAPIGatewayRequest { private string _httpMethod; private string _resourceId; private Dictionary<string, string> _responseModels = new Dictionary<string, string>(); private Dictionary<string, bool> _responseParameters = new Dictionary<string, bool>(); private string _restApiId; private string _statusCode; /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// The HTTP verb of the Method resource. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The Resource identifier for the Method resource. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property ResponseModels. /// <para> /// 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. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseParameters. /// <para> /// 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 name and the associated /// value is a Boolean flag indicating whether the method response parameter is required /// or not. The method response header names must match the pattern of <code>method.response.header.{name}</code>, /// where <code>name</code> is a valid and unique header name. The response parameter /// names defined here are available in the integration response to be mapped from an /// integration response header expressed in <code>integration.response.header.{name}</code>, /// a static value enclosed within a pair of single quotes (e.g., <code>'application/json'</code>), /// or a JSON expression from the back-end response payload in the form of <code>integration.response.body.{JSON-expression}</code>, /// where <code>JSON-expression</code> is a valid JSON expression without the <code>$</code> /// prefix.) /// </para> /// </summary> public Dictionary<string, bool> 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; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// The method response's status code. /// </para> /// </summary> [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; } } }
169
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// 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. /// </summary> public partial class PutMethodResponseResponse : AmazonWebServiceResponse { private Dictionary<string, string> _responseModels = new Dictionary<string, string>(); private Dictionary<string, bool> _responseParameters = new Dictionary<string, bool>(); private string _statusCode; /// <summary> /// Gets and sets the property ResponseModels. /// <para> /// 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. /// </para> /// </summary> public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property ResponseParameters. /// <para> /// 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 <code>method.response.header.{name}</code>, where /// <code>name</code> 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 <code>integration.response.header.{name}</code>, /// a static value enclosed within a pair of single quotes (e.g., <code>'application/json'</code>), /// or a JSON expression from the back-end response payload in the form of <code>integration.response.body.{JSON-expression}</code>, /// where <code>JSON-expression</code> is a valid JSON expression without the <code>$</code> /// prefix.) /// </para> /// </summary> public Dictionary<string, bool> 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; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// The method response's status code. /// </para> /// </summary> 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; } } }
110
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the PutRestApi operation. /// A feature of the API Gateway control service for updating an existing API with an /// input of external API definitions. The update can take the form of merging the supplied /// definition into the existing API or overwriting the existing API. /// </summary> public partial class PutRestApiRequest : AmazonAPIGatewayRequest { private MemoryStream _body; private bool? _failOnWarnings; private PutMode _mode; private Dictionary<string, string> _parameters = new Dictionary<string, string>(); private string _restApiId; /// <summary> /// Gets and sets the property Body. /// <para> /// The PUT request body containing external API definitions. Currently, only OpenAPI /// definition JSON/YAML files are supported. The maximum size of the API definition file /// is 6MB. /// </para> /// </summary> [AWSProperty(Required=true)] public MemoryStream Body { get { return this._body; } set { this._body = value; } } // Check to see if Body property is set internal bool IsSetBody() { return this._body != null; } /// <summary> /// Gets and sets the property FailOnWarnings. /// <para> /// A query parameter to indicate whether to rollback the API update (<code>true</code>) /// or not (<code>false</code>) when a warning is encountered. The default value is <code>false</code>. /// </para> /// </summary> public bool FailOnWarnings { get { return this._failOnWarnings.GetValueOrDefault(); } set { this._failOnWarnings = value; } } // Check to see if FailOnWarnings property is set internal bool IsSetFailOnWarnings() { return this._failOnWarnings.HasValue; } /// <summary> /// Gets and sets the property Mode. /// <para> /// The <code>mode</code> query parameter to specify the update mode. Valid values are /// "merge" and "overwrite". By default, the update mode is "merge". /// </para> /// </summary> public PutMode Mode { get { return this._mode; } set { this._mode = value; } } // Check to see if Mode property is set internal bool IsSetMode() { return this._mode != null; } /// <summary> /// Gets and sets the property Parameters. /// <para> /// Custom header parameters as part of the request. For example, to exclude DocumentationParts /// from an imported API, set <code>ignore=documentation</code> as a <code>parameters</code> /// value, as in the AWS CLI command of <code>aws apigateway import-rest-api --parameters /// ignore=documentation --body 'file:///path/to/imported-api-body.json'</code>. /// </para> /// </summary> public Dictionary<string, string> Parameters { get { return this._parameters; } set { this._parameters = value; } } // Check to see if Parameters property is set internal bool IsSetParameters() { return this._parameters != null && this._parameters.Count > 0; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } } }
145
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a REST API. /// </summary> public partial class PutRestApiResponse : AmazonWebServiceResponse { private ApiKeySourceType _apiKeySource; private List<string> _binaryMediaTypes = new List<string>(); private DateTime? _createdDate; private string _description; private bool? _disableExecuteApiEndpoint; private EndpointConfiguration _endpointConfiguration; private string _id; private int? _minimumCompressionSize; private string _name; private string _policy; private Dictionary<string, string> _tags = new Dictionary<string, string>(); private string _version; private List<string> _warnings = new List<string>(); /// <summary> /// Gets and sets the property ApiKeySource. /// <para> /// The source of the API key for metering requests according to a usage plan. Valid values /// are: &gt;<code>HEADER</code> to read the API key from the <code>X-API-Key</code> header /// of a request. <code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> /// from a custom authorizer. /// </para> /// </summary> public ApiKeySourceType ApiKeySource { get { return this._apiKeySource; } set { this._apiKeySource = value; } } // Check to see if ApiKeySource property is set internal bool IsSetApiKeySource() { return this._apiKeySource != null; } /// <summary> /// Gets and sets the property BinaryMediaTypes. /// <para> /// The list of binary media types supported by the RestApi. By default, the RestApi supports /// only UTF-8-encoded text payloads. /// </para> /// </summary> public List<string> BinaryMediaTypes { get { return this._binaryMediaTypes; } set { this._binaryMediaTypes = value; } } // Check to see if BinaryMediaTypes property is set internal bool IsSetBinaryMediaTypes() { return this._binaryMediaTypes != null && this._binaryMediaTypes.Count > 0; } /// <summary> /// Gets and sets the property CreatedDate. /// <para> /// The timestamp when the API was created. /// </para> /// </summary> public DateTime CreatedDate { get { return this._createdDate.GetValueOrDefault(); } set { this._createdDate = value; } } // Check to see if CreatedDate property is set internal bool IsSetCreatedDate() { return this._createdDate.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The API's description. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property DisableExecuteApiEndpoint. /// <para> /// Specifies whether clients can invoke your API by using the default <code>execute-api</code> /// endpoint. By default, clients can invoke your API with the default <code>https://{api_id}.execute-api.{region}.amazonaws.com</code> /// endpoint. To require that clients use a custom domain name to invoke your API, disable /// the default endpoint. /// </para> /// </summary> public bool DisableExecuteApiEndpoint { get { return this._disableExecuteApiEndpoint.GetValueOrDefault(); } set { this._disableExecuteApiEndpoint = value; } } // Check to see if DisableExecuteApiEndpoint property is set internal bool IsSetDisableExecuteApiEndpoint() { return this._disableExecuteApiEndpoint.HasValue; } /// <summary> /// Gets and sets the property EndpointConfiguration. /// <para> /// The endpoint configuration of this RestApi showing the endpoint types of the API. /// /// </para> /// </summary> public EndpointConfiguration EndpointConfiguration { get { return this._endpointConfiguration; } set { this._endpointConfiguration = value; } } // Check to see if EndpointConfiguration property is set internal bool IsSetEndpointConfiguration() { return this._endpointConfiguration != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The API's identifier. This identifier is unique across all of your APIs in API Gateway. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property MinimumCompressionSize. /// <para> /// A nullable integer that is used to enable compression (with non-negative between 0 /// and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on /// an API. When compression is enabled, compression or decompression is not applied on /// the payload if the payload size is smaller than this value. Setting it to zero allows /// compression for any payload size. /// </para> /// </summary> public int MinimumCompressionSize { get { return this._minimumCompressionSize.GetValueOrDefault(); } set { this._minimumCompressionSize = value; } } // Check to see if MinimumCompressionSize property is set internal bool IsSetMinimumCompressionSize() { return this._minimumCompressionSize.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The API's name. /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Policy. /// <para> /// A stringified JSON policy document that applies to this RestApi regardless of the /// caller and Method configuration. /// </para> /// </summary> public string Policy { get { return this._policy; } set { this._policy = value; } } // Check to see if Policy property is set internal bool IsSetPolicy() { return this._policy != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The collection of tags. Each tag element is associated with a given resource. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property Version. /// <para> /// A version identifier for the API. /// </para> /// </summary> public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } /// <summary> /// Gets and sets the property Warnings. /// <para> /// The warning messages reported when <code>failonwarnings</code> is turned on during /// API import. /// </para> /// </summary> public List<string> Warnings { get { return this._warnings; } set { this._warnings = value; } } // Check to see if Warnings property is set internal bool IsSetWarnings() { return this._warnings != null && this._warnings.Count > 0; } } }
299
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Quotas configured for a usage plan. /// </summary> public partial class QuotaSettings { private int? _limit; private int? _offset; private QuotaPeriodType _period; /// <summary> /// Gets and sets the property Limit. /// <para> /// The target maximum number of requests that can be made in a given time period. /// </para> /// </summary> public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// <summary> /// Gets and sets the property Offset. /// <para> /// The number of requests subtracted from the given limit in the initial time period. /// </para> /// </summary> public int Offset { get { return this._offset.GetValueOrDefault(); } set { this._offset = value; } } // Check to see if Offset property is set internal bool IsSetOffset() { return this._offset.HasValue; } /// <summary> /// Gets and sets the property Period. /// <para> /// The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH". /// </para> /// </summary> public QuotaPeriodType Period { get { return this._period; } set { this._period = value; } } // Check to see if Period property is set internal bool IsSetPeriod() { return this._period != null; } } }
95
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A set of validation rules for incoming Method requests. /// </summary> public partial class RequestValidator { private string _id; private string _name; private bool? _validateRequestBody; private bool? _validateRequestParameters; /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier of this RequestValidator. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of this RequestValidator /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property ValidateRequestBody. /// <para> /// A Boolean flag to indicate whether to validate a request body according to the configured /// Model schema. /// </para> /// </summary> public bool ValidateRequestBody { get { return this._validateRequestBody.GetValueOrDefault(); } set { this._validateRequestBody = value; } } // Check to see if ValidateRequestBody property is set internal bool IsSetValidateRequestBody() { return this._validateRequestBody.HasValue; } /// <summary> /// Gets and sets the property ValidateRequestParameters. /// <para> /// A Boolean flag to indicate whether to validate request parameters (<code>true</code>) /// or not (<code>false</code>). /// </para> /// </summary> public bool ValidateRequestParameters { get { return this._validateRequestParameters.GetValueOrDefault(); } set { this._validateRequestParameters = value; } } // Check to see if ValidateRequestParameters property is set internal bool IsSetValidateRequestParameters() { return this._validateRequestParameters.HasValue; } } }
116
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents an API resource. /// </summary> public partial class Resource { private string _id; private string _parentId; private string _path; private string _pathPart; private Dictionary<string, Method> _resourceMethods = new Dictionary<string, Method>(); /// <summary> /// Gets and sets the property Id. /// <para> /// The resource's identifier. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property ParentId. /// <para> /// The parent resource's identifier. /// </para> /// </summary> public string ParentId { get { return this._parentId; } set { this._parentId = value; } } // Check to see if ParentId property is set internal bool IsSetParentId() { return this._parentId != null; } /// <summary> /// Gets and sets the property Path. /// <para> /// The full path for this resource. /// </para> /// </summary> public string Path { get { return this._path; } set { this._path = value; } } // Check to see if Path property is set internal bool IsSetPath() { return this._path != null; } /// <summary> /// Gets and sets the property PathPart. /// <para> /// The last path segment for this resource. /// </para> /// </summary> public string PathPart { get { return this._pathPart; } set { this._pathPart = value; } } // Check to see if PathPart property is set internal bool IsSetPathPart() { return this._pathPart != null; } /// <summary> /// Gets and sets the property ResourceMethods. /// <para> /// Gets an API resource's method of a given HTTP verb. /// </para> /// </summary> public Dictionary<string, Method> ResourceMethods { get { return this._resourceMethods; } set { this._resourceMethods = value; } } // Check to see if ResourceMethods property is set internal bool IsSetResourceMethods() { return this._resourceMethods != null && this._resourceMethods.Count > 0; } } }
133
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a REST API. /// </summary> public partial class RestApi { private ApiKeySourceType _apiKeySource; private List<string> _binaryMediaTypes = new List<string>(); private DateTime? _createdDate; private string _description; private bool? _disableExecuteApiEndpoint; private EndpointConfiguration _endpointConfiguration; private string _id; private int? _minimumCompressionSize; private string _name; private string _policy; private Dictionary<string, string> _tags = new Dictionary<string, string>(); private string _version; private List<string> _warnings = new List<string>(); /// <summary> /// Gets and sets the property ApiKeySource. /// <para> /// The source of the API key for metering requests according to a usage plan. Valid values /// are: &gt;<code>HEADER</code> to read the API key from the <code>X-API-Key</code> header /// of a request. <code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> /// from a custom authorizer. /// </para> /// </summary> public ApiKeySourceType ApiKeySource { get { return this._apiKeySource; } set { this._apiKeySource = value; } } // Check to see if ApiKeySource property is set internal bool IsSetApiKeySource() { return this._apiKeySource != null; } /// <summary> /// Gets and sets the property BinaryMediaTypes. /// <para> /// The list of binary media types supported by the RestApi. By default, the RestApi supports /// only UTF-8-encoded text payloads. /// </para> /// </summary> public List<string> BinaryMediaTypes { get { return this._binaryMediaTypes; } set { this._binaryMediaTypes = value; } } // Check to see if BinaryMediaTypes property is set internal bool IsSetBinaryMediaTypes() { return this._binaryMediaTypes != null && this._binaryMediaTypes.Count > 0; } /// <summary> /// Gets and sets the property CreatedDate. /// <para> /// The timestamp when the API was created. /// </para> /// </summary> public DateTime CreatedDate { get { return this._createdDate.GetValueOrDefault(); } set { this._createdDate = value; } } // Check to see if CreatedDate property is set internal bool IsSetCreatedDate() { return this._createdDate.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The API's description. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property DisableExecuteApiEndpoint. /// <para> /// Specifies whether clients can invoke your API by using the default <code>execute-api</code> /// endpoint. By default, clients can invoke your API with the default <code>https://{api_id}.execute-api.{region}.amazonaws.com</code> /// endpoint. To require that clients use a custom domain name to invoke your API, disable /// the default endpoint. /// </para> /// </summary> public bool DisableExecuteApiEndpoint { get { return this._disableExecuteApiEndpoint.GetValueOrDefault(); } set { this._disableExecuteApiEndpoint = value; } } // Check to see if DisableExecuteApiEndpoint property is set internal bool IsSetDisableExecuteApiEndpoint() { return this._disableExecuteApiEndpoint.HasValue; } /// <summary> /// Gets and sets the property EndpointConfiguration. /// <para> /// The endpoint configuration of this RestApi showing the endpoint types of the API. /// /// </para> /// </summary> public EndpointConfiguration EndpointConfiguration { get { return this._endpointConfiguration; } set { this._endpointConfiguration = value; } } // Check to see if EndpointConfiguration property is set internal bool IsSetEndpointConfiguration() { return this._endpointConfiguration != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The API's identifier. This identifier is unique across all of your APIs in API Gateway. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property MinimumCompressionSize. /// <para> /// A nullable integer that is used to enable compression (with non-negative between 0 /// and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on /// an API. When compression is enabled, compression or decompression is not applied on /// the payload if the payload size is smaller than this value. Setting it to zero allows /// compression for any payload size. /// </para> /// </summary> public int MinimumCompressionSize { get { return this._minimumCompressionSize.GetValueOrDefault(); } set { this._minimumCompressionSize = value; } } // Check to see if MinimumCompressionSize property is set internal bool IsSetMinimumCompressionSize() { return this._minimumCompressionSize.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The API's name. /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Policy. /// <para> /// A stringified JSON policy document that applies to this RestApi regardless of the /// caller and Method configuration. /// </para> /// </summary> public string Policy { get { return this._policy; } set { this._policy = value; } } // Check to see if Policy property is set internal bool IsSetPolicy() { return this._policy != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The collection of tags. Each tag element is associated with a given resource. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property Version. /// <para> /// A version identifier for the API. /// </para> /// </summary> public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } /// <summary> /// Gets and sets the property Warnings. /// <para> /// The warning messages reported when <code>failonwarnings</code> is turned on during /// API import. /// </para> /// </summary> public List<string> Warnings { get { return this._warnings; } set { this._warnings = value; } } // Check to see if Warnings property is set internal bool IsSetWarnings() { return this._warnings != null && this._warnings.Count > 0; } } }
299
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A configuration property of an SDK type. /// </summary> public partial class SdkConfigurationProperty { private string _defaultValue; private string _description; private string _friendlyName; private string _name; private bool? _required; /// <summary> /// Gets and sets the property DefaultValue. /// <para> /// The default value of an SdkType configuration property. /// </para> /// </summary> public string DefaultValue { get { return this._defaultValue; } set { this._defaultValue = value; } } // Check to see if DefaultValue property is set internal bool IsSetDefaultValue() { return this._defaultValue != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of an SdkType configuration property. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property FriendlyName. /// <para> /// The user-friendly name of an SdkType configuration property. /// </para> /// </summary> public string FriendlyName { get { return this._friendlyName; } set { this._friendlyName = value; } } // Check to see if FriendlyName property is set internal bool IsSetFriendlyName() { return this._friendlyName != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of a an SdkType configuration property. /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Required. /// <para> /// A boolean flag of an SdkType configuration property to indicate if the associated /// SDK configuration property is required (<code>true</code>) or not (<code>false</code>). /// </para> /// </summary> public bool Required { get { return this._required.GetValueOrDefault(); } set { this._required = value; } } // Check to see if Required property is set internal bool IsSetRequired() { return this._required.HasValue; } } }
134
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A type of SDK that API Gateway can generate. /// </summary> public partial class SdkType { private List<SdkConfigurationProperty> _configurationProperties = new List<SdkConfigurationProperty>(); private string _description; private string _friendlyName; private string _id; /// <summary> /// Gets and sets the property ConfigurationProperties. /// <para> /// A list of configuration properties of an SdkType. /// </para> /// </summary> public List<SdkConfigurationProperty> ConfigurationProperties { get { return this._configurationProperties; } set { this._configurationProperties = value; } } // Check to see if ConfigurationProperties property is set internal bool IsSetConfigurationProperties() { return this._configurationProperties != null && this._configurationProperties.Count > 0; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of an SdkType. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property FriendlyName. /// <para> /// The user-friendly name of an SdkType instance. /// </para> /// </summary> public string FriendlyName { get { return this._friendlyName; } set { this._friendlyName = value; } } // Check to see if FriendlyName property is set internal bool IsSetFriendlyName() { return this._friendlyName != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier of an SdkType instance. /// </para> /// </summary> public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } } }
114
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The requested service is not available. For details see the accompanying error message. /// Retry after the specified time period. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceUnavailableException : AmazonAPIGatewayException { private string _retryAfterSeconds; /// <summary> /// Constructs a new ServiceUnavailableException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceUnavailableException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceUnavailableException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="innerException"></param> public ServiceUnavailableException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceUnavailableException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceUnavailableException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ServiceUnavailableException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ServiceUnavailableException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.RetryAfterSeconds = (string)info.GetValue("RetryAfterSeconds", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("RetryAfterSeconds", this.RetryAfterSeconds); } #endif /// <summary> /// Gets and sets the property RetryAfterSeconds. /// </summary> public string RetryAfterSeconds { get { return this._retryAfterSeconds; } set { this._retryAfterSeconds = value; } } // Check to see if RetryAfterSeconds property is set internal bool IsSetRetryAfterSeconds() { return this._retryAfterSeconds != null; } } }
143
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents a unique identifier for a version of a deployed RestApi that is callable /// by users. /// </summary> public partial class Stage { private AccessLogSettings _accessLogSettings; private bool? _cacheClusterEnabled; private CacheClusterSize _cacheClusterSize; private CacheClusterStatus _cacheClusterStatus; private CanarySettings _canarySettings; private string _clientCertificateId; private DateTime? _createdDate; private string _deploymentId; private string _description; private string _documentationVersion; private DateTime? _lastUpdatedDate; private Dictionary<string, MethodSetting> _methodSettings = new Dictionary<string, MethodSetting>(); private string _stageName; private Dictionary<string, string> _tags = new Dictionary<string, string>(); private bool? _tracingEnabled; private Dictionary<string, string> _variables = new Dictionary<string, string>(); private string _webAclArn; /// <summary> /// Gets and sets the property AccessLogSettings. /// <para> /// Settings for logging access in this stage. /// </para> /// </summary> public AccessLogSettings AccessLogSettings { get { return this._accessLogSettings; } set { this._accessLogSettings = value; } } // Check to see if AccessLogSettings property is set internal bool IsSetAccessLogSettings() { return this._accessLogSettings != null; } /// <summary> /// Gets and sets the property CacheClusterEnabled. /// <para> /// Specifies whether a cache cluster is enabled for the stage. /// </para> /// </summary> public bool CacheClusterEnabled { get { return this._cacheClusterEnabled.GetValueOrDefault(); } set { this._cacheClusterEnabled = value; } } // Check to see if CacheClusterEnabled property is set internal bool IsSetCacheClusterEnabled() { return this._cacheClusterEnabled.HasValue; } /// <summary> /// Gets and sets the property CacheClusterSize. /// <para> /// The stage's cache capacity in GB. For more information about choosing a cache size, /// see <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html">Enabling /// API caching to enhance responsiveness</a>. /// </para> /// </summary> public CacheClusterSize CacheClusterSize { get { return this._cacheClusterSize; } set { this._cacheClusterSize = value; } } // Check to see if CacheClusterSize property is set internal bool IsSetCacheClusterSize() { return this._cacheClusterSize != null; } /// <summary> /// Gets and sets the property CacheClusterStatus. /// <para> /// The status of the cache cluster for the stage, if enabled. /// </para> /// </summary> public CacheClusterStatus CacheClusterStatus { get { return this._cacheClusterStatus; } set { this._cacheClusterStatus = value; } } // Check to see if CacheClusterStatus property is set internal bool IsSetCacheClusterStatus() { return this._cacheClusterStatus != null; } /// <summary> /// Gets and sets the property CanarySettings. /// <para> /// Settings for the canary deployment in this stage. /// </para> /// </summary> public CanarySettings CanarySettings { get { return this._canarySettings; } set { this._canarySettings = value; } } // Check to see if CanarySettings property is set internal bool IsSetCanarySettings() { return this._canarySettings != null; } /// <summary> /// Gets and sets the property ClientCertificateId. /// <para> /// The identifier of a client certificate for an API stage. /// </para> /// </summary> public string ClientCertificateId { get { return this._clientCertificateId; } set { this._clientCertificateId = value; } } // Check to see if ClientCertificateId property is set internal bool IsSetClientCertificateId() { return this._clientCertificateId != null; } /// <summary> /// Gets and sets the property CreatedDate. /// <para> /// The timestamp when the stage was created. /// </para> /// </summary> public DateTime CreatedDate { get { return this._createdDate.GetValueOrDefault(); } set { this._createdDate = value; } } // Check to see if CreatedDate property is set internal bool IsSetCreatedDate() { return this._createdDate.HasValue; } /// <summary> /// Gets and sets the property DeploymentId. /// <para> /// The identifier of the Deployment that the stage points to. /// </para> /// </summary> public string DeploymentId { get { return this._deploymentId; } set { this._deploymentId = value; } } // Check to see if DeploymentId property is set internal bool IsSetDeploymentId() { return this._deploymentId != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The stage's description. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property DocumentationVersion. /// <para> /// The version of the associated API documentation. /// </para> /// </summary> public string DocumentationVersion { get { return this._documentationVersion; } set { this._documentationVersion = value; } } // Check to see if DocumentationVersion property is set internal bool IsSetDocumentationVersion() { return this._documentationVersion != null; } /// <summary> /// Gets and sets the property LastUpdatedDate. /// <para> /// The timestamp when the stage last updated. /// </para> /// </summary> public DateTime LastUpdatedDate { get { return this._lastUpdatedDate.GetValueOrDefault(); } set { this._lastUpdatedDate = value; } } // Check to see if LastUpdatedDate property is set internal bool IsSetLastUpdatedDate() { return this._lastUpdatedDate.HasValue; } /// <summary> /// Gets and sets the property MethodSettings. /// <para> /// A map that defines the method settings for a Stage resource. Keys (designated as <code>/{method_setting_key</code> /// below) are method paths defined as <code>{resource_path}/{http_method}</code> for /// an individual method override, or <code>/\*/\*</code> for overriding all methods in /// the stage. /// </para> /// </summary> public Dictionary<string, MethodSetting> MethodSettings { get { return this._methodSettings; } set { this._methodSettings = value; } } // Check to see if MethodSettings property is set internal bool IsSetMethodSettings() { return this._methodSettings != null && this._methodSettings.Count > 0; } /// <summary> /// Gets and sets the property StageName. /// <para> /// The name of the stage is the first path segment in the Uniform Resource Identifier /// (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, /// hyphens, and underscores. Maximum length is 128 characters. /// </para> /// </summary> public string StageName { get { return this._stageName; } set { this._stageName = value; } } // Check to see if StageName property is set internal bool IsSetStageName() { return this._stageName != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The collection of tags. Each tag element is associated with a given resource. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property TracingEnabled. /// <para> /// Specifies whether active tracing with X-ray is enabled for the Stage. /// </para> /// </summary> public bool TracingEnabled { get { return this._tracingEnabled.GetValueOrDefault(); } set { this._tracingEnabled = value; } } // Check to see if TracingEnabled property is set internal bool IsSetTracingEnabled() { return this._tracingEnabled.HasValue; } /// <summary> /// Gets and sets the property Variables. /// <para> /// A map that defines the stage variables for a Stage resource. Variable names can have /// alphanumeric and underscore characters, and the values must match <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>. /// </para> /// </summary> public Dictionary<string, string> Variables { get { return this._variables; } set { this._variables = value; } } // Check to see if Variables property is set internal bool IsSetVariables() { return this._variables != null && this._variables.Count > 0; } /// <summary> /// Gets and sets the property WebAclArn. /// <para> /// The ARN of the WebAcl associated with the Stage. /// </para> /// </summary> public string WebAclArn { get { return this._webAclArn; } set { this._webAclArn = value; } } // Check to see if WebAclArn property is set internal bool IsSetWebAclArn() { return this._webAclArn != null; } } }
370
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A reference to a unique stage identified in the format <code>{restApiId}/{stage}</code>. /// </summary> public partial class StageKey { private string _restApiId; private string _stageName; /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property StageName. /// <para> /// The stage name associated with the stage key. /// </para> /// </summary> public string StageName { get { return this._stageName; } set { this._stageName = value; } } // Check to see if StageName property is set internal bool IsSetStageName() { return this._stageName != null; } } }
76
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the TagResource operation. /// Adds or updates a tag on a given resource. /// </summary> public partial class TagResourceRequest : AmazonAPIGatewayRequest { private string _resourceArn; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The ARN of a resource that can be tagged. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag /// key can be up to 128 characters and must not start with <code>aws:</code>. The tag /// value can be up to 256 characters. /// </para> /// </summary> [AWSProperty(Required=true)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
81
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the TagResource operation. /// </summary> public partial class TagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the TestInvokeAuthorizer operation. /// Simulate the execution of an Authorizer in your RestApi with headers, parameters, /// and an incoming request body. /// </summary> public partial class TestInvokeAuthorizerRequest : AmazonAPIGatewayRequest { private Dictionary<string, string> _additionalContext = new Dictionary<string, string>(); private string _authorizerId; private string _body; private Dictionary<string, string> _headers = new Dictionary<string, string>(); private Dictionary<string, List<string>> _multiValueHeaders = new Dictionary<string, List<string>>(); private string _pathWithQueryString; private string _restApiId; private Dictionary<string, string> _stageVariables = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property AdditionalContext. /// <para> /// A key-value map of additional context variables. /// </para> /// </summary> public Dictionary<string, string> AdditionalContext { get { return this._additionalContext; } set { this._additionalContext = value; } } // Check to see if AdditionalContext property is set internal bool IsSetAdditionalContext() { return this._additionalContext != null && this._additionalContext.Count > 0; } /// <summary> /// Gets and sets the property AuthorizerId. /// <para> /// Specifies a test invoke authorizer request's Authorizer ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string AuthorizerId { get { return this._authorizerId; } set { this._authorizerId = value; } } // Check to see if AuthorizerId property is set internal bool IsSetAuthorizerId() { return this._authorizerId != null; } /// <summary> /// Gets and sets the property Body. /// <para> /// The simulated request body of an incoming invocation request. /// </para> /// </summary> public string Body { get { return this._body; } set { this._body = value; } } // Check to see if Body property is set internal bool IsSetBody() { return this._body != null; } /// <summary> /// Gets and sets the property Headers. /// <para> /// A key-value map of headers to simulate an incoming invocation request. This is where /// the incoming authorization token, or identity source, should be specified. /// </para> /// </summary> public Dictionary<string, string> Headers { get { return this._headers; } set { this._headers = value; } } // Check to see if Headers property is set internal bool IsSetHeaders() { return this._headers != null && this._headers.Count > 0; } /// <summary> /// Gets and sets the property MultiValueHeaders. /// <para> /// The headers as a map from string to list of values to simulate an incoming invocation /// request. This is where the incoming authorization token, or identity source, may be /// specified. /// </para> /// </summary> public Dictionary<string, List<string>> MultiValueHeaders { get { return this._multiValueHeaders; } set { this._multiValueHeaders = value; } } // Check to see if MultiValueHeaders property is set internal bool IsSetMultiValueHeaders() { return this._multiValueHeaders != null && this._multiValueHeaders.Count > 0; } /// <summary> /// Gets and sets the property PathWithQueryString. /// <para> /// The URI path, including query string, of the simulated invocation request. Use this /// to specify path parameters and query string parameters. /// </para> /// </summary> public string PathWithQueryString { get { return this._pathWithQueryString; } set { this._pathWithQueryString = value; } } // Check to see if PathWithQueryString property is set internal bool IsSetPathWithQueryString() { return this._pathWithQueryString != null; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property StageVariables. /// <para> /// A key-value map of stage variables to simulate an invocation on a deployed Stage. /// </para> /// </summary> public Dictionary<string, string> StageVariables { get { return this._stageVariables; } set { this._stageVariables = value; } } // Check to see if StageVariables property is set internal bool IsSetStageVariables() { return this._stageVariables != null && this._stageVariables.Count > 0; } } }
198
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents the response of the test invoke request for a custom Authorizer /// </summary> public partial class TestInvokeAuthorizerResponse : AmazonWebServiceResponse { private Dictionary<string, List<string>> _authorization = new Dictionary<string, List<string>>(); private Dictionary<string, string> _claims = new Dictionary<string, string>(); private int? _clientStatus; private long? _latency; private string _log; private string _policy; private string _principalId; /// <summary> /// Gets and sets the property Authorization. /// <para> /// The authorization response. /// </para> /// </summary> public Dictionary<string, List<string>> Authorization { get { return this._authorization; } set { this._authorization = value; } } // Check to see if Authorization property is set internal bool IsSetAuthorization() { return this._authorization != null && this._authorization.Count > 0; } /// <summary> /// Gets and sets the property Claims. /// <para> /// The open identity claims, with any supported custom attributes, returned from the /// Cognito Your User Pool configured for the API. /// </para> /// </summary> public Dictionary<string, string> Claims { get { return this._claims; } set { this._claims = value; } } // Check to see if Claims property is set internal bool IsSetClaims() { return this._claims != null && this._claims.Count > 0; } /// <summary> /// Gets and sets the property ClientStatus. /// <para> /// The HTTP status code that the client would have received. Value is 0 if the authorizer /// succeeded. /// </para> /// </summary> public int ClientStatus { get { return this._clientStatus.GetValueOrDefault(); } set { this._clientStatus = value; } } // Check to see if ClientStatus property is set internal bool IsSetClientStatus() { return this._clientStatus.HasValue; } /// <summary> /// Gets and sets the property Latency. /// <para> /// The execution latency of the test authorizer request. /// </para> /// </summary> public long Latency { get { return this._latency.GetValueOrDefault(); } set { this._latency = value; } } // Check to see if Latency property is set internal bool IsSetLatency() { return this._latency.HasValue; } /// <summary> /// Gets and sets the property Log. /// <para> /// The API Gateway execution log for the test authorizer request. /// </para> /// </summary> public string Log { get { return this._log; } set { this._log = value; } } // Check to see if Log property is set internal bool IsSetLog() { return this._log != null; } /// <summary> /// Gets and sets the property Policy. /// <para> /// The JSON policy document returned by the Authorizer /// </para> /// </summary> public string Policy { get { return this._policy; } set { this._policy = value; } } // Check to see if Policy property is set internal bool IsSetPolicy() { return this._policy != null; } /// <summary> /// Gets and sets the property PrincipalId. /// <para> /// The principal identity returned by the Authorizer /// </para> /// </summary> public string PrincipalId { get { return this._principalId; } set { this._principalId = value; } } // Check to see if PrincipalId property is set internal bool IsSetPrincipalId() { return this._principalId != null; } } }
173
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the TestInvokeMethod operation. /// Simulate the invocation of a Method in your RestApi with headers, parameters, and /// an incoming request body. /// </summary> public partial class TestInvokeMethodRequest : AmazonAPIGatewayRequest { private string _body; private string _clientCertificateId; private Dictionary<string, string> _headers = new Dictionary<string, string>(); private string _httpMethod; private Dictionary<string, List<string>> _multiValueHeaders = new Dictionary<string, List<string>>(); private string _pathWithQueryString; private string _resourceId; private string _restApiId; private Dictionary<string, string> _stageVariables = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property Body. /// <para> /// The simulated request body of an incoming invocation request. /// </para> /// </summary> public string Body { get { return this._body; } set { this._body = value; } } // Check to see if Body property is set internal bool IsSetBody() { return this._body != null; } /// <summary> /// Gets and sets the property ClientCertificateId. /// <para> /// A ClientCertificate identifier to use in the test invocation. API Gateway will use /// the certificate when making the HTTPS request to the defined back-end endpoint. /// </para> /// </summary> public string ClientCertificateId { get { return this._clientCertificateId; } set { this._clientCertificateId = value; } } // Check to see if ClientCertificateId property is set internal bool IsSetClientCertificateId() { return this._clientCertificateId != null; } /// <summary> /// Gets and sets the property Headers. /// <para> /// A key-value map of headers to simulate an incoming invocation request. /// </para> /// </summary> public Dictionary<string, string> Headers { get { return this._headers; } set { this._headers = value; } } // Check to see if Headers property is set internal bool IsSetHeaders() { return this._headers != null && this._headers.Count > 0; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// Specifies a test invoke method request's HTTP method. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property MultiValueHeaders. /// <para> /// The headers as a map from string to list of values to simulate an incoming invocation /// request. /// </para> /// </summary> public Dictionary<string, List<string>> MultiValueHeaders { get { return this._multiValueHeaders; } set { this._multiValueHeaders = value; } } // Check to see if MultiValueHeaders property is set internal bool IsSetMultiValueHeaders() { return this._multiValueHeaders != null && this._multiValueHeaders.Count > 0; } /// <summary> /// Gets and sets the property PathWithQueryString. /// <para> /// The URI path, including query string, of the simulated invocation request. Use this /// to specify path parameters and query string parameters. /// </para> /// </summary> public string PathWithQueryString { get { return this._pathWithQueryString; } set { this._pathWithQueryString = value; } } // Check to see if PathWithQueryString property is set internal bool IsSetPathWithQueryString() { return this._pathWithQueryString != null; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// Specifies a test invoke method request's resource ID. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property RestApiId. /// <para> /// The string identifier of the associated RestApi. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property StageVariables. /// <para> /// A key-value map of stage variables to simulate an invocation on a deployed Stage. /// </para> /// </summary> public Dictionary<string, string> StageVariables { get { return this._stageVariables; } set { this._stageVariables = value; } } // Check to see if StageVariables property is set internal bool IsSetStageVariables() { return this._stageVariables != null && this._stageVariables.Count > 0; } } }
217
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents the response of the test invoke request in the HTTP method. /// </summary> public partial class TestInvokeMethodResponse : AmazonWebServiceResponse { private string _body; private Dictionary<string, string> _headers = new Dictionary<string, string>(); private long? _latency; private string _log; private Dictionary<string, List<string>> _multiValueHeaders = new Dictionary<string, List<string>>(); private int? _status; /// <summary> /// Gets and sets the property Body. /// <para> /// The body of the HTTP response. /// </para> /// </summary> public string Body { get { return this._body; } set { this._body = value; } } // Check to see if Body property is set internal bool IsSetBody() { return this._body != null; } /// <summary> /// Gets and sets the property Headers. /// <para> /// The headers of the HTTP response. /// </para> /// </summary> public Dictionary<string, string> Headers { get { return this._headers; } set { this._headers = value; } } // Check to see if Headers property is set internal bool IsSetHeaders() { return this._headers != null && this._headers.Count > 0; } /// <summary> /// Gets and sets the property Latency. /// <para> /// The execution latency of the test invoke request. /// </para> /// </summary> public long Latency { get { return this._latency.GetValueOrDefault(); } set { this._latency = value; } } // Check to see if Latency property is set internal bool IsSetLatency() { return this._latency.HasValue; } /// <summary> /// Gets and sets the property Log. /// <para> /// The API Gateway execution log for the test invoke request. /// </para> /// </summary> public string Log { get { return this._log; } set { this._log = value; } } // Check to see if Log property is set internal bool IsSetLog() { return this._log != null; } /// <summary> /// Gets and sets the property MultiValueHeaders. /// <para> /// The headers of the HTTP response as a map from string to list of values. /// </para> /// </summary> public Dictionary<string, List<string>> MultiValueHeaders { get { return this._multiValueHeaders; } set { this._multiValueHeaders = value; } } // Check to see if MultiValueHeaders property is set internal bool IsSetMultiValueHeaders() { return this._multiValueHeaders != null && this._multiValueHeaders.Count > 0; } /// <summary> /// Gets and sets the property Status. /// <para> /// The HTTP status code. /// </para> /// </summary> public int Status { get { return this._status.GetValueOrDefault(); } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status.HasValue; } } }
152