AWS SDK for C++  1.9.104
AWS SDK for C++
CreateResourceRequest.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 "CreateResource"; }
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 CreateResourceRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
73 
78  inline CreateResourceRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
79 
84  inline CreateResourceRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
85 
86 
90  inline const Aws::String& GetName() const{ return m_name; }
91 
95  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 
100  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
101 
105  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
106 
110  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
111 
115  inline CreateResourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
116 
120  inline CreateResourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
121 
125  inline CreateResourceRequest& WithName(const char* value) { SetName(value); return *this;}
126 
127 
132  inline const ResourceType& GetType() const{ return m_type; }
133 
138  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
139 
144  inline void SetType(const ResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
145 
150  inline void SetType(ResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
151 
156  inline CreateResourceRequest& WithType(const ResourceType& value) { SetType(value); return *this;}
157 
162  inline CreateResourceRequest& WithType(ResourceType&& value) { SetType(std::move(value)); return *this;}
163 
164  private:
165 
166  Aws::String m_organizationId;
167  bool m_organizationIdHasBeenSet;
168 
169  Aws::String m_name;
170  bool m_nameHasBeenSet;
171 
172  ResourceType m_type;
173  bool m_typeHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace WorkMail
178 } // namespace Aws
Aws::WorkMail::Model::CreateResourceRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateResourceRequest.h:105
Aws::WorkMail::Model::CreateResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkMail::Model::CreateResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::CreateResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateResourceRequest.h:31
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::Model::CreateResourceRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: CreateResourceRequest.h:42
Aws::WorkMail::Model::CreateResourceRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: CreateResourceRequest.h:54
Aws::WorkMail::Model::CreateResourceRequest::WithOrganizationId
CreateResourceRequest & WithOrganizationId(const Aws::String &value)
Definition: CreateResourceRequest.h:72
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::CreateResourceRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: CreateResourceRequest.h:48
ResourceType.h
Aws::WorkMail::Model::CreateResourceRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: CreateResourceRequest.h:66
WorkMail_EXPORTS.h
WorkMailRequest.h
Aws::WorkMail::Model::CreateResourceRequest::SetType
void SetType(const ResourceType &value)
Definition: CreateResourceRequest.h:144
Aws::WorkMail::Model::CreateResourceRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: CreateResourceRequest.h:60
Aws::WorkMail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::WorkMail::Model::CreateResourceRequest::WithName
CreateResourceRequest & WithName(const char *value)
Definition: CreateResourceRequest.h:125
Aws::WorkMail::Model::CreateResourceRequest::SetName
void SetName(const char *value)
Definition: CreateResourceRequest.h:110
Aws::WorkMail::Model::CreateResourceRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateResourceRequest.h:100
Aws::WorkMail::Model::CreateResourceRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateResourceRequest.h:138
Aws::WorkMail::Model::CreateResourceRequest::WithName
CreateResourceRequest & WithName(const Aws::String &value)
Definition: CreateResourceRequest.h:115
Aws::WorkMail::Model::CreateResourceRequest::CreateResourceRequest
CreateResourceRequest()
AWSString.h
Aws::WorkMail::Model::CreateResourceRequest::WithOrganizationId
CreateResourceRequest & WithOrganizationId(const char *value)
Definition: CreateResourceRequest.h:84
Aws::WorkMail::Model::CreateResourceRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateResourceRequest.h:95
Aws::WorkMail::Model::CreateResourceRequest::SetType
void SetType(ResourceType &&value)
Definition: CreateResourceRequest.h:150
Aws::WorkMail::Model::CreateResourceRequest::WithType
CreateResourceRequest & WithType(const ResourceType &value)
Definition: CreateResourceRequest.h:156
Aws::WorkMail::Model::CreateResourceRequest::WithType
CreateResourceRequest & WithType(ResourceType &&value)
Definition: CreateResourceRequest.h:162
Aws
Definition: AccessManagementClient.h:15
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::CreateResourceRequest::GetType
const ResourceType & GetType() const
Definition: CreateResourceRequest.h:132
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::CreateResourceRequest
Definition: CreateResourceRequest.h:23
Aws::WorkMail::Model::CreateResourceRequest::WithOrganizationId
CreateResourceRequest & WithOrganizationId(Aws::String &&value)
Definition: CreateResourceRequest.h:78
Aws::WorkMail::Model::CreateResourceRequest::GetName
const Aws::String & GetName() const
Definition: CreateResourceRequest.h:90
Aws::WorkMail::Model::CreateResourceRequest::WithName
CreateResourceRequest & WithName(Aws::String &&value)
Definition: CreateResourceRequest.h:120