AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateResourceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/workmail/WorkMail_EXPORTS.h>
10#include <aws/workmail/model/BookingOptions.h>
11#include <aws/workmail/model/ResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WorkMail {
17namespace Model {
18
22 public:
23 AWS_WORKMAIL_API UpdateResourceRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateResource"; }
30
31 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
41 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
42 template <typename OrganizationIdT = Aws::String>
43 void SetOrganizationId(OrganizationIdT&& value) {
44 m_organizationIdHasBeenSet = true;
45 m_organizationId = std::forward<OrganizationIdT>(value);
46 }
47 template <typename OrganizationIdT = Aws::String>
48 UpdateResourceRequest& WithOrganizationId(OrganizationIdT&& value) {
49 SetOrganizationId(std::forward<OrganizationIdT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::String& GetResourceId() const { return m_resourceId; }
63 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
64 template <typename ResourceIdT = Aws::String>
65 void SetResourceId(ResourceIdT&& value) {
66 m_resourceIdHasBeenSet = true;
67 m_resourceId = std::forward<ResourceIdT>(value);
68 }
69 template <typename ResourceIdT = Aws::String>
70 UpdateResourceRequest& WithResourceId(ResourceIdT&& value) {
71 SetResourceId(std::forward<ResourceIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
98 inline const BookingOptions& GetBookingOptions() const { return m_bookingOptions; }
99 inline bool BookingOptionsHasBeenSet() const { return m_bookingOptionsHasBeenSet; }
100 template <typename BookingOptionsT = BookingOptions>
101 void SetBookingOptions(BookingOptionsT&& value) {
102 m_bookingOptionsHasBeenSet = true;
103 m_bookingOptions = std::forward<BookingOptionsT>(value);
104 }
105 template <typename BookingOptionsT = BookingOptions>
106 UpdateResourceRequest& WithBookingOptions(BookingOptionsT&& value) {
107 SetBookingOptions(std::forward<BookingOptionsT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template <typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) {
120 m_descriptionHasBeenSet = true;
121 m_description = std::forward<DescriptionT>(value);
122 }
123 template <typename DescriptionT = Aws::String>
124 UpdateResourceRequest& WithDescription(DescriptionT&& value) {
125 SetDescription(std::forward<DescriptionT>(value));
126 return *this;
127 }
129
131
134 inline ResourceType GetType() const { return m_type; }
135 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
136 inline void SetType(ResourceType value) {
137 m_typeHasBeenSet = true;
138 m_type = value;
139 }
141 SetType(value);
142 return *this;
143 }
145
147
150 inline bool GetHiddenFromGlobalAddressList() const { return m_hiddenFromGlobalAddressList; }
151 inline bool HiddenFromGlobalAddressListHasBeenSet() const { return m_hiddenFromGlobalAddressListHasBeenSet; }
152 inline void SetHiddenFromGlobalAddressList(bool value) {
153 m_hiddenFromGlobalAddressListHasBeenSet = true;
154 m_hiddenFromGlobalAddressList = value;
155 }
158 return *this;
159 }
161 private:
162 Aws::String m_organizationId;
163
164 Aws::String m_resourceId;
165
166 Aws::String m_name;
167
168 BookingOptions m_bookingOptions;
169
170 Aws::String m_description;
171
173
174 bool m_hiddenFromGlobalAddressList{false};
175 bool m_organizationIdHasBeenSet = false;
176 bool m_resourceIdHasBeenSet = false;
177 bool m_nameHasBeenSet = false;
178 bool m_bookingOptionsHasBeenSet = false;
179 bool m_descriptionHasBeenSet = false;
180 bool m_typeHasBeenSet = false;
181 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace WorkMail
186} // namespace Aws
UpdateResourceRequest & WithOrganizationId(OrganizationIdT &&value)
UpdateResourceRequest & WithBookingOptions(BookingOptionsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateResourceRequest & WithName(NameT &&value)
UpdateResourceRequest & WithResourceId(ResourceIdT &&value)
UpdateResourceRequest & WithType(ResourceType value)
UpdateResourceRequest & WithDescription(DescriptionT &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const BookingOptions & GetBookingOptions() const
AWS_WORKMAIL_API Aws::String SerializePayload() const override
AWS_WORKMAIL_API UpdateResourceRequest()=default
UpdateResourceRequest & WithHiddenFromGlobalAddressList(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String