AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CreateSiteRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/networkmanager/NetworkManagerRequest.h>
10#include <aws/networkmanager/NetworkManager_EXPORTS.h>
11#include <aws/networkmanager/model/Location.h>
12#include <aws/networkmanager/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace NetworkManager {
18namespace Model {
19
23 public:
24 AWS_NETWORKMANAGER_API CreateSiteRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSite"; }
31
32 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
39 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
40 template <typename GlobalNetworkIdT = Aws::String>
41 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
42 m_globalNetworkIdHasBeenSet = true;
43 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
44 }
45 template <typename GlobalNetworkIdT = Aws::String>
46 CreateSiteRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
47 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 CreateSiteRequest& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
80 inline const Location& GetLocation() const { return m_location; }
81 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
82 template <typename LocationT = Location>
83 void SetLocation(LocationT&& value) {
84 m_locationHasBeenSet = true;
85 m_location = std::forward<LocationT>(value);
86 }
87 template <typename LocationT = Location>
88 CreateSiteRequest& WithLocation(LocationT&& value) {
89 SetLocation(std::forward<LocationT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template <typename TagsT = Aws::Vector<Tag>>
101 void SetTags(TagsT&& value) {
102 m_tagsHasBeenSet = true;
103 m_tags = std::forward<TagsT>(value);
104 }
105 template <typename TagsT = Aws::Vector<Tag>>
106 CreateSiteRequest& WithTags(TagsT&& value) {
107 SetTags(std::forward<TagsT>(value));
108 return *this;
109 }
110 template <typename TagsT = Tag>
111 CreateSiteRequest& AddTags(TagsT&& value) {
112 m_tagsHasBeenSet = true;
113 m_tags.emplace_back(std::forward<TagsT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_globalNetworkId;
119
120 Aws::String m_description;
121
122 Location m_location;
123
124 Aws::Vector<Tag> m_tags;
125 bool m_globalNetworkIdHasBeenSet = false;
126 bool m_descriptionHasBeenSet = false;
127 bool m_locationHasBeenSet = false;
128 bool m_tagsHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace NetworkManager
133} // namespace Aws
AWS_NETWORKMANAGER_API CreateSiteRequest()=default
CreateSiteRequest & WithLocation(LocationT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateSiteRequest & AddTags(TagsT &&value)
void SetGlobalNetworkId(GlobalNetworkIdT &&value)
CreateSiteRequest & WithDescription(DescriptionT &&value)
CreateSiteRequest & WithGlobalNetworkId(GlobalNetworkIdT &&value)
CreateSiteRequest & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector