Lesson 35 - Get Compute Auth Token Working
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/apigateway/APIGateway_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/apigateway/model/EndpointType.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace APIGateway
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The endpoint configuration to indicate the types of endpoints an API
|
||||
* (RestApi) or its custom domain name (DomainName) has. </p><p><h3>See Also:</h3>
|
||||
* <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/EndpointConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EndpointConfiguration
|
||||
{
|
||||
public:
|
||||
AWS_APIGATEWAY_API EndpointConfiguration();
|
||||
AWS_APIGATEWAY_API EndpointConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_APIGATEWAY_API EndpointConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of endpoint types of an API (RestApi) or its custom domain name
|
||||
* (DomainName). For an edge-optimized API and its custom domain name, the endpoint
|
||||
* type is <code>"EDGE"</code>. For a regional API and its custom domain name, the
|
||||
* endpoint type is <code>REGIONAL</code>. For a private API, the endpoint type is
|
||||
* <code>PRIVATE</code>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<EndpointType>& GetTypes() const{ return m_types; }
|
||||
inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
|
||||
inline void SetTypes(const Aws::Vector<EndpointType>& value) { m_typesHasBeenSet = true; m_types = value; }
|
||||
inline void SetTypes(Aws::Vector<EndpointType>&& value) { m_typesHasBeenSet = true; m_types = std::move(value); }
|
||||
inline EndpointConfiguration& WithTypes(const Aws::Vector<EndpointType>& value) { SetTypes(value); return *this;}
|
||||
inline EndpointConfiguration& WithTypes(Aws::Vector<EndpointType>&& value) { SetTypes(std::move(value)); return *this;}
|
||||
inline EndpointConfiguration& AddTypes(const EndpointType& value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; }
|
||||
inline EndpointConfiguration& AddTypes(EndpointType&& value) { m_typesHasBeenSet = true; m_types.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of VpcEndpointIds of an API (RestApi) against which to create Route53
|
||||
* ALIASes. It is only supported for <code>PRIVATE</code> endpoint type.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetVpcEndpointIds() const{ return m_vpcEndpointIds; }
|
||||
inline bool VpcEndpointIdsHasBeenSet() const { return m_vpcEndpointIdsHasBeenSet; }
|
||||
inline void SetVpcEndpointIds(const Aws::Vector<Aws::String>& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds = value; }
|
||||
inline void SetVpcEndpointIds(Aws::Vector<Aws::String>&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds = std::move(value); }
|
||||
inline EndpointConfiguration& WithVpcEndpointIds(const Aws::Vector<Aws::String>& value) { SetVpcEndpointIds(value); return *this;}
|
||||
inline EndpointConfiguration& WithVpcEndpointIds(Aws::Vector<Aws::String>&& value) { SetVpcEndpointIds(std::move(value)); return *this;}
|
||||
inline EndpointConfiguration& AddVpcEndpointIds(const Aws::String& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; }
|
||||
inline EndpointConfiguration& AddVpcEndpointIds(Aws::String&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(std::move(value)); return *this; }
|
||||
inline EndpointConfiguration& AddVpcEndpointIds(const char* value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<EndpointType> m_types;
|
||||
bool m_typesHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_vpcEndpointIds;
|
||||
bool m_vpcEndpointIdsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace APIGateway
|
||||
} // namespace Aws
|
||||
Reference in New Issue
Block a user