AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DataRetrievalPolicy.h
1
6#pragma once
7#include <aws/glacier/Glacier_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glacier/model/DataRetrievalRule.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glacier
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GLACIER_API DataRetrievalPolicy() = default;
38 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::Vector<DataRetrievalRule>& GetRules() const { return m_rules; }
48 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
49 template<typename RulesT = Aws::Vector<DataRetrievalRule>>
50 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
51 template<typename RulesT = Aws::Vector<DataRetrievalRule>>
52 DataRetrievalPolicy& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
53 template<typename RulesT = DataRetrievalRule>
54 DataRetrievalPolicy& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
56 private:
57
59 bool m_rulesHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace Glacier
64} // namespace Aws
const Aws::Vector< DataRetrievalRule > & GetRules() const
AWS_GLACIER_API DataRetrievalPolicy()=default
AWS_GLACIER_API DataRetrievalPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_GLACIER_API DataRetrievalPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
DataRetrievalPolicy & AddRules(RulesT &&value)
DataRetrievalPolicy & WithRules(RulesT &&value)
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue