AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AllocatePublicVirtualInterfaceRequest.h
1
6#pragma once
7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/directconnect/DirectConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/directconnect/model/NewPublicVirtualInterfaceAllocation.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DirectConnect
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DIRECTCONNECT_API AllocatePublicVirtualInterfaceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AllocatePublicVirtualInterface"; }
32
33 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
34
35 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
44 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
45 template<typename ConnectionIdT = Aws::String>
46 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
47 template<typename ConnectionIdT = Aws::String>
48 AllocatePublicVirtualInterfaceRequest& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
50
52
56 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
57 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
58 template<typename OwnerAccountT = Aws::String>
59 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
60 template<typename OwnerAccountT = Aws::String>
61 AllocatePublicVirtualInterfaceRequest& WithOwnerAccount(OwnerAccountT&& value) { SetOwnerAccount(std::forward<OwnerAccountT>(value)); return *this;}
63
65
68 inline const NewPublicVirtualInterfaceAllocation& GetNewPublicVirtualInterfaceAllocation() const { return m_newPublicVirtualInterfaceAllocation; }
69 inline bool NewPublicVirtualInterfaceAllocationHasBeenSet() const { return m_newPublicVirtualInterfaceAllocationHasBeenSet; }
70 template<typename NewPublicVirtualInterfaceAllocationT = NewPublicVirtualInterfaceAllocation>
71 void SetNewPublicVirtualInterfaceAllocation(NewPublicVirtualInterfaceAllocationT&& value) { m_newPublicVirtualInterfaceAllocationHasBeenSet = true; m_newPublicVirtualInterfaceAllocation = std::forward<NewPublicVirtualInterfaceAllocationT>(value); }
72 template<typename NewPublicVirtualInterfaceAllocationT = NewPublicVirtualInterfaceAllocation>
73 AllocatePublicVirtualInterfaceRequest& WithNewPublicVirtualInterfaceAllocation(NewPublicVirtualInterfaceAllocationT&& value) { SetNewPublicVirtualInterfaceAllocation(std::forward<NewPublicVirtualInterfaceAllocationT>(value)); return *this;}
75 private:
76
77 Aws::String m_connectionId;
78 bool m_connectionIdHasBeenSet = false;
79
80 Aws::String m_ownerAccount;
81 bool m_ownerAccountHasBeenSet = false;
82
83 NewPublicVirtualInterfaceAllocation m_newPublicVirtualInterfaceAllocation;
84 bool m_newPublicVirtualInterfaceAllocationHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace DirectConnect
89} // 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