AWS SDK for C++  1.9.107
AWS SDK for C++
CacheBehavior.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 Lightsail
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
55  inline const BehaviorEnum& GetBehavior() const{ return m_behavior; }
56 
71  inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
72 
87  inline void SetBehavior(const BehaviorEnum& value) { m_behaviorHasBeenSet = true; m_behavior = value; }
88 
103  inline void SetBehavior(BehaviorEnum&& value) { m_behaviorHasBeenSet = true; m_behavior = std::move(value); }
104 
119  inline CacheBehavior& WithBehavior(const BehaviorEnum& value) { SetBehavior(value); return *this;}
120 
135  inline CacheBehavior& WithBehavior(BehaviorEnum&& value) { SetBehavior(std::move(value)); return *this;}
136 
137  private:
138 
139  BehaviorEnum m_behavior;
140  bool m_behaviorHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace Lightsail
145 } // namespace Aws
Aws::Lightsail::Model::CacheBehavior::CacheBehavior
CacheBehavior(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::CacheBehavior::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
BehaviorEnum.h
Aws::Lightsail::Model::CacheBehavior::CacheBehavior
CacheBehavior()
Aws::Lightsail::Model::CacheBehavior::SetBehavior
void SetBehavior(BehaviorEnum &&value)
Definition: CacheBehavior.h:103
Aws::Lightsail::Model::CacheBehavior::operator=
CacheBehavior & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::CacheBehavior::SetBehavior
void SetBehavior(const BehaviorEnum &value)
Definition: CacheBehavior.h:87
Aws::Lightsail::Model::CacheBehavior::GetBehavior
const BehaviorEnum & GetBehavior() const
Definition: CacheBehavior.h:55
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CacheBehavior::BehaviorHasBeenSet
bool BehaviorHasBeenSet() const
Definition: CacheBehavior.h:71
Aws::Lightsail::Model::CacheBehavior::WithBehavior
CacheBehavior & WithBehavior(const BehaviorEnum &value)
Definition: CacheBehavior.h:119
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::BehaviorEnum
BehaviorEnum
Definition: BehaviorEnum.h:17
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CacheBehavior::WithBehavior
CacheBehavior & WithBehavior(BehaviorEnum &&value)
Definition: CacheBehavior.h:135
Aws::Lightsail::Model::CacheBehavior
Definition: CacheBehavior.h:33