AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GlobalNetworkIdT = Aws::String>
45 void SetGlobalNetworkId(GlobalNetworkIdT&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
46 template<typename GlobalNetworkIdT = Aws::String>
47 CreateLinkRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
49
51
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 CreateLinkRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
68 inline const Aws::String& GetType() const { return m_type; }
69 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
70 template<typename TypeT = Aws::String>
71 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
72 template<typename TypeT = Aws::String>
73 CreateLinkRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
75
77
80 inline const Bandwidth& GetBandwidth() const { return m_bandwidth; }
81 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
82 template<typename BandwidthT = Bandwidth>
83 void SetBandwidth(BandwidthT&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::forward<BandwidthT>(value); }
84 template<typename BandwidthT = Bandwidth>
85 CreateLinkRequest& WithBandwidth(BandwidthT&& value) { SetBandwidth(std::forward<BandwidthT>(value)); return *this;}
87
89
93 inline const Aws::String& GetProvider() const { return m_provider; }
94 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
95 template<typename ProviderT = Aws::String>
96 void SetProvider(ProviderT&& value) { m_providerHasBeenSet = true; m_provider = std::forward<ProviderT>(value); }
97 template<typename ProviderT = Aws::String>
98 CreateLinkRequest& WithProvider(ProviderT&& value) { SetProvider(std::forward<ProviderT>(value)); return *this;}
100
102
105 inline const Aws::String& GetSiteId() const { return m_siteId; }
106 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
107 template<typename SiteIdT = Aws::String>
108 void SetSiteId(SiteIdT&& value) { m_siteIdHasBeenSet = true; m_siteId = std::forward<SiteIdT>(value); }
109 template<typename SiteIdT = Aws::String>
110 CreateLinkRequest& WithSiteId(SiteIdT&& value) { SetSiteId(std::forward<SiteIdT>(value)); return *this;}
112
114
117 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 template<typename TagsT = Aws::Vector<Tag>>
120 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
121 template<typename TagsT = Aws::Vector<Tag>>
122 CreateLinkRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
123 template<typename TagsT = Tag>
124 CreateLinkRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
126 private:
127
128 Aws::String m_globalNetworkId;
129 bool m_globalNetworkIdHasBeenSet = false;
130
131 Aws::String m_description;
132 bool m_descriptionHasBeenSet = false;
133
134 Aws::String m_type;
135 bool m_typeHasBeenSet = false;
136
137 Bandwidth m_bandwidth;
138 bool m_bandwidthHasBeenSet = false;
139
140 Aws::String m_provider;
141 bool m_providerHasBeenSet = false;
142
143 Aws::String m_siteId;
144 bool m_siteIdHasBeenSet = false;
145
146 Aws::Vector<Tag> m_tags;
147 bool m_tagsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace NetworkManager
152} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector