AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CacheSettings.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/CookieObject.h>
10#include <aws/lightsail/model/HeaderObject.h>
11#include <aws/lightsail/model/QueryStringObject.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_LIGHTSAIL_API CacheSettings();
42 AWS_LIGHTSAIL_API CacheSettings(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LIGHTSAIL_API CacheSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
56 inline long long GetDefaultTTL() const{ return m_defaultTTL; }
57 inline bool DefaultTTLHasBeenSet() const { return m_defaultTTLHasBeenSet; }
58 inline void SetDefaultTTL(long long value) { m_defaultTTLHasBeenSet = true; m_defaultTTL = value; }
59 inline CacheSettings& WithDefaultTTL(long long value) { SetDefaultTTL(value); return *this;}
61
63
70 inline long long GetMinimumTTL() const{ return m_minimumTTL; }
71 inline bool MinimumTTLHasBeenSet() const { return m_minimumTTLHasBeenSet; }
72 inline void SetMinimumTTL(long long value) { m_minimumTTLHasBeenSet = true; m_minimumTTL = value; }
73 inline CacheSettings& WithMinimumTTL(long long value) { SetMinimumTTL(value); return *this;}
75
77
84 inline long long GetMaximumTTL() const{ return m_maximumTTL; }
85 inline bool MaximumTTLHasBeenSet() const { return m_maximumTTLHasBeenSet; }
86 inline void SetMaximumTTL(long long value) { m_maximumTTLHasBeenSet = true; m_maximumTTL = value; }
87 inline CacheSettings& WithMaximumTTL(long long value) { SetMaximumTTL(value); return *this;}
89
91
106 inline const Aws::String& GetAllowedHTTPMethods() const{ return m_allowedHTTPMethods; }
107 inline bool AllowedHTTPMethodsHasBeenSet() const { return m_allowedHTTPMethodsHasBeenSet; }
108 inline void SetAllowedHTTPMethods(const Aws::String& value) { m_allowedHTTPMethodsHasBeenSet = true; m_allowedHTTPMethods = value; }
109 inline void SetAllowedHTTPMethods(Aws::String&& value) { m_allowedHTTPMethodsHasBeenSet = true; m_allowedHTTPMethods = std::move(value); }
110 inline void SetAllowedHTTPMethods(const char* value) { m_allowedHTTPMethodsHasBeenSet = true; m_allowedHTTPMethods.assign(value); }
111 inline CacheSettings& WithAllowedHTTPMethods(const Aws::String& value) { SetAllowedHTTPMethods(value); return *this;}
112 inline CacheSettings& WithAllowedHTTPMethods(Aws::String&& value) { SetAllowedHTTPMethods(std::move(value)); return *this;}
113 inline CacheSettings& WithAllowedHTTPMethods(const char* value) { SetAllowedHTTPMethods(value); return *this;}
115
117
125 inline const Aws::String& GetCachedHTTPMethods() const{ return m_cachedHTTPMethods; }
126 inline bool CachedHTTPMethodsHasBeenSet() const { return m_cachedHTTPMethodsHasBeenSet; }
127 inline void SetCachedHTTPMethods(const Aws::String& value) { m_cachedHTTPMethodsHasBeenSet = true; m_cachedHTTPMethods = value; }
128 inline void SetCachedHTTPMethods(Aws::String&& value) { m_cachedHTTPMethodsHasBeenSet = true; m_cachedHTTPMethods = std::move(value); }
129 inline void SetCachedHTTPMethods(const char* value) { m_cachedHTTPMethodsHasBeenSet = true; m_cachedHTTPMethods.assign(value); }
130 inline CacheSettings& WithCachedHTTPMethods(const Aws::String& value) { SetCachedHTTPMethods(value); return *this;}
131 inline CacheSettings& WithCachedHTTPMethods(Aws::String&& value) { SetCachedHTTPMethods(std::move(value)); return *this;}
132 inline CacheSettings& WithCachedHTTPMethods(const char* value) { SetCachedHTTPMethods(value); return *this;}
134
136
140 inline const CookieObject& GetForwardedCookies() const{ return m_forwardedCookies; }
141 inline bool ForwardedCookiesHasBeenSet() const { return m_forwardedCookiesHasBeenSet; }
142 inline void SetForwardedCookies(const CookieObject& value) { m_forwardedCookiesHasBeenSet = true; m_forwardedCookies = value; }
143 inline void SetForwardedCookies(CookieObject&& value) { m_forwardedCookiesHasBeenSet = true; m_forwardedCookies = std::move(value); }
144 inline CacheSettings& WithForwardedCookies(const CookieObject& value) { SetForwardedCookies(value); return *this;}
145 inline CacheSettings& WithForwardedCookies(CookieObject&& value) { SetForwardedCookies(std::move(value)); return *this;}
147
149
153 inline const HeaderObject& GetForwardedHeaders() const{ return m_forwardedHeaders; }
154 inline bool ForwardedHeadersHasBeenSet() const { return m_forwardedHeadersHasBeenSet; }
155 inline void SetForwardedHeaders(const HeaderObject& value) { m_forwardedHeadersHasBeenSet = true; m_forwardedHeaders = value; }
156 inline void SetForwardedHeaders(HeaderObject&& value) { m_forwardedHeadersHasBeenSet = true; m_forwardedHeaders = std::move(value); }
157 inline CacheSettings& WithForwardedHeaders(const HeaderObject& value) { SetForwardedHeaders(value); return *this;}
158 inline CacheSettings& WithForwardedHeaders(HeaderObject&& value) { SetForwardedHeaders(std::move(value)); return *this;}
160
162
166 inline const QueryStringObject& GetForwardedQueryStrings() const{ return m_forwardedQueryStrings; }
167 inline bool ForwardedQueryStringsHasBeenSet() const { return m_forwardedQueryStringsHasBeenSet; }
168 inline void SetForwardedQueryStrings(const QueryStringObject& value) { m_forwardedQueryStringsHasBeenSet = true; m_forwardedQueryStrings = value; }
169 inline void SetForwardedQueryStrings(QueryStringObject&& value) { m_forwardedQueryStringsHasBeenSet = true; m_forwardedQueryStrings = std::move(value); }
171 inline CacheSettings& WithForwardedQueryStrings(QueryStringObject&& value) { SetForwardedQueryStrings(std::move(value)); return *this;}
173 private:
174
175 long long m_defaultTTL;
176 bool m_defaultTTLHasBeenSet = false;
177
178 long long m_minimumTTL;
179 bool m_minimumTTLHasBeenSet = false;
180
181 long long m_maximumTTL;
182 bool m_maximumTTLHasBeenSet = false;
183
184 Aws::String m_allowedHTTPMethods;
185 bool m_allowedHTTPMethodsHasBeenSet = false;
186
187 Aws::String m_cachedHTTPMethods;
188 bool m_cachedHTTPMethodsHasBeenSet = false;
189
190 CookieObject m_forwardedCookies;
191 bool m_forwardedCookiesHasBeenSet = false;
192
193 HeaderObject m_forwardedHeaders;
194 bool m_forwardedHeadersHasBeenSet = false;
195
196 QueryStringObject m_forwardedQueryStrings;
197 bool m_forwardedQueryStringsHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace Lightsail
202} // namespace Aws
void SetForwardedCookies(const CookieObject &value)
CacheSettings & WithCachedHTTPMethods(const Aws::String &value)
CacheSettings & WithAllowedHTTPMethods(Aws::String &&value)
void SetForwardedHeaders(HeaderObject &&value)
void SetCachedHTTPMethods(const char *value)
void SetCachedHTTPMethods(Aws::String &&value)
void SetDefaultTTL(long long value)
void SetMaximumTTL(long long value)
const QueryStringObject & GetForwardedQueryStrings() const
void SetForwardedQueryStrings(QueryStringObject &&value)
void SetMinimumTTL(long long value)
CacheSettings & WithMinimumTTL(long long value)
const Aws::String & GetCachedHTTPMethods() const
CacheSettings & WithForwardedCookies(const CookieObject &value)
CacheSettings & WithForwardedCookies(CookieObject &&value)
CacheSettings & WithForwardedHeaders(const HeaderObject &value)
CacheSettings & WithCachedHTTPMethods(Aws::String &&value)
CacheSettings & WithForwardedQueryStrings(const QueryStringObject &value)
void SetForwardedHeaders(const HeaderObject &value)
CacheSettings & WithForwardedQueryStrings(QueryStringObject &&value)
void SetCachedHTTPMethods(const Aws::String &value)
CacheSettings & WithCachedHTTPMethods(const char *value)
CacheSettings & WithDefaultTTL(long long value)
const Aws::String & GetAllowedHTTPMethods() const
CacheSettings & WithForwardedHeaders(HeaderObject &&value)
CacheSettings & WithMaximumTTL(long long value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAllowedHTTPMethods(Aws::String &&value)
void SetAllowedHTTPMethods(const char *value)
void SetForwardedQueryStrings(const QueryStringObject &value)
void SetForwardedCookies(CookieObject &&value)
void SetAllowedHTTPMethods(const Aws::String &value)
CacheSettings & WithAllowedHTTPMethods(const char *value)
AWS_LIGHTSAIL_API CacheSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API CacheSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
CacheSettings & WithAllowedHTTPMethods(const Aws::String &value)
const CookieObject & GetForwardedCookies() const
const HeaderObject & GetForwardedHeaders() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue