AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRules(const Aws::Vector<DataRetrievalRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
50 inline void SetRules(Aws::Vector<DataRetrievalRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
51 inline DataRetrievalPolicy& WithRules(const Aws::Vector<DataRetrievalRule>& value) { SetRules(value); return *this;}
52 inline DataRetrievalPolicy& WithRules(Aws::Vector<DataRetrievalRule>&& value) { SetRules(std::move(value)); return *this;}
53 inline DataRetrievalPolicy& AddRules(const DataRetrievalRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
54 inline DataRetrievalPolicy& AddRules(DataRetrievalRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
56 private:
57
59 bool m_rulesHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace Glacier
64} // namespace Aws
DataRetrievalPolicy & AddRules(DataRetrievalRule &&value)
const Aws::Vector< DataRetrievalRule > & GetRules() const
DataRetrievalPolicy & WithRules(const Aws::Vector< DataRetrievalRule > &value)
void SetRules(const Aws::Vector< DataRetrievalRule > &value)
AWS_GLACIER_API DataRetrievalPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetRules(Aws::Vector< DataRetrievalRule > &&value)
DataRetrievalPolicy & WithRules(Aws::Vector< DataRetrievalRule > &&value)
AWS_GLACIER_API DataRetrievalPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
DataRetrievalPolicy & AddRules(const DataRetrievalRule &value)
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue