AWS SDK for C++  1.9.104
AWS SDK for C++
CacheBehaviorPerPath.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 Lightsail
23 {
24 namespace Model
25 {
26 
42  {
43  public:
48 
49 
69  inline const Aws::String& GetPath() const{ return m_path; }
70 
90  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
91 
111  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
112 
132  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
133 
153  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
154 
174  inline CacheBehaviorPerPath& WithPath(const Aws::String& value) { SetPath(value); return *this;}
175 
195  inline CacheBehaviorPerPath& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
196 
216  inline CacheBehaviorPerPath& WithPath(const char* value) { SetPath(value); return *this;}
217 
218 
226  inline const BehaviorEnum& GetBehavior() const{ return m_behavior; }
227 
235  inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
236 
244  inline void SetBehavior(const BehaviorEnum& value) { m_behaviorHasBeenSet = true; m_behavior = value; }
245 
253  inline void SetBehavior(BehaviorEnum&& value) { m_behaviorHasBeenSet = true; m_behavior = std::move(value); }
254 
262  inline CacheBehaviorPerPath& WithBehavior(const BehaviorEnum& value) { SetBehavior(value); return *this;}
263 
271  inline CacheBehaviorPerPath& WithBehavior(BehaviorEnum&& value) { SetBehavior(std::move(value)); return *this;}
272 
273  private:
274 
275  Aws::String m_path;
276  bool m_pathHasBeenSet;
277 
278  BehaviorEnum m_behavior;
279  bool m_behaviorHasBeenSet;
280  };
281 
282 } // namespace Model
283 } // namespace Lightsail
284 } // namespace Aws
Aws::Lightsail::Model::CacheBehaviorPerPath::WithBehavior
CacheBehaviorPerPath & WithBehavior(const BehaviorEnum &value)
Definition: CacheBehaviorPerPath.h:262
Aws::Lightsail::Model::CacheBehaviorPerPath::WithPath
CacheBehaviorPerPath & WithPath(Aws::String &&value)
Definition: CacheBehaviorPerPath.h:195
Aws::Lightsail::Model::CacheBehaviorPerPath::WithPath
CacheBehaviorPerPath & WithPath(const Aws::String &value)
Definition: CacheBehaviorPerPath.h:174
Aws::Lightsail::Model::CacheBehaviorPerPath::SetPath
void SetPath(const Aws::String &value)
Definition: CacheBehaviorPerPath.h:111
Aws::Lightsail::Model::CacheBehaviorPerPath::GetBehavior
const BehaviorEnum & GetBehavior() const
Definition: CacheBehaviorPerPath.h:226
BehaviorEnum.h
Aws::Lightsail::Model::CacheBehaviorPerPath::PathHasBeenSet
bool PathHasBeenSet() const
Definition: CacheBehaviorPerPath.h:90
Aws::Lightsail::Model::CacheBehaviorPerPath::SetPath
void SetPath(Aws::String &&value)
Definition: CacheBehaviorPerPath.h:132
Aws::Lightsail::Model::CacheBehaviorPerPath::GetPath
const Aws::String & GetPath() const
Definition: CacheBehaviorPerPath.h:69
Aws::Lightsail::Model::CacheBehaviorPerPath::WithPath
CacheBehaviorPerPath & WithPath(const char *value)
Definition: CacheBehaviorPerPath.h:216
Aws::Lightsail::Model::CacheBehaviorPerPath::WithBehavior
CacheBehaviorPerPath & WithBehavior(BehaviorEnum &&value)
Definition: CacheBehaviorPerPath.h:271
Aws::Lightsail::Model::CacheBehaviorPerPath::operator=
CacheBehaviorPerPath & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::CacheBehaviorPerPath::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::CacheBehaviorPerPath::SetBehavior
void SetBehavior(BehaviorEnum &&value)
Definition: CacheBehaviorPerPath.h:253
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CacheBehaviorPerPath
Definition: CacheBehaviorPerPath.h:42
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::BehaviorEnum
BehaviorEnum
Definition: BehaviorEnum.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CacheBehaviorPerPath::SetPath
void SetPath(const char *value)
Definition: CacheBehaviorPerPath.h:153
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CacheBehaviorPerPath::CacheBehaviorPerPath
CacheBehaviorPerPath()
Aws::Lightsail::Model::CacheBehaviorPerPath::SetBehavior
void SetBehavior(const BehaviorEnum &value)
Definition: CacheBehaviorPerPath.h:244
Aws::Lightsail::Model::CacheBehaviorPerPath::CacheBehaviorPerPath
CacheBehaviorPerPath(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::CacheBehaviorPerPath::BehaviorHasBeenSet
bool BehaviorHasBeenSet() const
Definition: CacheBehaviorPerPath.h:235