/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the submission time of a single allocation request for a capacity
* reservation and the most recent status of the attempted
* allocation.See Also:
AWS
* API Reference
The status of the capacity allocation.
*/ inline const CapacityAllocationStatus& GetStatus() const{ return m_status; } /** *The status of the capacity allocation.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the capacity allocation.
*/ inline void SetStatus(const CapacityAllocationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the capacity allocation.
*/ inline void SetStatus(CapacityAllocationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the capacity allocation.
*/ inline CapacityAllocation& WithStatus(const CapacityAllocationStatus& value) { SetStatus(value); return *this;} /** *The status of the capacity allocation.
*/ inline CapacityAllocation& WithStatus(CapacityAllocationStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The status message of the capacity allocation.
*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *The status message of the capacity allocation.
*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *The status message of the capacity allocation.
*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *The status message of the capacity allocation.
*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *The status message of the capacity allocation.
*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *The status message of the capacity allocation.
*/ inline CapacityAllocation& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *The status message of the capacity allocation.
*/ inline CapacityAllocation& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *The status message of the capacity allocation.
*/ inline CapacityAllocation& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *The time when the capacity allocation was requested.
*/ inline const Aws::Utils::DateTime& GetRequestTime() const{ return m_requestTime; } /** *The time when the capacity allocation was requested.
*/ inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; } /** *The time when the capacity allocation was requested.
*/ inline void SetRequestTime(const Aws::Utils::DateTime& value) { m_requestTimeHasBeenSet = true; m_requestTime = value; } /** *The time when the capacity allocation was requested.
*/ inline void SetRequestTime(Aws::Utils::DateTime&& value) { m_requestTimeHasBeenSet = true; m_requestTime = std::move(value); } /** *The time when the capacity allocation was requested.
*/ inline CapacityAllocation& WithRequestTime(const Aws::Utils::DateTime& value) { SetRequestTime(value); return *this;} /** *The time when the capacity allocation was requested.
*/ inline CapacityAllocation& WithRequestTime(Aws::Utils::DateTime&& value) { SetRequestTime(std::move(value)); return *this;} /** *The time when the capacity allocation request was completed.
*/ inline const Aws::Utils::DateTime& GetRequestCompletionTime() const{ return m_requestCompletionTime; } /** *The time when the capacity allocation request was completed.
*/ inline bool RequestCompletionTimeHasBeenSet() const { return m_requestCompletionTimeHasBeenSet; } /** *The time when the capacity allocation request was completed.
*/ inline void SetRequestCompletionTime(const Aws::Utils::DateTime& value) { m_requestCompletionTimeHasBeenSet = true; m_requestCompletionTime = value; } /** *The time when the capacity allocation request was completed.
*/ inline void SetRequestCompletionTime(Aws::Utils::DateTime&& value) { m_requestCompletionTimeHasBeenSet = true; m_requestCompletionTime = std::move(value); } /** *The time when the capacity allocation request was completed.
*/ inline CapacityAllocation& WithRequestCompletionTime(const Aws::Utils::DateTime& value) { SetRequestCompletionTime(value); return *this;} /** *The time when the capacity allocation request was completed.
*/ inline CapacityAllocation& WithRequestCompletionTime(Aws::Utils::DateTime&& value) { SetRequestCompletionTime(std::move(value)); return *this;} private: CapacityAllocationStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::Utils::DateTime m_requestTime; bool m_requestTimeHasBeenSet = false; Aws::Utils::DateTime m_requestCompletionTime; bool m_requestCompletionTimeHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws