AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CacheBehaviorPerPath.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9#include <aws/lightsail/model/BehaviorEnum.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lightsail {
21namespace Model {
22
37 public:
38 AWS_LIGHTSAIL_API CacheBehaviorPerPath() = default;
41 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
63 inline const Aws::String& GetPath() const { return m_path; }
64 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
65 template <typename PathT = Aws::String>
66 void SetPath(PathT&& value) {
67 m_pathHasBeenSet = true;
68 m_path = std::forward<PathT>(value);
69 }
70 template <typename PathT = Aws::String>
72 SetPath(std::forward<PathT>(value));
73 return *this;
74 }
76
78
85 inline BehaviorEnum GetBehavior() const { return m_behavior; }
86 inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
87 inline void SetBehavior(BehaviorEnum value) {
88 m_behaviorHasBeenSet = true;
89 m_behavior = value;
90 }
92 SetBehavior(value);
93 return *this;
94 }
96 private:
97 Aws::String m_path;
98
100 bool m_pathHasBeenSet = false;
101 bool m_behaviorHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Lightsail
106} // 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