/* * 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 { /// /// Represents the response of the test invoke request in the HTTP method. /// public partial class TestInvokeMethodResponse : AmazonWebServiceResponse { private string _body; private Dictionary _headers = new Dictionary(); private long? _latency; private string _log; private Dictionary> _multiValueHeaders = new Dictionary>(); private int? _status; /// /// Gets and sets the property Body. /// /// The body of the HTTP response. /// /// 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; } /// /// Gets and sets the property Headers. /// /// The headers of the HTTP response. /// /// public Dictionary 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; } /// /// Gets and sets the property Latency. /// /// The execution latency of the test invoke request. /// /// 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; } /// /// Gets and sets the property Log. /// /// The API Gateway execution log for the test invoke request. /// /// 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; } /// /// Gets and sets the property MultiValueHeaders. /// /// The headers of the HTTP response as a map from string to list of values. /// /// public Dictionary> 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; } /// /// Gets and sets the property Status. /// /// The HTTP status code. /// /// 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; } } }