AWS SDK for C++  1.9.159
AWS SDK for C++
GetMailDomainRequest.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 "GetMailDomain"; }
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 GetMailDomainRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
66 
70  inline GetMailDomainRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
71 
75  inline GetMailDomainRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
76 
77 
81  inline const Aws::String& GetDomainName() const{ return m_domainName; }
82 
86  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
87 
91  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
92 
96  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
97 
101  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
102 
106  inline GetMailDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
107 
111  inline GetMailDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
112 
116  inline GetMailDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
117 
118  private:
119 
120  Aws::String m_organizationId;
121  bool m_organizationIdHasBeenSet;
122 
123  Aws::String m_domainName;
124  bool m_domainNameHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace WorkMail
129 } // namespace Aws
Aws::WorkMail::Model::GetMailDomainRequest::WithDomainName
GetMailDomainRequest & WithDomainName(Aws::String &&value)
Definition: GetMailDomainRequest.h:111
Aws::WorkMail::Model::GetMailDomainRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: GetMailDomainRequest.h:96
Aws::WorkMail::Model::GetMailDomainRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::Model::GetMailDomainRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: GetMailDomainRequest.h:50
Aws::WorkMail::Model::GetMailDomainRequest::GetMailDomainRequest
GetMailDomainRequest()
Aws::WorkMail::Model::GetMailDomainRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: GetMailDomainRequest.h:55
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::GetMailDomainRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: GetMailDomainRequest.h:60
Aws::WorkMail::Model::GetMailDomainRequest::WithOrganizationId
GetMailDomainRequest & WithOrganizationId(Aws::String &&value)
Definition: GetMailDomainRequest.h:70
Aws::WorkMail::Model::GetMailDomainRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: GetMailDomainRequest.h:45
Aws::WorkMail::Model::GetMailDomainRequest::WithOrganizationId
GetMailDomainRequest & WithOrganizationId(const char *value)
Definition: GetMailDomainRequest.h:75
Aws::WorkMail::Model::GetMailDomainRequest::SetDomainName
void SetDomainName(const char *value)
Definition: GetMailDomainRequest.h:101
Aws::WorkMail::Model::GetMailDomainRequest::WithOrganizationId
GetMailDomainRequest & WithOrganizationId(const Aws::String &value)
Definition: GetMailDomainRequest.h:65
WorkMail_EXPORTS.h
WorkMailRequest.h
Aws::WorkMail::Model::GetMailDomainRequest::WithDomainName
GetMailDomainRequest & WithDomainName(const char *value)
Definition: GetMailDomainRequest.h:116
Aws::WorkMail::Model::GetMailDomainRequest
Definition: GetMailDomainRequest.h:22
Aws::WorkMail::Model::GetMailDomainRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetMailDomainRequest.h:30
Aws::WorkMail::Model::GetMailDomainRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::GetMailDomainRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: GetMailDomainRequest.h:81
AWSString.h
Aws::WorkMail::Model::GetMailDomainRequest::WithDomainName
GetMailDomainRequest & WithDomainName(const Aws::String &value)
Definition: GetMailDomainRequest.h:106
Aws::WorkMail::Model::GetMailDomainRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: GetMailDomainRequest.h:91
Aws::WorkMail::Model::GetMailDomainRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: GetMailDomainRequest.h:86
Aws
Definition: AccessManagementClient.h:15
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::GetMailDomainRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: GetMailDomainRequest.h:40