AWS SDK for C++  1.9.104
AWS SDK for C++
DataRetrievalPolicy.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Glacier
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
46  inline const Aws::Vector<DataRetrievalRule>& GetRules() const{ return m_rules; }
47 
53  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
54 
60  inline void SetRules(const Aws::Vector<DataRetrievalRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
61 
67  inline void SetRules(Aws::Vector<DataRetrievalRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
68 
74  inline DataRetrievalPolicy& WithRules(const Aws::Vector<DataRetrievalRule>& value) { SetRules(value); return *this;}
75 
81  inline DataRetrievalPolicy& WithRules(Aws::Vector<DataRetrievalRule>&& value) { SetRules(std::move(value)); return *this;}
82 
88  inline DataRetrievalPolicy& AddRules(const DataRetrievalRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
89 
95  inline DataRetrievalPolicy& AddRules(DataRetrievalRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
96 
97  private:
98 
100  bool m_rulesHasBeenSet;
101  };
102 
103 } // namespace Model
104 } // namespace Glacier
105 } // namespace Aws
Aws::Glacier::Model::DataRetrievalPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::DataRetrievalRule
Definition: DataRetrievalRule.h:32
DataRetrievalRule.h
Aws::Glacier::Model::DataRetrievalPolicy::operator=
DataRetrievalPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Glacier::Model::DataRetrievalPolicy::SetRules
void SetRules(Aws::Vector< DataRetrievalRule > &&value)
Definition: DataRetrievalPolicy.h:67
Aws::Glacier::Model::DataRetrievalPolicy::WithRules
DataRetrievalPolicy & WithRules(const Aws::Vector< DataRetrievalRule > &value)
Definition: DataRetrievalPolicy.h:74
AWSVector.h
Aws::Glacier::Model::DataRetrievalPolicy::SetRules
void SetRules(const Aws::Vector< DataRetrievalRule > &value)
Definition: DataRetrievalPolicy.h:60
Aws::Glacier::Model::DataRetrievalPolicy::WithRules
DataRetrievalPolicy & WithRules(Aws::Vector< DataRetrievalRule > &&value)
Definition: DataRetrievalPolicy.h:81
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::DataRetrievalPolicy::GetRules
const Aws::Vector< DataRetrievalRule > & GetRules() const
Definition: DataRetrievalPolicy.h:46
Aws::Glacier::Model::DataRetrievalPolicy
Definition: DataRetrievalPolicy.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Glacier::Model::DataRetrievalPolicy::AddRules
DataRetrievalPolicy & AddRules(DataRetrievalRule &&value)
Definition: DataRetrievalPolicy.h:95
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::DataRetrievalPolicy::DataRetrievalPolicy
DataRetrievalPolicy()
Aws::Glacier::Model::DataRetrievalPolicy::DataRetrievalPolicy
DataRetrievalPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::DataRetrievalPolicy::AddRules
DataRetrievalPolicy & AddRules(const DataRetrievalRule &value)
Definition: DataRetrievalPolicy.h:88
Aws::Glacier::Model::DataRetrievalPolicy::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: DataRetrievalPolicy.h:53
Glacier_EXPORTS.h