AWS SDK for C++  1.9.123
AWS SDK for C++
CreateDirectConnectGatewayRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DirectConnect
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateDirectConnectGateway"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetDirectConnectGatewayName() const{ return m_directConnectGatewayName; }
41 
45  inline bool DirectConnectGatewayNameHasBeenSet() const { return m_directConnectGatewayNameHasBeenSet; }
46 
50  inline void SetDirectConnectGatewayName(const Aws::String& value) { m_directConnectGatewayNameHasBeenSet = true; m_directConnectGatewayName = value; }
51 
55  inline void SetDirectConnectGatewayName(Aws::String&& value) { m_directConnectGatewayNameHasBeenSet = true; m_directConnectGatewayName = std::move(value); }
56 
60  inline void SetDirectConnectGatewayName(const char* value) { m_directConnectGatewayNameHasBeenSet = true; m_directConnectGatewayName.assign(value); }
61 
65  inline CreateDirectConnectGatewayRequest& WithDirectConnectGatewayName(const Aws::String& value) { SetDirectConnectGatewayName(value); return *this;}
66 
70  inline CreateDirectConnectGatewayRequest& WithDirectConnectGatewayName(Aws::String&& value) { SetDirectConnectGatewayName(std::move(value)); return *this;}
71 
75  inline CreateDirectConnectGatewayRequest& WithDirectConnectGatewayName(const char* value) { SetDirectConnectGatewayName(value); return *this;}
76 
77 
84  inline long long GetAmazonSideAsn() const{ return m_amazonSideAsn; }
85 
92  inline bool AmazonSideAsnHasBeenSet() const { return m_amazonSideAsnHasBeenSet; }
93 
100  inline void SetAmazonSideAsn(long long value) { m_amazonSideAsnHasBeenSet = true; m_amazonSideAsn = value; }
101 
108  inline CreateDirectConnectGatewayRequest& WithAmazonSideAsn(long long value) { SetAmazonSideAsn(value); return *this;}
109 
110  private:
111 
112  Aws::String m_directConnectGatewayName;
113  bool m_directConnectGatewayNameHasBeenSet;
114 
115  long long m_amazonSideAsn;
116  bool m_amazonSideAsnHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace DirectConnect
121 } // namespace Aws
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::WithDirectConnectGatewayName
CreateDirectConnectGatewayRequest & WithDirectConnectGatewayName(Aws::String &&value)
Definition: CreateDirectConnectGatewayRequest.h:70
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::GetAmazonSideAsn
long long GetAmazonSideAsn() const
Definition: CreateDirectConnectGatewayRequest.h:84
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::GetDirectConnectGatewayName
const Aws::String & GetDirectConnectGatewayName() const
Definition: CreateDirectConnectGatewayRequest.h:40
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::WithDirectConnectGatewayName
CreateDirectConnectGatewayRequest & WithDirectConnectGatewayName(const char *value)
Definition: CreateDirectConnectGatewayRequest.h:75
Aws::DirectConnect::DirectConnectRequest
Definition: DirectConnectRequest.h:17
DirectConnect_EXPORTS.h
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest
Definition: CreateDirectConnectGatewayRequest.h:22
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::CreateDirectConnectGatewayRequest
CreateDirectConnectGatewayRequest()
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::SetDirectConnectGatewayName
void SetDirectConnectGatewayName(const char *value)
Definition: CreateDirectConnectGatewayRequest.h:60
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::WithAmazonSideAsn
CreateDirectConnectGatewayRequest & WithAmazonSideAsn(long long value)
Definition: CreateDirectConnectGatewayRequest.h:108
AWSString.h
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::AmazonSideAsnHasBeenSet
bool AmazonSideAsnHasBeenSet() const
Definition: CreateDirectConnectGatewayRequest.h:92
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::SetDirectConnectGatewayName
void SetDirectConnectGatewayName(const Aws::String &value)
Definition: CreateDirectConnectGatewayRequest.h:50
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::SetDirectConnectGatewayName
void SetDirectConnectGatewayName(Aws::String &&value)
Definition: CreateDirectConnectGatewayRequest.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::SetAmazonSideAsn
void SetAmazonSideAsn(long long value)
Definition: CreateDirectConnectGatewayRequest.h:100
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::DirectConnectGatewayNameHasBeenSet
bool DirectConnectGatewayNameHasBeenSet() const
Definition: CreateDirectConnectGatewayRequest.h:45
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::WithDirectConnectGatewayName
CreateDirectConnectGatewayRequest & WithDirectConnectGatewayName(const Aws::String &value)
Definition: CreateDirectConnectGatewayRequest.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_DIRECTCONNECT_API
#define AWS_DIRECTCONNECT_API
Definition: DirectConnect_EXPORTS.h:28
Aws::DirectConnect::Model::CreateDirectConnectGatewayRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDirectConnectGatewayRequest.h:30
DirectConnectRequest.h