AWS SDK for C++

AWS SDK for C++ Version 1.11.710

Loading...
Searching...
No Matches
UpdateSiteRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/outposts/OutpostsRequest.h>
9#include <aws/outposts/Outposts_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Outposts {
15namespace Model {
16
20 public:
21 AWS_OUTPOSTS_API UpdateSiteRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateSite"; }
28
29 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetSiteId() const { return m_siteId; }
36 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
37 template <typename SiteIdT = Aws::String>
38 void SetSiteId(SiteIdT&& value) {
39 m_siteIdHasBeenSet = true;
40 m_siteId = std::forward<SiteIdT>(value);
41 }
42 template <typename SiteIdT = Aws::String>
43 UpdateSiteRequest& WithSiteId(SiteIdT&& value) {
44 SetSiteId(std::forward<SiteIdT>(value));
45 return *this;
46 }
48
50
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template <typename NameT = Aws::String>
54 void SetName(NameT&& value) {
55 m_nameHasBeenSet = true;
56 m_name = std::forward<NameT>(value);
57 }
58 template <typename NameT = Aws::String>
59 UpdateSiteRequest& WithName(NameT&& value) {
60 SetName(std::forward<NameT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template <typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) {
71 m_descriptionHasBeenSet = true;
72 m_description = std::forward<DescriptionT>(value);
73 }
74 template <typename DescriptionT = Aws::String>
75 UpdateSiteRequest& WithDescription(DescriptionT&& value) {
76 SetDescription(std::forward<DescriptionT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetNotes() const { return m_notes; }
86 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
87 template <typename NotesT = Aws::String>
88 void SetNotes(NotesT&& value) {
89 m_notesHasBeenSet = true;
90 m_notes = std::forward<NotesT>(value);
91 }
92 template <typename NotesT = Aws::String>
93 UpdateSiteRequest& WithNotes(NotesT&& value) {
94 SetNotes(std::forward<NotesT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_siteId;
100
101 Aws::String m_name;
102
103 Aws::String m_description;
104
105 Aws::String m_notes;
106 bool m_siteIdHasBeenSet = false;
107 bool m_nameHasBeenSet = false;
108 bool m_descriptionHasBeenSet = false;
109 bool m_notesHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Outposts
114} // namespace Aws
const Aws::String & GetDescription() const
virtual const char * GetServiceRequestName() const override
AWS_OUTPOSTS_API UpdateSiteRequest()=default
UpdateSiteRequest & WithSiteId(SiteIdT &&value)
const Aws::String & GetSiteId() const
UpdateSiteRequest & WithName(NameT &&value)
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
void SetDescription(DescriptionT &&value)
UpdateSiteRequest & WithNotes(NotesT &&value)
UpdateSiteRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String