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

Data retrieval policy.

See Also:

AWS * API Reference

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

The policy rule. Although this is a list type, currently there must be only * one rule, which contains a Strategy field and optionally a BytesPerHour * field.

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

The policy rule. Although this is a list type, currently there must be only * one rule, which contains a Strategy field and optionally a BytesPerHour * field.

*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *

The policy rule. Although this is a list type, currently there must be only * one rule, which contains a Strategy field and optionally a BytesPerHour * field.

*/ inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } /** *

The policy rule. Although this is a list type, currently there must be only * one rule, which contains a Strategy field and optionally a BytesPerHour * field.

*/ inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } /** *

The policy rule. Although this is a list type, currently there must be only * one rule, which contains a Strategy field and optionally a BytesPerHour * field.

*/ inline DataRetrievalPolicy& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

The policy rule. Although this is a list type, currently there must be only * one rule, which contains a Strategy field and optionally a BytesPerHour * field.

*/ inline DataRetrievalPolicy& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

The policy rule. Although this is a list type, currently there must be only * one rule, which contains a Strategy field and optionally a BytesPerHour * field.

*/ inline DataRetrievalPolicy& AddRules(const DataRetrievalRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *

The policy rule. Although this is a list type, currently there must be only * one rule, which contains a Strategy field and optionally a BytesPerHour * field.

*/ inline DataRetrievalPolicy& AddRules(DataRetrievalRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } private: Aws::Vector m_rules; bool m_rulesHasBeenSet = false; }; } // namespace Model } // namespace Glacier } // namespace Aws