AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLinkRequest.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/Bandwidth.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/networkmanager/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace NetworkManager
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_NETWORKMANAGER_API CreateLinkRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateLink"; }
34
35 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
43 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
44 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
45 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
46 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
47 inline CreateLinkRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
48 inline CreateLinkRequest& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
49 inline CreateLinkRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
51
53
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline CreateLinkRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline CreateLinkRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline CreateLinkRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
72 inline const Aws::String& GetType() const{ return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
75 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
76 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
77 inline CreateLinkRequest& WithType(const Aws::String& value) { SetType(value); return *this;}
78 inline CreateLinkRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
79 inline CreateLinkRequest& WithType(const char* value) { SetType(value); return *this;}
81
83
86 inline const Bandwidth& GetBandwidth() const{ return m_bandwidth; }
87 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
88 inline void SetBandwidth(const Bandwidth& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
89 inline void SetBandwidth(Bandwidth&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::move(value); }
90 inline CreateLinkRequest& WithBandwidth(const Bandwidth& value) { SetBandwidth(value); return *this;}
91 inline CreateLinkRequest& WithBandwidth(Bandwidth&& value) { SetBandwidth(std::move(value)); return *this;}
93
95
99 inline const Aws::String& GetProvider() const{ return m_provider; }
100 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
101 inline void SetProvider(const Aws::String& value) { m_providerHasBeenSet = true; m_provider = value; }
102 inline void SetProvider(Aws::String&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
103 inline void SetProvider(const char* value) { m_providerHasBeenSet = true; m_provider.assign(value); }
104 inline CreateLinkRequest& WithProvider(const Aws::String& value) { SetProvider(value); return *this;}
105 inline CreateLinkRequest& WithProvider(Aws::String&& value) { SetProvider(std::move(value)); return *this;}
106 inline CreateLinkRequest& WithProvider(const char* value) { SetProvider(value); return *this;}
108
110
113 inline const Aws::String& GetSiteId() const{ return m_siteId; }
114 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
115 inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; }
116 inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); }
117 inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); }
118 inline CreateLinkRequest& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;}
119 inline CreateLinkRequest& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;}
120 inline CreateLinkRequest& WithSiteId(const char* value) { SetSiteId(value); return *this;}
122
124
127 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
130 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
131 inline CreateLinkRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
132 inline CreateLinkRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
133 inline CreateLinkRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
134 inline CreateLinkRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
136 private:
137
138 Aws::String m_globalNetworkId;
139 bool m_globalNetworkIdHasBeenSet = false;
140
141 Aws::String m_description;
142 bool m_descriptionHasBeenSet = false;
143
144 Aws::String m_type;
145 bool m_typeHasBeenSet = false;
146
147 Bandwidth m_bandwidth;
148 bool m_bandwidthHasBeenSet = false;
149
150 Aws::String m_provider;
151 bool m_providerHasBeenSet = false;
152
153 Aws::String m_siteId;
154 bool m_siteIdHasBeenSet = false;
155
156 Aws::Vector<Tag> m_tags;
157 bool m_tagsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace NetworkManager
162} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector