AWS SDK for C++  1.9.104
AWS SDK for C++
DataRetrievalRule.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Glacier
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
44  inline const Aws::String& GetStrategy() const{ return m_strategy; }
45 
50  inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
51 
56  inline void SetStrategy(const Aws::String& value) { m_strategyHasBeenSet = true; m_strategy = value; }
57 
62  inline void SetStrategy(Aws::String&& value) { m_strategyHasBeenSet = true; m_strategy = std::move(value); }
63 
68  inline void SetStrategy(const char* value) { m_strategyHasBeenSet = true; m_strategy.assign(value); }
69 
74  inline DataRetrievalRule& WithStrategy(const Aws::String& value) { SetStrategy(value); return *this;}
75 
80  inline DataRetrievalRule& WithStrategy(Aws::String&& value) { SetStrategy(std::move(value)); return *this;}
81 
86  inline DataRetrievalRule& WithStrategy(const char* value) { SetStrategy(value); return *this;}
87 
88 
95  inline long long GetBytesPerHour() const{ return m_bytesPerHour; }
96 
103  inline bool BytesPerHourHasBeenSet() const { return m_bytesPerHourHasBeenSet; }
104 
111  inline void SetBytesPerHour(long long value) { m_bytesPerHourHasBeenSet = true; m_bytesPerHour = value; }
112 
119  inline DataRetrievalRule& WithBytesPerHour(long long value) { SetBytesPerHour(value); return *this;}
120 
121  private:
122 
123  Aws::String m_strategy;
124  bool m_strategyHasBeenSet;
125 
126  long long m_bytesPerHour;
127  bool m_bytesPerHourHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace Glacier
132 } // namespace Aws
Aws::Glacier::Model::DataRetrievalRule
Definition: DataRetrievalRule.h:32
Aws::Glacier::Model::DataRetrievalRule::WithStrategy
DataRetrievalRule & WithStrategy(const Aws::String &value)
Definition: DataRetrievalRule.h:74
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::DataRetrievalRule::SetStrategy
void SetStrategy(Aws::String &&value)
Definition: DataRetrievalRule.h:62
Aws::Glacier::Model::DataRetrievalRule::GetStrategy
const Aws::String & GetStrategy() const
Definition: DataRetrievalRule.h:44
Aws::Glacier::Model::DataRetrievalRule::StrategyHasBeenSet
bool StrategyHasBeenSet() const
Definition: DataRetrievalRule.h:50
Aws::Glacier::Model::DataRetrievalRule::SetStrategy
void SetStrategy(const char *value)
Definition: DataRetrievalRule.h:68
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Glacier::Model::DataRetrievalRule::BytesPerHourHasBeenSet
bool BytesPerHourHasBeenSet() const
Definition: DataRetrievalRule.h:103
Aws::Glacier::Model::DataRetrievalRule::DataRetrievalRule
DataRetrievalRule(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::DataRetrievalRule::operator=
DataRetrievalRule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::DataRetrievalRule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::DataRetrievalRule::WithStrategy
DataRetrievalRule & WithStrategy(const char *value)
Definition: DataRetrievalRule.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::DataRetrievalRule::WithStrategy
DataRetrievalRule & WithStrategy(Aws::String &&value)
Definition: DataRetrievalRule.h:80
Aws::Glacier::Model::DataRetrievalRule::SetBytesPerHour
void SetBytesPerHour(long long value)
Definition: DataRetrievalRule.h:111
Aws::Glacier::Model::DataRetrievalRule::SetStrategy
void SetStrategy(const Aws::String &value)
Definition: DataRetrievalRule.h:56
Aws::Glacier::Model::DataRetrievalRule::WithBytesPerHour
DataRetrievalRule & WithBytesPerHour(long long value)
Definition: DataRetrievalRule.h:119
Aws::Glacier::Model::DataRetrievalRule::GetBytesPerHour
long long GetBytesPerHour() const
Definition: DataRetrievalRule.h:95
Aws::Glacier::Model::DataRetrievalRule::DataRetrievalRule
DataRetrievalRule()
Glacier_EXPORTS.h