/*
* 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 version 2 API in Amazon API Gateway.
///
public partial class AwsApiGatewayV2ApiDetails
{
private string _apiEndpoint;
private string _apiId;
private string _apiKeySelectionExpression;
private AwsCorsConfiguration _corsConfiguration;
private string _createdDate;
private string _description;
private string _name;
private string _protocolType;
private string _routeSelectionExpression;
private string _version;
///
/// Gets and sets the property ApiEndpoint.
///
/// The URI of the API.
///
///
///
/// Uses the format <api-id>.execute-api.<region>.amazonaws.com
///
///
///
///
/// The stage name is typically appended to the URI to form a complete path to a deployed
/// API stage.
///
///
public string ApiEndpoint
{
get { return this._apiEndpoint; }
set { this._apiEndpoint = value; }
}
// Check to see if ApiEndpoint property is set
internal bool IsSetApiEndpoint()
{
return this._apiEndpoint != null;
}
///
/// Gets and sets the property ApiId.
///
/// The identifier of the API.
///
///
public string ApiId
{
get { return this._apiId; }
set { this._apiId = value; }
}
// Check to see if ApiId property is set
internal bool IsSetApiId()
{
return this._apiId != null;
}
///
/// Gets and sets the property ApiKeySelectionExpression.
///
/// An API key selection expression. Supported only for WebSocket APIs.
///
///
public string ApiKeySelectionExpression
{
get { return this._apiKeySelectionExpression; }
set { this._apiKeySelectionExpression = value; }
}
// Check to see if ApiKeySelectionExpression property is set
internal bool IsSetApiKeySelectionExpression()
{
return this._apiKeySelectionExpression != null;
}
///
/// Gets and sets the property CorsConfiguration.
///
/// A cross-origin resource sharing (CORS) configuration. Supported only for HTTP APIs.
///
///
public AwsCorsConfiguration CorsConfiguration
{
get { return this._corsConfiguration; }
set { this._corsConfiguration = value; }
}
// Check to see if CorsConfiguration property is set
internal bool IsSetCorsConfiguration()
{
return this._corsConfiguration != null;
}
///
/// 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 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 Name.
///
/// The name of the 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 ProtocolType.
///
/// The API protocol for the API.
///
///
///
/// Valid values: WEBSOCKET
| HTTP
///
///
public string ProtocolType
{
get { return this._protocolType; }
set { this._protocolType = value; }
}
// Check to see if ProtocolType property is set
internal bool IsSetProtocolType()
{
return this._protocolType != null;
}
///
/// Gets and sets the property RouteSelectionExpression.
///
/// The route selection expression for the API.
///
///
///
/// For HTTP APIs, must be ${request.method} ${request.path}
. This is the
/// default value for HTTP APIs.
///
///
///
/// For WebSocket APIs, there is no default value.
///
///
public string RouteSelectionExpression
{
get { return this._routeSelectionExpression; }
set { this._routeSelectionExpression = value; }
}
// Check to see if RouteSelectionExpression property is set
internal bool IsSetRouteSelectionExpression()
{
return this._routeSelectionExpression != null;
}
///
/// Gets and sets the property Version.
///
/// The version identifier for the 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;
}
}
}