AWS SDK for C++  1.9.40
AWS SDK for C++
AssociateDelegateToResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WorkMail
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "AssociateDelegateToResource"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
41 
45  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
46 
50  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
51 
55  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
56 
60  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
61 
65  inline AssociateDelegateToResourceRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
66 
70  inline AssociateDelegateToResourceRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
71 
75  inline AssociateDelegateToResourceRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
76 
77 
81  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
82 
86  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
87 
91  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
92 
96  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
97 
101  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
102 
106  inline AssociateDelegateToResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
107 
111  inline AssociateDelegateToResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
112 
116  inline AssociateDelegateToResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
117 
118 
122  inline const Aws::String& GetEntityId() const{ return m_entityId; }
123 
127  inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
128 
132  inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; }
133 
137  inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); }
138 
142  inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); }
143 
147  inline AssociateDelegateToResourceRequest& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;}
148 
152  inline AssociateDelegateToResourceRequest& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;}
153 
157  inline AssociateDelegateToResourceRequest& WithEntityId(const char* value) { SetEntityId(value); return *this;}
158 
159  private:
160 
161  Aws::String m_organizationId;
162  bool m_organizationIdHasBeenSet;
163 
164  Aws::String m_resourceId;
165  bool m_resourceIdHasBeenSet;
166 
167  Aws::String m_entityId;
168  bool m_entityIdHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace WorkMail
173 } // namespace Aws
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: AssociateDelegateToResourceRequest.h:81
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::Model::AssociateDelegateToResourceRequest
Definition: AssociateDelegateToResourceRequest.h:22
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: AssociateDelegateToResourceRequest.h:60
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
WorkMail_EXPORTS.h
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: AssociateDelegateToResourceRequest.h:45
WorkMailRequest.h
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::WithOrganizationId
AssociateDelegateToResourceRequest & WithOrganizationId(Aws::String &&value)
Definition: AssociateDelegateToResourceRequest.h:70
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::WithEntityId
AssociateDelegateToResourceRequest & WithEntityId(Aws::String &&value)
Definition: AssociateDelegateToResourceRequest.h:152
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::SetEntityId
void SetEntityId(const Aws::String &value)
Definition: AssociateDelegateToResourceRequest.h:132
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::SetResourceId
void SetResourceId(const char *value)
Definition: AssociateDelegateToResourceRequest.h:101
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: AssociateDelegateToResourceRequest.h:55
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::WithResourceId
AssociateDelegateToResourceRequest & WithResourceId(Aws::String &&value)
Definition: AssociateDelegateToResourceRequest.h:111
AWSString.h
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::AssociateDelegateToResourceRequest
AssociateDelegateToResourceRequest()
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: AssociateDelegateToResourceRequest.h:96
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::SetEntityId
void SetEntityId(const char *value)
Definition: AssociateDelegateToResourceRequest.h:142
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::WithOrganizationId
AssociateDelegateToResourceRequest & WithOrganizationId(const Aws::String &value)
Definition: AssociateDelegateToResourceRequest.h:65
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::WithResourceId
AssociateDelegateToResourceRequest & WithResourceId(const char *value)
Definition: AssociateDelegateToResourceRequest.h:116
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateDelegateToResourceRequest.h:30
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: AssociateDelegateToResourceRequest.h:91
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: AssociateDelegateToResourceRequest.h:50
Aws
Definition: AccessManagementClient.h:15
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: AssociateDelegateToResourceRequest.h:40
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: AssociateDelegateToResourceRequest.h:86
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::WithOrganizationId
AssociateDelegateToResourceRequest & WithOrganizationId(const char *value)
Definition: AssociateDelegateToResourceRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::WithEntityId
AssociateDelegateToResourceRequest & WithEntityId(const char *value)
Definition: AssociateDelegateToResourceRequest.h:157
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::WithResourceId
AssociateDelegateToResourceRequest & WithResourceId(const Aws::String &value)
Definition: AssociateDelegateToResourceRequest.h:106
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::WithEntityId
AssociateDelegateToResourceRequest & WithEntityId(const Aws::String &value)
Definition: AssociateDelegateToResourceRequest.h:147
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::EntityIdHasBeenSet
bool EntityIdHasBeenSet() const
Definition: AssociateDelegateToResourceRequest.h:127
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::GetEntityId
const Aws::String & GetEntityId() const
Definition: AssociateDelegateToResourceRequest.h:122
Aws::WorkMail::Model::AssociateDelegateToResourceRequest::SetEntityId
void SetEntityId(Aws::String &&value)
Definition: AssociateDelegateToResourceRequest.h:137