/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace WorkMail { namespace Model { /** */ class CreateAvailabilityConfigurationRequest : public WorkMailRequest { public: AWS_WORKMAIL_API CreateAvailabilityConfigurationRequest(); // 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 "CreateAvailabilityConfiguration"; } AWS_WORKMAIL_API Aws::String SerializePayload() const override; AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

An idempotent token that ensures that an API request is executed only * once.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

An idempotent token that ensures that an API request is executed only * once.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

An idempotent token that ensures that an API request is executed only * once.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

An idempotent token that ensures that an API request is executed only * once.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

An idempotent token that ensures that an API request is executed only * once.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

An idempotent token that ensures that an API request is executed only * once.

*/ inline CreateAvailabilityConfigurationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

An idempotent token that ensures that an API request is executed only * once.

*/ inline CreateAvailabilityConfigurationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

An idempotent token that ensures that an API request is executed only * once.

*/ inline CreateAvailabilityConfigurationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The WorkMail organization for which the * AvailabilityConfiguration will be created.

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

The WorkMail organization for which the * AvailabilityConfiguration will be created.

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

The WorkMail organization for which the * AvailabilityConfiguration will be created.

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

The WorkMail organization for which the * AvailabilityConfiguration will be created.

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

The WorkMail organization for which the * AvailabilityConfiguration will be created.

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

The WorkMail organization for which the * AvailabilityConfiguration will be created.

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

The WorkMail organization for which the * AvailabilityConfiguration will be created.

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

The WorkMail organization for which the * AvailabilityConfiguration will be created.

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

The domain to which the provider applies.

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

The domain to which the provider applies.

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

The domain to which the provider applies.

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

The domain to which the provider applies.

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

The domain to which the provider applies.

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

The domain to which the provider applies.

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

The domain to which the provider applies.

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

The domain to which the provider applies.

*/ inline CreateAvailabilityConfigurationRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

Exchange Web Services (EWS) availability provider definition. The request * must contain exactly one provider definition, either EwsProvider or * LambdaProvider.

*/ inline const EwsAvailabilityProvider& GetEwsProvider() const{ return m_ewsProvider; } /** *

Exchange Web Services (EWS) availability provider definition. The request * must contain exactly one provider definition, either EwsProvider or * LambdaProvider.

*/ inline bool EwsProviderHasBeenSet() const { return m_ewsProviderHasBeenSet; } /** *

Exchange Web Services (EWS) availability provider definition. The request * must contain exactly one provider definition, either EwsProvider or * LambdaProvider.

*/ inline void SetEwsProvider(const EwsAvailabilityProvider& value) { m_ewsProviderHasBeenSet = true; m_ewsProvider = value; } /** *

Exchange Web Services (EWS) availability provider definition. The request * must contain exactly one provider definition, either EwsProvider or * LambdaProvider.

*/ inline void SetEwsProvider(EwsAvailabilityProvider&& value) { m_ewsProviderHasBeenSet = true; m_ewsProvider = std::move(value); } /** *

Exchange Web Services (EWS) availability provider definition. The request * must contain exactly one provider definition, either EwsProvider or * LambdaProvider.

*/ inline CreateAvailabilityConfigurationRequest& WithEwsProvider(const EwsAvailabilityProvider& value) { SetEwsProvider(value); return *this;} /** *

Exchange Web Services (EWS) availability provider definition. The request * must contain exactly one provider definition, either EwsProvider or * LambdaProvider.

*/ inline CreateAvailabilityConfigurationRequest& WithEwsProvider(EwsAvailabilityProvider&& value) { SetEwsProvider(std::move(value)); return *this;} /** *

Lambda availability provider definition. The request must contain exactly one * provider definition, either EwsProvider or * LambdaProvider.

*/ inline const LambdaAvailabilityProvider& GetLambdaProvider() const{ return m_lambdaProvider; } /** *

Lambda availability provider definition. The request must contain exactly one * provider definition, either EwsProvider or * LambdaProvider.

*/ inline bool LambdaProviderHasBeenSet() const { return m_lambdaProviderHasBeenSet; } /** *

Lambda availability provider definition. The request must contain exactly one * provider definition, either EwsProvider or * LambdaProvider.

*/ inline void SetLambdaProvider(const LambdaAvailabilityProvider& value) { m_lambdaProviderHasBeenSet = true; m_lambdaProvider = value; } /** *

Lambda availability provider definition. The request must contain exactly one * provider definition, either EwsProvider or * LambdaProvider.

*/ inline void SetLambdaProvider(LambdaAvailabilityProvider&& value) { m_lambdaProviderHasBeenSet = true; m_lambdaProvider = std::move(value); } /** *

Lambda availability provider definition. The request must contain exactly one * provider definition, either EwsProvider or * LambdaProvider.

*/ inline CreateAvailabilityConfigurationRequest& WithLambdaProvider(const LambdaAvailabilityProvider& value) { SetLambdaProvider(value); return *this;} /** *

Lambda availability provider definition. The request must contain exactly one * provider definition, either EwsProvider or * LambdaProvider.

*/ inline CreateAvailabilityConfigurationRequest& WithLambdaProvider(LambdaAvailabilityProvider&& value) { SetLambdaProvider(std::move(value)); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; EwsAvailabilityProvider m_ewsProvider; bool m_ewsProviderHasBeenSet = false; LambdaAvailabilityProvider m_lambdaProvider; bool m_lambdaProviderHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws