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

An exception for attempting to schedule a domain action during an unavailable * time slot.

See Also:

AWS * API Reference

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

Alternate time slots during which OpenSearch Service has available capacity * to schedule a domain action.

*/ inline const Aws::Vector& GetSlotSuggestions() const{ return m_slotSuggestions; } /** *

Alternate time slots during which OpenSearch Service has available capacity * to schedule a domain action.

*/ inline bool SlotSuggestionsHasBeenSet() const { return m_slotSuggestionsHasBeenSet; } /** *

Alternate time slots during which OpenSearch Service has available capacity * to schedule a domain action.

*/ inline void SetSlotSuggestions(const Aws::Vector& value) { m_slotSuggestionsHasBeenSet = true; m_slotSuggestions = value; } /** *

Alternate time slots during which OpenSearch Service has available capacity * to schedule a domain action.

*/ inline void SetSlotSuggestions(Aws::Vector&& value) { m_slotSuggestionsHasBeenSet = true; m_slotSuggestions = std::move(value); } /** *

Alternate time slots during which OpenSearch Service has available capacity * to schedule a domain action.

*/ inline SlotNotAvailableException& WithSlotSuggestions(const Aws::Vector& value) { SetSlotSuggestions(value); return *this;} /** *

Alternate time slots during which OpenSearch Service has available capacity * to schedule a domain action.

*/ inline SlotNotAvailableException& WithSlotSuggestions(Aws::Vector&& value) { SetSlotSuggestions(std::move(value)); return *this;} /** *

Alternate time slots during which OpenSearch Service has available capacity * to schedule a domain action.

*/ inline SlotNotAvailableException& AddSlotSuggestions(long long value) { m_slotSuggestionsHasBeenSet = true; m_slotSuggestions.push_back(value); return *this; } private: Aws::Vector m_slotSuggestions; bool m_slotSuggestionsHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws