/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WorkMail { namespace Model { /** *

At least one delegate must be associated to the resource to disable automatic * replies from the resource.

See Also:

AWS * API Reference

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

The resource's ability to automatically reply to requests. If disabled, * delegates must be associated to the resource.

*/ inline bool GetAutoAcceptRequests() const{ return m_autoAcceptRequests; } /** *

The resource's ability to automatically reply to requests. If disabled, * delegates must be associated to the resource.

*/ inline bool AutoAcceptRequestsHasBeenSet() const { return m_autoAcceptRequestsHasBeenSet; } /** *

The resource's ability to automatically reply to requests. If disabled, * delegates must be associated to the resource.

*/ inline void SetAutoAcceptRequests(bool value) { m_autoAcceptRequestsHasBeenSet = true; m_autoAcceptRequests = value; } /** *

The resource's ability to automatically reply to requests. If disabled, * delegates must be associated to the resource.

*/ inline BookingOptions& WithAutoAcceptRequests(bool value) { SetAutoAcceptRequests(value); return *this;} /** *

The resource's ability to automatically decline any recurring requests.

*/ inline bool GetAutoDeclineRecurringRequests() const{ return m_autoDeclineRecurringRequests; } /** *

The resource's ability to automatically decline any recurring requests.

*/ inline bool AutoDeclineRecurringRequestsHasBeenSet() const { return m_autoDeclineRecurringRequestsHasBeenSet; } /** *

The resource's ability to automatically decline any recurring requests.

*/ inline void SetAutoDeclineRecurringRequests(bool value) { m_autoDeclineRecurringRequestsHasBeenSet = true; m_autoDeclineRecurringRequests = value; } /** *

The resource's ability to automatically decline any recurring requests.

*/ inline BookingOptions& WithAutoDeclineRecurringRequests(bool value) { SetAutoDeclineRecurringRequests(value); return *this;} /** *

The resource's ability to automatically decline any conflicting requests.

*/ inline bool GetAutoDeclineConflictingRequests() const{ return m_autoDeclineConflictingRequests; } /** *

The resource's ability to automatically decline any conflicting requests.

*/ inline bool AutoDeclineConflictingRequestsHasBeenSet() const { return m_autoDeclineConflictingRequestsHasBeenSet; } /** *

The resource's ability to automatically decline any conflicting requests.

*/ inline void SetAutoDeclineConflictingRequests(bool value) { m_autoDeclineConflictingRequestsHasBeenSet = true; m_autoDeclineConflictingRequests = value; } /** *

The resource's ability to automatically decline any conflicting requests.

*/ inline BookingOptions& WithAutoDeclineConflictingRequests(bool value) { SetAutoDeclineConflictingRequests(value); return *this;} private: bool m_autoAcceptRequests; bool m_autoAcceptRequestsHasBeenSet = false; bool m_autoDeclineRecurringRequests; bool m_autoDeclineRecurringRequestsHasBeenSet = false; bool m_autoDeclineConflictingRequests; bool m_autoDeclineConflictingRequestsHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws