AWS SDK for C++  1.9.104
AWS SDK for C++
CacheSettings.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Lightsail
25 {
26 namespace Model
27 {
28 
39  {
40  public:
45 
46 
55  inline long long GetDefaultTTL() const{ return m_defaultTTL; }
56 
65  inline bool DefaultTTLHasBeenSet() const { return m_defaultTTLHasBeenSet; }
66 
75  inline void SetDefaultTTL(long long value) { m_defaultTTLHasBeenSet = true; m_defaultTTL = value; }
76 
85  inline CacheSettings& WithDefaultTTL(long long value) { SetDefaultTTL(value); return *this;}
86 
87 
95  inline long long GetMinimumTTL() const{ return m_minimumTTL; }
96 
104  inline bool MinimumTTLHasBeenSet() const { return m_minimumTTLHasBeenSet; }
105 
113  inline void SetMinimumTTL(long long value) { m_minimumTTLHasBeenSet = true; m_minimumTTL = value; }
114 
122  inline CacheSettings& WithMinimumTTL(long long value) { SetMinimumTTL(value); return *this;}
123 
124 
132  inline long long GetMaximumTTL() const{ return m_maximumTTL; }
133 
141  inline bool MaximumTTLHasBeenSet() const { return m_maximumTTLHasBeenSet; }
142 
150  inline void SetMaximumTTL(long long value) { m_maximumTTLHasBeenSet = true; m_maximumTTL = value; }
151 
159  inline CacheSettings& WithMaximumTTL(long long value) { SetMaximumTTL(value); return *this;}
160 
161 
177  inline const Aws::String& GetAllowedHTTPMethods() const{ return m_allowedHTTPMethods; }
178 
194  inline bool AllowedHTTPMethodsHasBeenSet() const { return m_allowedHTTPMethodsHasBeenSet; }
195 
211  inline void SetAllowedHTTPMethods(const Aws::String& value) { m_allowedHTTPMethodsHasBeenSet = true; m_allowedHTTPMethods = value; }
212 
228  inline void SetAllowedHTTPMethods(Aws::String&& value) { m_allowedHTTPMethodsHasBeenSet = true; m_allowedHTTPMethods = std::move(value); }
229 
245  inline void SetAllowedHTTPMethods(const char* value) { m_allowedHTTPMethodsHasBeenSet = true; m_allowedHTTPMethods.assign(value); }
246 
262  inline CacheSettings& WithAllowedHTTPMethods(const Aws::String& value) { SetAllowedHTTPMethods(value); return *this;}
263 
279  inline CacheSettings& WithAllowedHTTPMethods(Aws::String&& value) { SetAllowedHTTPMethods(std::move(value)); return *this;}
280 
296  inline CacheSettings& WithAllowedHTTPMethods(const char* value) { SetAllowedHTTPMethods(value); return *this;}
297 
298 
307  inline const Aws::String& GetCachedHTTPMethods() const{ return m_cachedHTTPMethods; }
308 
317  inline bool CachedHTTPMethodsHasBeenSet() const { return m_cachedHTTPMethodsHasBeenSet; }
318 
327  inline void SetCachedHTTPMethods(const Aws::String& value) { m_cachedHTTPMethodsHasBeenSet = true; m_cachedHTTPMethods = value; }
328 
337  inline void SetCachedHTTPMethods(Aws::String&& value) { m_cachedHTTPMethodsHasBeenSet = true; m_cachedHTTPMethods = std::move(value); }
338 
347  inline void SetCachedHTTPMethods(const char* value) { m_cachedHTTPMethodsHasBeenSet = true; m_cachedHTTPMethods.assign(value); }
348 
357  inline CacheSettings& WithCachedHTTPMethods(const Aws::String& value) { SetCachedHTTPMethods(value); return *this;}
358 
367  inline CacheSettings& WithCachedHTTPMethods(Aws::String&& value) { SetCachedHTTPMethods(std::move(value)); return *this;}
368 
377  inline CacheSettings& WithCachedHTTPMethods(const char* value) { SetCachedHTTPMethods(value); return *this;}
378 
379 
384  inline const CookieObject& GetForwardedCookies() const{ return m_forwardedCookies; }
385 
390  inline bool ForwardedCookiesHasBeenSet() const { return m_forwardedCookiesHasBeenSet; }
391 
396  inline void SetForwardedCookies(const CookieObject& value) { m_forwardedCookiesHasBeenSet = true; m_forwardedCookies = value; }
397 
402  inline void SetForwardedCookies(CookieObject&& value) { m_forwardedCookiesHasBeenSet = true; m_forwardedCookies = std::move(value); }
403 
408  inline CacheSettings& WithForwardedCookies(const CookieObject& value) { SetForwardedCookies(value); return *this;}
409 
414  inline CacheSettings& WithForwardedCookies(CookieObject&& value) { SetForwardedCookies(std::move(value)); return *this;}
415 
416 
421  inline const HeaderObject& GetForwardedHeaders() const{ return m_forwardedHeaders; }
422 
427  inline bool ForwardedHeadersHasBeenSet() const { return m_forwardedHeadersHasBeenSet; }
428 
433  inline void SetForwardedHeaders(const HeaderObject& value) { m_forwardedHeadersHasBeenSet = true; m_forwardedHeaders = value; }
434 
439  inline void SetForwardedHeaders(HeaderObject&& value) { m_forwardedHeadersHasBeenSet = true; m_forwardedHeaders = std::move(value); }
440 
445  inline CacheSettings& WithForwardedHeaders(const HeaderObject& value) { SetForwardedHeaders(value); return *this;}
446 
451  inline CacheSettings& WithForwardedHeaders(HeaderObject&& value) { SetForwardedHeaders(std::move(value)); return *this;}
452 
453 
458  inline const QueryStringObject& GetForwardedQueryStrings() const{ return m_forwardedQueryStrings; }
459 
464  inline bool ForwardedQueryStringsHasBeenSet() const { return m_forwardedQueryStringsHasBeenSet; }
465 
470  inline void SetForwardedQueryStrings(const QueryStringObject& value) { m_forwardedQueryStringsHasBeenSet = true; m_forwardedQueryStrings = value; }
471 
476  inline void SetForwardedQueryStrings(QueryStringObject&& value) { m_forwardedQueryStringsHasBeenSet = true; m_forwardedQueryStrings = std::move(value); }
477 
482  inline CacheSettings& WithForwardedQueryStrings(const QueryStringObject& value) { SetForwardedQueryStrings(value); return *this;}
483 
488  inline CacheSettings& WithForwardedQueryStrings(QueryStringObject&& value) { SetForwardedQueryStrings(std::move(value)); return *this;}
489 
490  private:
491 
492  long long m_defaultTTL;
493  bool m_defaultTTLHasBeenSet;
494 
495  long long m_minimumTTL;
496  bool m_minimumTTLHasBeenSet;
497 
498  long long m_maximumTTL;
499  bool m_maximumTTLHasBeenSet;
500 
501  Aws::String m_allowedHTTPMethods;
502  bool m_allowedHTTPMethodsHasBeenSet;
503 
504  Aws::String m_cachedHTTPMethods;
505  bool m_cachedHTTPMethodsHasBeenSet;
506 
507  CookieObject m_forwardedCookies;
508  bool m_forwardedCookiesHasBeenSet;
509 
510  HeaderObject m_forwardedHeaders;
511  bool m_forwardedHeadersHasBeenSet;
512 
513  QueryStringObject m_forwardedQueryStrings;
514  bool m_forwardedQueryStringsHasBeenSet;
515  };
516 
517 } // namespace Model
518 } // namespace Lightsail
519 } // namespace Aws
Aws::Lightsail::Model::CacheSettings::SetAllowedHTTPMethods
void SetAllowedHTTPMethods(const Aws::String &value)
Definition: CacheSettings.h:211
Aws::Lightsail::Model::CacheSettings::WithAllowedHTTPMethods
CacheSettings & WithAllowedHTTPMethods(const Aws::String &value)
Definition: CacheSettings.h:262
Aws::Lightsail::Model::CacheSettings::SetMaximumTTL
void SetMaximumTTL(long long value)
Definition: CacheSettings.h:150
Aws::Lightsail::Model::CacheSettings::WithCachedHTTPMethods
CacheSettings & WithCachedHTTPMethods(const char *value)
Definition: CacheSettings.h:377
Aws::Lightsail::Model::CacheSettings::operator=
CacheSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::CacheSettings::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::CacheSettings::SetForwardedCookies
void SetForwardedCookies(const CookieObject &value)
Definition: CacheSettings.h:396
Aws::Lightsail::Model::CacheSettings::SetForwardedQueryStrings
void SetForwardedQueryStrings(QueryStringObject &&value)
Definition: CacheSettings.h:476
Aws::Lightsail::Model::CacheSettings::CacheSettings
CacheSettings()
Aws::Lightsail::Model::CacheSettings::SetCachedHTTPMethods
void SetCachedHTTPMethods(const Aws::String &value)
Definition: CacheSettings.h:327
Aws::Lightsail::Model::CacheSettings::AllowedHTTPMethodsHasBeenSet
bool AllowedHTTPMethodsHasBeenSet() const
Definition: CacheSettings.h:194
Aws::Lightsail::Model::QueryStringObject
Definition: QueryStringObject.h:37
Aws::Lightsail::Model::CacheSettings::GetForwardedCookies
const CookieObject & GetForwardedCookies() const
Definition: CacheSettings.h:384
Aws::Lightsail::Model::CacheSettings::WithForwardedQueryStrings
CacheSettings & WithForwardedQueryStrings(QueryStringObject &&value)
Definition: CacheSettings.h:488
Aws::Lightsail::Model::CacheSettings::GetMaximumTTL
long long GetMaximumTTL() const
Definition: CacheSettings.h:132
Aws::Lightsail::Model::CacheSettings::WithForwardedCookies
CacheSettings & WithForwardedCookies(CookieObject &&value)
Definition: CacheSettings.h:414
Aws::Lightsail::Model::CacheSettings::SetForwardedHeaders
void SetForwardedHeaders(HeaderObject &&value)
Definition: CacheSettings.h:439
Aws::Lightsail::Model::CacheSettings::GetForwardedHeaders
const HeaderObject & GetForwardedHeaders() const
Definition: CacheSettings.h:421
QueryStringObject.h
Aws::Lightsail::Model::CacheSettings::SetAllowedHTTPMethods
void SetAllowedHTTPMethods(Aws::String &&value)
Definition: CacheSettings.h:228
Aws::Lightsail::Model::CacheSettings::SetForwardedQueryStrings
void SetForwardedQueryStrings(const QueryStringObject &value)
Definition: CacheSettings.h:470
Aws::Lightsail::Model::CacheSettings::MaximumTTLHasBeenSet
bool MaximumTTLHasBeenSet() const
Definition: CacheSettings.h:141
Aws::Lightsail::Model::CacheSettings::SetAllowedHTTPMethods
void SetAllowedHTTPMethods(const char *value)
Definition: CacheSettings.h:245
Aws::Lightsail::Model::CacheSettings::WithForwardedHeaders
CacheSettings & WithForwardedHeaders(const HeaderObject &value)
Definition: CacheSettings.h:445
Aws::Lightsail::Model::CacheSettings::WithForwardedCookies
CacheSettings & WithForwardedCookies(const CookieObject &value)
Definition: CacheSettings.h:408
Aws::Lightsail::Model::CacheSettings::ForwardedQueryStringsHasBeenSet
bool ForwardedQueryStringsHasBeenSet() const
Definition: CacheSettings.h:464
Aws::Lightsail::Model::CacheSettings::MinimumTTLHasBeenSet
bool MinimumTTLHasBeenSet() const
Definition: CacheSettings.h:104
Aws::Lightsail::Model::CacheSettings::SetCachedHTTPMethods
void SetCachedHTTPMethods(Aws::String &&value)
Definition: CacheSettings.h:337
Aws::Lightsail::Model::CacheSettings::CacheSettings
CacheSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::CacheSettings::WithMaximumTTL
CacheSettings & WithMaximumTTL(long long value)
Definition: CacheSettings.h:159
Aws::Lightsail::Model::HeaderObject
Definition: HeaderObject.h:42
Aws::Lightsail::Model::CacheSettings::GetDefaultTTL
long long GetDefaultTTL() const
Definition: CacheSettings.h:55
Aws::Lightsail::Model::CacheSettings::SetCachedHTTPMethods
void SetCachedHTTPMethods(const char *value)
Definition: CacheSettings.h:347
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::CacheSettings::ForwardedCookiesHasBeenSet
bool ForwardedCookiesHasBeenSet() const
Definition: CacheSettings.h:390
Aws::Lightsail::Model::CacheSettings::GetMinimumTTL
long long GetMinimumTTL() const
Definition: CacheSettings.h:95
Aws::Lightsail::Model::CacheSettings::GetForwardedQueryStrings
const QueryStringObject & GetForwardedQueryStrings() const
Definition: CacheSettings.h:458
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CacheSettings
Definition: CacheSettings.h:39
Aws::Lightsail::Model::CacheSettings::WithAllowedHTTPMethods
CacheSettings & WithAllowedHTTPMethods(Aws::String &&value)
Definition: CacheSettings.h:279
Aws::Lightsail::Model::CacheSettings::WithAllowedHTTPMethods
CacheSettings & WithAllowedHTTPMethods(const char *value)
Definition: CacheSettings.h:296
Aws::Lightsail::Model::CacheSettings::SetDefaultTTL
void SetDefaultTTL(long long value)
Definition: CacheSettings.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CacheSettings::SetMinimumTTL
void SetMinimumTTL(long long value)
Definition: CacheSettings.h:113
Aws::Lightsail::Model::CacheSettings::GetCachedHTTPMethods
const Aws::String & GetCachedHTTPMethods() const
Definition: CacheSettings.h:307
Aws::Lightsail::Model::CacheSettings::WithDefaultTTL
CacheSettings & WithDefaultTTL(long long value)
Definition: CacheSettings.h:85
HeaderObject.h
Aws::Lightsail::Model::CacheSettings::CachedHTTPMethodsHasBeenSet
bool CachedHTTPMethodsHasBeenSet() const
Definition: CacheSettings.h:317
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CacheSettings::SetForwardedHeaders
void SetForwardedHeaders(const HeaderObject &value)
Definition: CacheSettings.h:433
Aws::Lightsail::Model::CacheSettings::WithForwardedHeaders
CacheSettings & WithForwardedHeaders(HeaderObject &&value)
Definition: CacheSettings.h:451
Aws::Lightsail::Model::CacheSettings::GetAllowedHTTPMethods
const Aws::String & GetAllowedHTTPMethods() const
Definition: CacheSettings.h:177
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CacheSettings::WithForwardedQueryStrings
CacheSettings & WithForwardedQueryStrings(const QueryStringObject &value)
Definition: CacheSettings.h:482
Aws::Lightsail::Model::CacheSettings::WithCachedHTTPMethods
CacheSettings & WithCachedHTTPMethods(Aws::String &&value)
Definition: CacheSettings.h:367
Aws::Lightsail::Model::CacheSettings::WithCachedHTTPMethods
CacheSettings & WithCachedHTTPMethods(const Aws::String &value)
Definition: CacheSettings.h:357
Aws::Lightsail::Model::CacheSettings::WithMinimumTTL
CacheSettings & WithMinimumTTL(long long value)
Definition: CacheSettings.h:122
Aws::Lightsail::Model::CacheSettings::SetForwardedCookies
void SetForwardedCookies(CookieObject &&value)
Definition: CacheSettings.h:402
Aws::Lightsail::Model::CacheSettings::ForwardedHeadersHasBeenSet
bool ForwardedHeadersHasBeenSet() const
Definition: CacheSettings.h:427
Aws::Lightsail::Model::CacheSettings::DefaultTTLHasBeenSet
bool DefaultTTLHasBeenSet() const
Definition: CacheSettings.h:65