/** * 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 Glacier { namespace Model { /** *

The definition for a provisioned capacity unit.

See Also:

AWS * API Reference

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

The ID that identifies the provisioned capacity unit.

*/ inline const Aws::String& GetCapacityId() const{ return m_capacityId; } /** *

The ID that identifies the provisioned capacity unit.

*/ inline bool CapacityIdHasBeenSet() const { return m_capacityIdHasBeenSet; } /** *

The ID that identifies the provisioned capacity unit.

*/ inline void SetCapacityId(const Aws::String& value) { m_capacityIdHasBeenSet = true; m_capacityId = value; } /** *

The ID that identifies the provisioned capacity unit.

*/ inline void SetCapacityId(Aws::String&& value) { m_capacityIdHasBeenSet = true; m_capacityId = std::move(value); } /** *

The ID that identifies the provisioned capacity unit.

*/ inline void SetCapacityId(const char* value) { m_capacityIdHasBeenSet = true; m_capacityId.assign(value); } /** *

The ID that identifies the provisioned capacity unit.

*/ inline ProvisionedCapacityDescription& WithCapacityId(const Aws::String& value) { SetCapacityId(value); return *this;} /** *

The ID that identifies the provisioned capacity unit.

*/ inline ProvisionedCapacityDescription& WithCapacityId(Aws::String&& value) { SetCapacityId(std::move(value)); return *this;} /** *

The ID that identifies the provisioned capacity unit.

*/ inline ProvisionedCapacityDescription& WithCapacityId(const char* value) { SetCapacityId(value); return *this;} /** *

The date that the provisioned capacity unit was purchased, in Universal * Coordinated Time (UTC).

*/ inline const Aws::String& GetStartDate() const{ return m_startDate; } /** *

The date that the provisioned capacity unit was purchased, in Universal * Coordinated Time (UTC).

*/ inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; } /** *

The date that the provisioned capacity unit was purchased, in Universal * Coordinated Time (UTC).

*/ inline void SetStartDate(const Aws::String& value) { m_startDateHasBeenSet = true; m_startDate = value; } /** *

The date that the provisioned capacity unit was purchased, in Universal * Coordinated Time (UTC).

*/ inline void SetStartDate(Aws::String&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); } /** *

The date that the provisioned capacity unit was purchased, in Universal * Coordinated Time (UTC).

*/ inline void SetStartDate(const char* value) { m_startDateHasBeenSet = true; m_startDate.assign(value); } /** *

The date that the provisioned capacity unit was purchased, in Universal * Coordinated Time (UTC).

*/ inline ProvisionedCapacityDescription& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;} /** *

The date that the provisioned capacity unit was purchased, in Universal * Coordinated Time (UTC).

*/ inline ProvisionedCapacityDescription& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;} /** *

The date that the provisioned capacity unit was purchased, in Universal * Coordinated Time (UTC).

*/ inline ProvisionedCapacityDescription& WithStartDate(const char* value) { SetStartDate(value); return *this;} /** *

The date that the provisioned capacity unit expires, in Universal Coordinated * Time (UTC).

*/ inline const Aws::String& GetExpirationDate() const{ return m_expirationDate; } /** *

The date that the provisioned capacity unit expires, in Universal Coordinated * Time (UTC).

*/ inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; } /** *

The date that the provisioned capacity unit expires, in Universal Coordinated * Time (UTC).

*/ inline void SetExpirationDate(const Aws::String& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; } /** *

The date that the provisioned capacity unit expires, in Universal Coordinated * Time (UTC).

*/ inline void SetExpirationDate(Aws::String&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); } /** *

The date that the provisioned capacity unit expires, in Universal Coordinated * Time (UTC).

*/ inline void SetExpirationDate(const char* value) { m_expirationDateHasBeenSet = true; m_expirationDate.assign(value); } /** *

The date that the provisioned capacity unit expires, in Universal Coordinated * Time (UTC).

*/ inline ProvisionedCapacityDescription& WithExpirationDate(const Aws::String& value) { SetExpirationDate(value); return *this;} /** *

The date that the provisioned capacity unit expires, in Universal Coordinated * Time (UTC).

*/ inline ProvisionedCapacityDescription& WithExpirationDate(Aws::String&& value) { SetExpirationDate(std::move(value)); return *this;} /** *

The date that the provisioned capacity unit expires, in Universal Coordinated * Time (UTC).

*/ inline ProvisionedCapacityDescription& WithExpirationDate(const char* value) { SetExpirationDate(value); return *this;} private: Aws::String m_capacityId; bool m_capacityIdHasBeenSet = false; Aws::String m_startDate; bool m_startDateHasBeenSet = false; Aws::String m_expirationDate; bool m_expirationDateHasBeenSet = false; }; } // namespace Model } // namespace Glacier } // namespace Aws