AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; }
46 inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); }
47 inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); }
49 inline CreateConnectAttachmentRequest& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;}
50 inline CreateConnectAttachmentRequest& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;}
52
54
57 inline const Aws::String& GetEdgeLocation() const{ return m_edgeLocation; }
58 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
59 inline void SetEdgeLocation(const Aws::String& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = value; }
60 inline void SetEdgeLocation(Aws::String&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::move(value); }
61 inline void SetEdgeLocation(const char* value) { m_edgeLocationHasBeenSet = true; m_edgeLocation.assign(value); }
62 inline CreateConnectAttachmentRequest& WithEdgeLocation(const Aws::String& value) { SetEdgeLocation(value); return *this;}
63 inline CreateConnectAttachmentRequest& WithEdgeLocation(Aws::String&& value) { SetEdgeLocation(std::move(value)); return *this;}
64 inline CreateConnectAttachmentRequest& WithEdgeLocation(const char* value) { SetEdgeLocation(value); return *this;}
66
68
71 inline const Aws::String& GetTransportAttachmentId() const{ return m_transportAttachmentId; }
72 inline bool TransportAttachmentIdHasBeenSet() const { return m_transportAttachmentIdHasBeenSet; }
73 inline void SetTransportAttachmentId(const Aws::String& value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId = value; }
74 inline void SetTransportAttachmentId(Aws::String&& value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId = std::move(value); }
75 inline void SetTransportAttachmentId(const char* value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId.assign(value); }
78 inline CreateConnectAttachmentRequest& WithTransportAttachmentId(const char* value) { SetTransportAttachmentId(value); return *this;}
80
82
85 inline const ConnectAttachmentOptions& GetOptions() const{ return m_options; }
86 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
87 inline void SetOptions(const ConnectAttachmentOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
88 inline void SetOptions(ConnectAttachmentOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
90 inline CreateConnectAttachmentRequest& WithOptions(ConnectAttachmentOptions&& value) { SetOptions(std::move(value)); return *this;}
92
94
97 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
100 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
101 inline CreateConnectAttachmentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
102 inline CreateConnectAttachmentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
103 inline CreateConnectAttachmentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
104 inline CreateConnectAttachmentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
106
108
111 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
112 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
113 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
114 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
115 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
116 inline CreateConnectAttachmentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
117 inline CreateConnectAttachmentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
118 inline CreateConnectAttachmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
120 private:
121
122 Aws::String m_coreNetworkId;
123 bool m_coreNetworkIdHasBeenSet = false;
124
125 Aws::String m_edgeLocation;
126 bool m_edgeLocationHasBeenSet = false;
127
128 Aws::String m_transportAttachmentId;
129 bool m_transportAttachmentIdHasBeenSet = false;
130
131 ConnectAttachmentOptions m_options;
132 bool m_optionsHasBeenSet = false;
133
134 Aws::Vector<Tag> m_tags;
135 bool m_tagsHasBeenSet = false;
136
137 Aws::String m_clientToken;
138 bool m_clientTokenHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace NetworkManager
143} // namespace Aws
CreateConnectAttachmentRequest & WithEdgeLocation(Aws::String &&value)
CreateConnectAttachmentRequest & WithOptions(const ConnectAttachmentOptions &value)
CreateConnectAttachmentRequest & WithClientToken(Aws::String &&value)
CreateConnectAttachmentRequest & WithOptions(ConnectAttachmentOptions &&value)
CreateConnectAttachmentRequest & WithClientToken(const char *value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
CreateConnectAttachmentRequest & WithCoreNetworkId(Aws::String &&value)
CreateConnectAttachmentRequest & WithTransportAttachmentId(Aws::String &&value)
CreateConnectAttachmentRequest & AddTags(const Tag &value)
CreateConnectAttachmentRequest & WithClientToken(const Aws::String &value)
CreateConnectAttachmentRequest & WithEdgeLocation(const char *value)
CreateConnectAttachmentRequest & WithTags(const Aws::Vector< Tag > &value)
CreateConnectAttachmentRequest & WithTransportAttachmentId(const Aws::String &value)
CreateConnectAttachmentRequest & WithCoreNetworkId(const char *value)
CreateConnectAttachmentRequest & WithEdgeLocation(const Aws::String &value)
CreateConnectAttachmentRequest & WithTransportAttachmentId(const char *value)
CreateConnectAttachmentRequest & WithTags(Aws::Vector< Tag > &&value)
CreateConnectAttachmentRequest & WithCoreNetworkId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector