/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// Contains information about a REST API in version 1 of Amazon API Gateway.
///
public partial class AwsApiGatewayRestApiDetails
{
private string _apiKeySource;
private List _binaryMediaTypes = new List();
private string _createdDate;
private string _description;
private AwsApiGatewayEndpointConfiguration _endpointConfiguration;
private string _id;
private int? _minimumCompressionSize;
private string _name;
private string _version;
///
/// Gets and sets the property ApiKeySource.
///
/// The source of the API key for metering requests according to a usage plan.
///
///
///
/// HEADER
indicates whether to read the API key from the X-API-Key header
/// of a request.
///
///
///
/// AUTHORIZER
indicates whether to read the API key from the UsageIdentifierKey
/// from a custom authorizer.
///
///
public string ApiKeySource
{
get { return this._apiKeySource; }
set { this._apiKeySource = value; }
}
// Check to see if ApiKeySource property is set
internal bool IsSetApiKeySource()
{
return this._apiKeySource != null;
}
///
/// Gets and sets the property BinaryMediaTypes.
///
/// The list of binary media types supported by the REST API.
///
///
public List 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;
}
///
/// Gets and sets the property CreatedDate.
///
/// Indicates when the API was created.
///
///
///
/// Uses the date-time
format specified in RFC
/// 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces,
/// and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
///
///
public string CreatedDate
{
get { return this._createdDate; }
set { this._createdDate = value; }
}
// Check to see if CreatedDate property is set
internal bool IsSetCreatedDate()
{
return this._createdDate != null;
}
///
/// Gets and sets the property Description.
///
/// A description of the REST API.
///
///
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;
}
///
/// Gets and sets the property EndpointConfiguration.
///
/// The endpoint configuration of the REST API.
///
///
public AwsApiGatewayEndpointConfiguration EndpointConfiguration
{
get { return this._endpointConfiguration; }
set { this._endpointConfiguration = value; }
}
// Check to see if EndpointConfiguration property is set
internal bool IsSetEndpointConfiguration()
{
return this._endpointConfiguration != null;
}
///
/// Gets and sets the property Id.
///
/// The identifier of the REST API.
///
///
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;
}
///
/// Gets and sets the property MinimumCompressionSize.
///
/// The minimum size in bytes of a payload before compression is enabled.
///
///
///
/// If null
, then compression is disabled.
///
///
///
/// If 0, then all payloads are compressed.
///
///
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;
}
///
/// Gets and sets the property Name.
///
/// The name of the REST API.
///
///
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;
}
///
/// Gets and sets the property Version.
///
/// The version identifier for the REST API.
///
///
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;
}
}
}