AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CacheBehaviorPerPath.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/BehaviorEnum.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 Lightsail
23{
24namespace Model
25{
26
41 {
42 public:
43 AWS_LIGHTSAIL_API CacheBehaviorPerPath();
46 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
69 inline const Aws::String& GetPath() const{ return m_path; }
70 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
71 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
72 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
73 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
74 inline CacheBehaviorPerPath& WithPath(const Aws::String& value) { SetPath(value); return *this;}
75 inline CacheBehaviorPerPath& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
76 inline CacheBehaviorPerPath& WithPath(const char* value) { SetPath(value); return *this;}
78
80
87 inline const BehaviorEnum& GetBehavior() const{ return m_behavior; }
88 inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
89 inline void SetBehavior(const BehaviorEnum& value) { m_behaviorHasBeenSet = true; m_behavior = value; }
90 inline void SetBehavior(BehaviorEnum&& value) { m_behaviorHasBeenSet = true; m_behavior = std::move(value); }
91 inline CacheBehaviorPerPath& WithBehavior(const BehaviorEnum& value) { SetBehavior(value); return *this;}
92 inline CacheBehaviorPerPath& WithBehavior(BehaviorEnum&& value) { SetBehavior(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_path;
97 bool m_pathHasBeenSet = false;
98
99 BehaviorEnum m_behavior;
100 bool m_behaviorHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Lightsail
105} // namespace Aws
AWS_LIGHTSAIL_API CacheBehaviorPerPath(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API CacheBehaviorPerPath & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
CacheBehaviorPerPath & WithPath(const char *value)
CacheBehaviorPerPath & WithPath(const Aws::String &value)
void SetBehavior(const BehaviorEnum &value)
CacheBehaviorPerPath & WithPath(Aws::String &&value)
CacheBehaviorPerPath & WithBehavior(const BehaviorEnum &value)
CacheBehaviorPerPath & WithBehavior(BehaviorEnum &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue