AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateConnectAttachmentRequest.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/networkmanager/model/ConnectAttachmentOptions.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/networkmanager/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace NetworkManager
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_NETWORKMANAGER_API CreateConnectAttachmentRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateConnectAttachment"; }
35
36 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetCoreNetworkId() const { return m_coreNetworkId; }
44 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
45 template<typename CoreNetworkIdT = Aws::String>
46 void SetCoreNetworkId(CoreNetworkIdT&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::forward<CoreNetworkIdT>(value); }
47 template<typename CoreNetworkIdT = Aws::String>
48 CreateConnectAttachmentRequest& WithCoreNetworkId(CoreNetworkIdT&& value) { SetCoreNetworkId(std::forward<CoreNetworkIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetEdgeLocation() const { return m_edgeLocation; }
56 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
57 template<typename EdgeLocationT = Aws::String>
58 void SetEdgeLocation(EdgeLocationT&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::forward<EdgeLocationT>(value); }
59 template<typename EdgeLocationT = Aws::String>
60 CreateConnectAttachmentRequest& WithEdgeLocation(EdgeLocationT&& value) { SetEdgeLocation(std::forward<EdgeLocationT>(value)); return *this;}
62
64
67 inline const Aws::String& GetTransportAttachmentId() const { return m_transportAttachmentId; }
68 inline bool TransportAttachmentIdHasBeenSet() const { return m_transportAttachmentIdHasBeenSet; }
69 template<typename TransportAttachmentIdT = Aws::String>
70 void SetTransportAttachmentId(TransportAttachmentIdT&& value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId = std::forward<TransportAttachmentIdT>(value); }
71 template<typename TransportAttachmentIdT = Aws::String>
72 CreateConnectAttachmentRequest& WithTransportAttachmentId(TransportAttachmentIdT&& value) { SetTransportAttachmentId(std::forward<TransportAttachmentIdT>(value)); return *this;}
74
76
79 inline const ConnectAttachmentOptions& GetOptions() const { return m_options; }
80 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
81 template<typename OptionsT = ConnectAttachmentOptions>
82 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
83 template<typename OptionsT = ConnectAttachmentOptions>
84 CreateConnectAttachmentRequest& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
86
88
91 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Vector<Tag>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Vector<Tag>>
96 CreateConnectAttachmentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsT = Tag>
98 CreateConnectAttachmentRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
100
102
105 inline const Aws::String& GetClientToken() const { return m_clientToken; }
106 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
107 template<typename ClientTokenT = Aws::String>
108 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
109 template<typename ClientTokenT = Aws::String>
110 CreateConnectAttachmentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
112 private:
113
114 Aws::String m_coreNetworkId;
115 bool m_coreNetworkIdHasBeenSet = false;
116
117 Aws::String m_edgeLocation;
118 bool m_edgeLocationHasBeenSet = false;
119
120 Aws::String m_transportAttachmentId;
121 bool m_transportAttachmentIdHasBeenSet = false;
122
123 ConnectAttachmentOptions m_options;
124 bool m_optionsHasBeenSet = false;
125
126 Aws::Vector<Tag> m_tags;
127 bool m_tagsHasBeenSet = false;
128
130 bool m_clientTokenHasBeenSet = true;
131 };
132
133} // namespace Model
134} // namespace NetworkManager
135} // namespace Aws
CreateConnectAttachmentRequest & WithCoreNetworkId(CoreNetworkIdT &&value)
CreateConnectAttachmentRequest & WithClientToken(ClientTokenT &&value)
CreateConnectAttachmentRequest & WithTransportAttachmentId(TransportAttachmentIdT &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
CreateConnectAttachmentRequest & WithOptions(OptionsT &&value)
CreateConnectAttachmentRequest & WithEdgeLocation(EdgeLocationT &&value)
AWS_NETWORKMANAGER_API CreateConnectAttachmentRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector