AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
UpdateSiteRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/networkmanager/NetworkManager_EXPORTS.h>
10#include <aws/networkmanager/model/Location.h>
11
12#include <utility>
13
14namespace Aws {
15namespace NetworkManager {
16namespace Model {
17
21 public:
22 AWS_NETWORKMANAGER_API UpdateSiteRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateSite"; }
29
30 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
37 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
38 template <typename GlobalNetworkIdT = Aws::String>
39 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
40 m_globalNetworkIdHasBeenSet = true;
41 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
42 }
43 template <typename GlobalNetworkIdT = Aws::String>
44 UpdateSiteRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
45 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetSiteId() const { return m_siteId; }
55 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
56 template <typename SiteIdT = Aws::String>
57 void SetSiteId(SiteIdT&& value) {
58 m_siteIdHasBeenSet = true;
59 m_siteId = std::forward<SiteIdT>(value);
60 }
61 template <typename SiteIdT = Aws::String>
62 UpdateSiteRequest& WithSiteId(SiteIdT&& value) {
63 SetSiteId(std::forward<SiteIdT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 UpdateSiteRequest& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
94 inline const Location& GetLocation() const { return m_location; }
95 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
96 template <typename LocationT = Location>
97 void SetLocation(LocationT&& value) {
98 m_locationHasBeenSet = true;
99 m_location = std::forward<LocationT>(value);
100 }
101 template <typename LocationT = Location>
102 UpdateSiteRequest& WithLocation(LocationT&& value) {
103 SetLocation(std::forward<LocationT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_globalNetworkId;
109
110 Aws::String m_siteId;
111
112 Aws::String m_description;
113
114 Location m_location;
115 bool m_globalNetworkIdHasBeenSet = false;
116 bool m_siteIdHasBeenSet = false;
117 bool m_descriptionHasBeenSet = false;
118 bool m_locationHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace NetworkManager
123} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
AWS_NETWORKMANAGER_API UpdateSiteRequest()=default
void SetGlobalNetworkId(GlobalNetworkIdT &&value)
UpdateSiteRequest & WithSiteId(SiteIdT &&value)
UpdateSiteRequest & WithGlobalNetworkId(GlobalNetworkIdT &&value)
UpdateSiteRequest & WithDescription(DescriptionT &&value)
UpdateSiteRequest & WithLocation(LocationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String