AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WorkMail
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateResource"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
43 
48  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
49 
54  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
55 
60  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
61 
66  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
67 
72  inline UpdateResourceRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
73 
78  inline UpdateResourceRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
79 
84  inline UpdateResourceRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
85 
86 
90  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
91 
95  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
96 
100  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
101 
105  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
106 
110  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
111 
115  inline UpdateResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
116 
120  inline UpdateResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
121 
125  inline UpdateResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
126 
127 
131  inline const Aws::String& GetName() const{ return m_name; }
132 
136  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
137 
141  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
142 
146  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
147 
151  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
152 
156  inline UpdateResourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
157 
161  inline UpdateResourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
162 
166  inline UpdateResourceRequest& WithName(const char* value) { SetName(value); return *this;}
167 
168 
172  inline const BookingOptions& GetBookingOptions() const{ return m_bookingOptions; }
173 
177  inline bool BookingOptionsHasBeenSet() const { return m_bookingOptionsHasBeenSet; }
178 
182  inline void SetBookingOptions(const BookingOptions& value) { m_bookingOptionsHasBeenSet = true; m_bookingOptions = value; }
183 
187  inline void SetBookingOptions(BookingOptions&& value) { m_bookingOptionsHasBeenSet = true; m_bookingOptions = std::move(value); }
188 
192  inline UpdateResourceRequest& WithBookingOptions(const BookingOptions& value) { SetBookingOptions(value); return *this;}
193 
197  inline UpdateResourceRequest& WithBookingOptions(BookingOptions&& value) { SetBookingOptions(std::move(value)); return *this;}
198 
199  private:
200 
201  Aws::String m_organizationId;
202  bool m_organizationIdHasBeenSet;
203 
204  Aws::String m_resourceId;
205  bool m_resourceIdHasBeenSet;
206 
207  Aws::String m_name;
208  bool m_nameHasBeenSet;
209 
210  BookingOptions m_bookingOptions;
211  bool m_bookingOptionsHasBeenSet;
212  };
213 
214 } // namespace Model
215 } // namespace WorkMail
216 } // namespace Aws
Aws::WorkMail::Model::UpdateResourceRequest::SetResourceId
void SetResourceId(const char *value)
Definition: UpdateResourceRequest.h:110
Aws::WorkMail::Model::UpdateResourceRequest::WithName
UpdateResourceRequest & WithName(Aws::String &&value)
Definition: UpdateResourceRequest.h:161
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::Model::UpdateResourceRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateResourceRequest.h:141
Aws::WorkMail::Model::UpdateResourceRequest::WithBookingOptions
UpdateResourceRequest & WithBookingOptions(const BookingOptions &value)
Definition: UpdateResourceRequest.h:192
Aws::WorkMail::Model::UpdateResourceRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: UpdateResourceRequest.h:90
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::UpdateResourceRequest::WithResourceId
UpdateResourceRequest & WithResourceId(const char *value)
Definition: UpdateResourceRequest.h:125
Aws::WorkMail::Model::UpdateResourceRequest::WithResourceId
UpdateResourceRequest & WithResourceId(Aws::String &&value)
Definition: UpdateResourceRequest.h:120
Aws::WorkMail::Model::UpdateResourceRequest::WithName
UpdateResourceRequest & WithName(const char *value)
Definition: UpdateResourceRequest.h:166
Aws::WorkMail::Model::UpdateResourceRequest
Definition: UpdateResourceRequest.h:23
Aws::WorkMail::Model::UpdateResourceRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: UpdateResourceRequest.h:48
Aws::WorkMail::Model::UpdateResourceRequest::WithOrganizationId
UpdateResourceRequest & WithOrganizationId(Aws::String &&value)
Definition: UpdateResourceRequest.h:78
Aws::WorkMail::Model::UpdateResourceRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: UpdateResourceRequest.h:42
Aws::WorkMail::Model::UpdateResourceRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: UpdateResourceRequest.h:105
WorkMail_EXPORTS.h
WorkMailRequest.h
Aws::WorkMail::Model::UpdateResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::UpdateResourceRequest::WithOrganizationId
UpdateResourceRequest & WithOrganizationId(const char *value)
Definition: UpdateResourceRequest.h:84
Aws::WorkMail::Model::UpdateResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkMail::Model::UpdateResourceRequest::WithName
UpdateResourceRequest & WithName(const Aws::String &value)
Definition: UpdateResourceRequest.h:156
Aws::WorkMail::Model::UpdateResourceRequest::WithResourceId
UpdateResourceRequest & WithResourceId(const Aws::String &value)
Definition: UpdateResourceRequest.h:115
Aws::WorkMail::Model::UpdateResourceRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: UpdateResourceRequest.h:100
AWSString.h
Aws::WorkMail::Model::UpdateResourceRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: UpdateResourceRequest.h:54
Aws::WorkMail::Model::UpdateResourceRequest::SetName
void SetName(const char *value)
Definition: UpdateResourceRequest.h:151
Aws::WorkMail::Model::UpdateResourceRequest::UpdateResourceRequest
UpdateResourceRequest()
Aws::WorkMail::Model::UpdateResourceRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateResourceRequest.h:146
Aws::WorkMail::Model::UpdateResourceRequest::SetBookingOptions
void SetBookingOptions(const BookingOptions &value)
Definition: UpdateResourceRequest.h:182
Aws::WorkMail::Model::UpdateResourceRequest::WithBookingOptions
UpdateResourceRequest & WithBookingOptions(BookingOptions &&value)
Definition: UpdateResourceRequest.h:197
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::UpdateResourceRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: UpdateResourceRequest.h:60
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::UpdateResourceRequest::GetBookingOptions
const BookingOptions & GetBookingOptions() const
Definition: UpdateResourceRequest.h:172
BookingOptions.h
Aws::WorkMail::Model::UpdateResourceRequest::BookingOptionsHasBeenSet
bool BookingOptionsHasBeenSet() const
Definition: UpdateResourceRequest.h:177
Aws::WorkMail::Model::UpdateResourceRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: UpdateResourceRequest.h:95
Aws::WorkMail::Model::BookingOptions
Definition: BookingOptions.h:31
Aws::WorkMail::Model::UpdateResourceRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: UpdateResourceRequest.h:66
Aws::WorkMail::Model::UpdateResourceRequest::WithOrganizationId
UpdateResourceRequest & WithOrganizationId(const Aws::String &value)
Definition: UpdateResourceRequest.h:72
Aws::WorkMail::Model::UpdateResourceRequest::SetBookingOptions
void SetBookingOptions(BookingOptions &&value)
Definition: UpdateResourceRequest.h:187
Aws::WorkMail::Model::UpdateResourceRequest::GetName
const Aws::String & GetName() const
Definition: UpdateResourceRequest.h:131
Aws::WorkMail::Model::UpdateResourceRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateResourceRequest.h:136
Aws::WorkMail::Model::UpdateResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateResourceRequest.h:31