AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AllocatePublicVirtualInterfaceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/directconnect/DirectConnectRequest.h>
9#include <aws/directconnect/DirectConnect_EXPORTS.h>
10#include <aws/directconnect/model/NewPublicVirtualInterfaceAllocation.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DirectConnect {
16namespace Model {
17
21 public:
22 AWS_DIRECTCONNECT_API AllocatePublicVirtualInterfaceRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AllocatePublicVirtualInterface"; }
29
30 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
31
32 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
39 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
40 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
41 template <typename ConnectionIdT = Aws::String>
42 void SetConnectionId(ConnectionIdT&& value) {
43 m_connectionIdHasBeenSet = true;
44 m_connectionId = std::forward<ConnectionIdT>(value);
45 }
46 template <typename ConnectionIdT = Aws::String>
48 SetConnectionId(std::forward<ConnectionIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
59 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
60 template <typename OwnerAccountT = Aws::String>
61 void SetOwnerAccount(OwnerAccountT&& value) {
62 m_ownerAccountHasBeenSet = true;
63 m_ownerAccount = std::forward<OwnerAccountT>(value);
64 }
65 template <typename OwnerAccountT = Aws::String>
67 SetOwnerAccount(std::forward<OwnerAccountT>(value));
68 return *this;
69 }
71
73
77 return m_newPublicVirtualInterfaceAllocation;
78 }
79 inline bool NewPublicVirtualInterfaceAllocationHasBeenSet() const { return m_newPublicVirtualInterfaceAllocationHasBeenSet; }
80 template <typename NewPublicVirtualInterfaceAllocationT = NewPublicVirtualInterfaceAllocation>
81 void SetNewPublicVirtualInterfaceAllocation(NewPublicVirtualInterfaceAllocationT&& value) {
82 m_newPublicVirtualInterfaceAllocationHasBeenSet = true;
83 m_newPublicVirtualInterfaceAllocation = std::forward<NewPublicVirtualInterfaceAllocationT>(value);
84 }
85 template <typename NewPublicVirtualInterfaceAllocationT = NewPublicVirtualInterfaceAllocation>
87 SetNewPublicVirtualInterfaceAllocation(std::forward<NewPublicVirtualInterfaceAllocationT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_connectionId;
93
94 Aws::String m_ownerAccount;
95
96 NewPublicVirtualInterfaceAllocation m_newPublicVirtualInterfaceAllocation;
97 bool m_connectionIdHasBeenSet = false;
98 bool m_ownerAccountHasBeenSet = false;
99 bool m_newPublicVirtualInterfaceAllocationHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace DirectConnect
104} // namespace Aws
AllocatePublicVirtualInterfaceRequest & WithConnectionId(ConnectionIdT &&value)
void SetNewPublicVirtualInterfaceAllocation(NewPublicVirtualInterfaceAllocationT &&value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const NewPublicVirtualInterfaceAllocation & GetNewPublicVirtualInterfaceAllocation() const
AllocatePublicVirtualInterfaceRequest & WithNewPublicVirtualInterfaceAllocation(NewPublicVirtualInterfaceAllocationT &&value)
AWS_DIRECTCONNECT_API AllocatePublicVirtualInterfaceRequest()=default
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
AllocatePublicVirtualInterfaceRequest & WithOwnerAccount(OwnerAccountT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String