/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WorkMail { namespace Model { /** *

List all the AvailabilityConfiguration's for the given WorkMail * organization.

See Also:

AWS * API Reference

*/ class AvailabilityConfiguration { public: AWS_WORKMAIL_API AvailabilityConfiguration(); AWS_WORKMAIL_API AvailabilityConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_WORKMAIL_API AvailabilityConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Displays the domain to which the provider applies.

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

Displays the domain to which the provider applies.

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

Displays the domain to which the provider applies.

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

Displays the domain to which the provider applies.

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

Displays the domain to which the provider applies.

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

Displays the domain to which the provider applies.

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

Displays the domain to which the provider applies.

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

Displays the domain to which the provider applies.

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

Displays the provider type that applies to this domain.

*/ inline const AvailabilityProviderType& GetProviderType() const{ return m_providerType; } /** *

Displays the provider type that applies to this domain.

*/ inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; } /** *

Displays the provider type that applies to this domain.

*/ inline void SetProviderType(const AvailabilityProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; } /** *

Displays the provider type that applies to this domain.

*/ inline void SetProviderType(AvailabilityProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); } /** *

Displays the provider type that applies to this domain.

*/ inline AvailabilityConfiguration& WithProviderType(const AvailabilityProviderType& value) { SetProviderType(value); return *this;} /** *

Displays the provider type that applies to this domain.

*/ inline AvailabilityConfiguration& WithProviderType(AvailabilityProviderType&& value) { SetProviderType(std::move(value)); return *this;} /** *

If ProviderType is EWS, then this field contains * RedactedEwsAvailabilityProvider. Otherwise, it is not required.

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

If ProviderType is EWS, then this field contains * RedactedEwsAvailabilityProvider. Otherwise, it is not required.

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

If ProviderType is EWS, then this field contains * RedactedEwsAvailabilityProvider. Otherwise, it is not required.

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

If ProviderType is EWS, then this field contains * RedactedEwsAvailabilityProvider. Otherwise, it is not required.

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

If ProviderType is EWS, then this field contains * RedactedEwsAvailabilityProvider. Otherwise, it is not required.

*/ inline AvailabilityConfiguration& WithEwsProvider(const RedactedEwsAvailabilityProvider& value) { SetEwsProvider(value); return *this;} /** *

If ProviderType is EWS, then this field contains * RedactedEwsAvailabilityProvider. Otherwise, it is not required.

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

If ProviderType is LAMBDA then this field contains * LambdaAvailabilityProvider. Otherwise, it is not required.

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

If ProviderType is LAMBDA then this field contains * LambdaAvailabilityProvider. Otherwise, it is not required.

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

If ProviderType is LAMBDA then this field contains * LambdaAvailabilityProvider. Otherwise, it is not required.

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

If ProviderType is LAMBDA then this field contains * LambdaAvailabilityProvider. Otherwise, it is not required.

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

If ProviderType is LAMBDA then this field contains * LambdaAvailabilityProvider. Otherwise, it is not required.

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

If ProviderType is LAMBDA then this field contains * LambdaAvailabilityProvider. Otherwise, it is not required.

*/ inline AvailabilityConfiguration& WithLambdaProvider(LambdaAvailabilityProvider&& value) { SetLambdaProvider(std::move(value)); return *this;} /** *

The date and time at which the availability configuration was created.

*/ inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; } /** *

The date and time at which the availability configuration was created.

*/ inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; } /** *

The date and time at which the availability configuration was created.

*/ inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; } /** *

The date and time at which the availability configuration was created.

*/ inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); } /** *

The date and time at which the availability configuration was created.

*/ inline AvailabilityConfiguration& WithDateCreated(const Aws::Utils::DateTime& value) { SetDateCreated(value); return *this;} /** *

The date and time at which the availability configuration was created.

*/ inline AvailabilityConfiguration& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;} /** *

The date and time at which the availability configuration was last * modified.

*/ inline const Aws::Utils::DateTime& GetDateModified() const{ return m_dateModified; } /** *

The date and time at which the availability configuration was last * modified.

*/ inline bool DateModifiedHasBeenSet() const { return m_dateModifiedHasBeenSet; } /** *

The date and time at which the availability configuration was last * modified.

*/ inline void SetDateModified(const Aws::Utils::DateTime& value) { m_dateModifiedHasBeenSet = true; m_dateModified = value; } /** *

The date and time at which the availability configuration was last * modified.

*/ inline void SetDateModified(Aws::Utils::DateTime&& value) { m_dateModifiedHasBeenSet = true; m_dateModified = std::move(value); } /** *

The date and time at which the availability configuration was last * modified.

*/ inline AvailabilityConfiguration& WithDateModified(const Aws::Utils::DateTime& value) { SetDateModified(value); return *this;} /** *

The date and time at which the availability configuration was last * modified.

*/ inline AvailabilityConfiguration& WithDateModified(Aws::Utils::DateTime&& value) { SetDateModified(std::move(value)); return *this;} private: Aws::String m_domainName; bool m_domainNameHasBeenSet = false; AvailabilityProviderType m_providerType; bool m_providerTypeHasBeenSet = false; RedactedEwsAvailabilityProvider m_ewsProvider; bool m_ewsProviderHasBeenSet = false; LambdaAvailabilityProvider m_lambdaProvider; bool m_lambdaProviderHasBeenSet = false; Aws::Utils::DateTime m_dateCreated; bool m_dateCreatedHasBeenSet = false; Aws::Utils::DateTime m_dateModified; bool m_dateModifiedHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws