AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
DataRetrievalRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glacier/Glacier_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Glacier {
20namespace Model {
21
28 public:
29 AWS_GLACIER_API DataRetrievalRule() = default;
32 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetStrategy() const { return m_strategy; }
40 inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
41 template <typename StrategyT = Aws::String>
42 void SetStrategy(StrategyT&& value) {
43 m_strategyHasBeenSet = true;
44 m_strategy = std::forward<StrategyT>(value);
45 }
46 template <typename StrategyT = Aws::String>
47 DataRetrievalRule& WithStrategy(StrategyT&& value) {
48 SetStrategy(std::forward<StrategyT>(value));
49 return *this;
50 }
52
54
60 inline long long GetBytesPerHour() const { return m_bytesPerHour; }
61 inline bool BytesPerHourHasBeenSet() const { return m_bytesPerHourHasBeenSet; }
62 inline void SetBytesPerHour(long long value) {
63 m_bytesPerHourHasBeenSet = true;
64 m_bytesPerHour = value;
65 }
66 inline DataRetrievalRule& WithBytesPerHour(long long value) {
67 SetBytesPerHour(value);
68 return *this;
69 }
71 private:
72 Aws::String m_strategy;
73 bool m_strategyHasBeenSet = false;
74
75 long long m_bytesPerHour{0};
76 bool m_bytesPerHourHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Glacier
81} // namespace Aws
const Aws::String & GetStrategy() const
DataRetrievalRule & WithStrategy(StrategyT &&value)
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLACIER_API DataRetrievalRule()=default
DataRetrievalRule & WithBytesPerHour(long long value)
AWS_GLACIER_API DataRetrievalRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLACIER_API DataRetrievalRule(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue