AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
AllocateTransitVirtualInterfaceRequest.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/NewTransitVirtualInterfaceAllocation.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DirectConnect {
16namespace Model {
17
21 public:
22 AWS_DIRECTCONNECT_API AllocateTransitVirtualInterfaceRequest() = 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 "AllocateTransitVirtualInterface"; }
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_newTransitVirtualInterfaceAllocation;
78 }
79 inline bool NewTransitVirtualInterfaceAllocationHasBeenSet() const { return m_newTransitVirtualInterfaceAllocationHasBeenSet; }
80 template <typename NewTransitVirtualInterfaceAllocationT = NewTransitVirtualInterfaceAllocation>
81 void SetNewTransitVirtualInterfaceAllocation(NewTransitVirtualInterfaceAllocationT&& value) {
82 m_newTransitVirtualInterfaceAllocationHasBeenSet = true;
83 m_newTransitVirtualInterfaceAllocation = std::forward<NewTransitVirtualInterfaceAllocationT>(value);
84 }
85 template <typename NewTransitVirtualInterfaceAllocationT = NewTransitVirtualInterfaceAllocation>
87 SetNewTransitVirtualInterfaceAllocation(std::forward<NewTransitVirtualInterfaceAllocationT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_connectionId;
93
94 Aws::String m_ownerAccount;
95
96 NewTransitVirtualInterfaceAllocation m_newTransitVirtualInterfaceAllocation;
97 bool m_connectionIdHasBeenSet = false;
98 bool m_ownerAccountHasBeenSet = false;
99 bool m_newTransitVirtualInterfaceAllocationHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace DirectConnect
104} // namespace Aws
const NewTransitVirtualInterfaceAllocation & GetNewTransitVirtualInterfaceAllocation() const
AllocateTransitVirtualInterfaceRequest & WithOwnerAccount(OwnerAccountT &&value)
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
void SetNewTransitVirtualInterfaceAllocation(NewTransitVirtualInterfaceAllocationT &&value)
AllocateTransitVirtualInterfaceRequest & WithNewTransitVirtualInterfaceAllocation(NewTransitVirtualInterfaceAllocationT &&value)
AWS_DIRECTCONNECT_API AllocateTransitVirtualInterfaceRequest()=default
AllocateTransitVirtualInterfaceRequest & WithConnectionId(ConnectionIdT &&value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String