AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename PathT = Aws::String>
72 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
73 template<typename PathT = Aws::String>
74 CacheBehaviorPerPath& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
76
78
85 inline BehaviorEnum GetBehavior() const { return m_behavior; }
86 inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
87 inline void SetBehavior(BehaviorEnum value) { m_behaviorHasBeenSet = true; m_behavior = value; }
88 inline CacheBehaviorPerPath& WithBehavior(BehaviorEnum value) { SetBehavior(value); return *this;}
90 private:
91
92 Aws::String m_path;
93 bool m_pathHasBeenSet = false;
94
96 bool m_behaviorHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Lightsail
101} // namespace Aws
CacheBehaviorPerPath & WithPath(PathT &&value)
AWS_LIGHTSAIL_API CacheBehaviorPerPath(Aws::Utils::Json::JsonView jsonValue)
CacheBehaviorPerPath & WithBehavior(BehaviorEnum value)
AWS_LIGHTSAIL_API CacheBehaviorPerPath & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API CacheBehaviorPerPath()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue