/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace WorkMail { namespace Model { /** */ class GetMailDomainRequest : public WorkMailRequest { public: AWS_WORKMAIL_API GetMailDomainRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetMailDomain"; } AWS_WORKMAIL_API Aws::String SerializePayload() const override; AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The WorkMail organization for which the domain is retrieved.

*/ inline const Aws::String& GetOrganizationId() const{ return m_organizationId; } /** *

The WorkMail organization for which the domain is retrieved.

*/ inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; } /** *

The WorkMail organization for which the domain is retrieved.

*/ inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; } /** *

The WorkMail organization for which the domain is retrieved.

*/ inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); } /** *

The WorkMail organization for which the domain is retrieved.

*/ inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); } /** *

The WorkMail organization for which the domain is retrieved.

*/ inline GetMailDomainRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;} /** *

The WorkMail organization for which the domain is retrieved.

*/ inline GetMailDomainRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;} /** *

The WorkMail organization for which the domain is retrieved.

*/ inline GetMailDomainRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;} /** *

The domain from which you want to retrieve details.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

The domain from which you want to retrieve details.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

The domain from which you want to retrieve details.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

The domain from which you want to retrieve details.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

The domain from which you want to retrieve details.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

The domain from which you want to retrieve details.

*/ inline GetMailDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

The domain from which you want to retrieve details.

*/ inline GetMailDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

The domain from which you want to retrieve details.

*/ inline GetMailDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} private: Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws