AWS SDK for C++  1.9.20
AWS SDK for C++
CreateCachePolicy2020_05_31Result.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlDocument;
22 } // namespace Xml
23 } // namespace Utils
24 namespace CloudFront
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const CachePolicy& GetCachePolicy() const{ return m_cachePolicy; }
40 
44  inline void SetCachePolicy(const CachePolicy& value) { m_cachePolicy = value; }
45 
49  inline void SetCachePolicy(CachePolicy&& value) { m_cachePolicy = std::move(value); }
50 
54  inline CreateCachePolicy2020_05_31Result& WithCachePolicy(const CachePolicy& value) { SetCachePolicy(value); return *this;}
55 
59  inline CreateCachePolicy2020_05_31Result& WithCachePolicy(CachePolicy&& value) { SetCachePolicy(std::move(value)); return *this;}
60 
61 
65  inline const Aws::String& GetLocation() const{ return m_location; }
66 
70  inline void SetLocation(const Aws::String& value) { m_location = value; }
71 
75  inline void SetLocation(Aws::String&& value) { m_location = std::move(value); }
76 
80  inline void SetLocation(const char* value) { m_location.assign(value); }
81 
85  inline CreateCachePolicy2020_05_31Result& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
86 
90  inline CreateCachePolicy2020_05_31Result& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
91 
95  inline CreateCachePolicy2020_05_31Result& WithLocation(const char* value) { SetLocation(value); return *this;}
96 
97 
101  inline const Aws::String& GetETag() const{ return m_eTag; }
102 
106  inline void SetETag(const Aws::String& value) { m_eTag = value; }
107 
111  inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); }
112 
116  inline void SetETag(const char* value) { m_eTag.assign(value); }
117 
121  inline CreateCachePolicy2020_05_31Result& WithETag(const Aws::String& value) { SetETag(value); return *this;}
122 
126  inline CreateCachePolicy2020_05_31Result& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
127 
131  inline CreateCachePolicy2020_05_31Result& WithETag(const char* value) { SetETag(value); return *this;}
132 
133  private:
134 
135  CachePolicy m_cachePolicy;
136 
137  Aws::String m_location;
138 
139  Aws::String m_eTag;
140  };
141 
142 } // namespace Model
143 } // namespace CloudFront
144 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::CreateCachePolicy2020_05_31Result
CreateCachePolicy2020_05_31Result(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::CreateCachePolicy2020_05_31Result
CreateCachePolicy2020_05_31Result()
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::SetCachePolicy
void SetCachePolicy(const CachePolicy &value)
Definition: CreateCachePolicy2020_05_31Result.h:44
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::WithCachePolicy
CreateCachePolicy2020_05_31Result & WithCachePolicy(CachePolicy &&value)
Definition: CreateCachePolicy2020_05_31Result.h:59
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::WithLocation
CreateCachePolicy2020_05_31Result & WithLocation(Aws::String &&value)
Definition: CreateCachePolicy2020_05_31Result.h:90
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::GetETag
const Aws::String & GetETag() const
Definition: CreateCachePolicy2020_05_31Result.h:101
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::SetETag
void SetETag(const char *value)
Definition: CreateCachePolicy2020_05_31Result.h:116
CachePolicy.h
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result
Definition: CreateCachePolicy2020_05_31Result.h:29
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::WithLocation
CreateCachePolicy2020_05_31Result & WithLocation(const Aws::String &value)
Definition: CreateCachePolicy2020_05_31Result.h:85
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::SetETag
void SetETag(Aws::String &&value)
Definition: CreateCachePolicy2020_05_31Result.h:111
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::GetLocation
const Aws::String & GetLocation() const
Definition: CreateCachePolicy2020_05_31Result.h:65
AWSString.h
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::GetCachePolicy
const CachePolicy & GetCachePolicy() const
Definition: CreateCachePolicy2020_05_31Result.h:39
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::SetLocation
void SetLocation(const char *value)
Definition: CreateCachePolicy2020_05_31Result.h:80
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::SetLocation
void SetLocation(const Aws::String &value)
Definition: CreateCachePolicy2020_05_31Result.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::WithLocation
CreateCachePolicy2020_05_31Result & WithLocation(const char *value)
Definition: CreateCachePolicy2020_05_31Result.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::SetETag
void SetETag(const Aws::String &value)
Definition: CreateCachePolicy2020_05_31Result.h:106
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::operator=
CreateCachePolicy2020_05_31Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::SetLocation
void SetLocation(Aws::String &&value)
Definition: CreateCachePolicy2020_05_31Result.h:75
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::WithETag
CreateCachePolicy2020_05_31Result & WithETag(Aws::String &&value)
Definition: CreateCachePolicy2020_05_31Result.h:126
Aws::CloudFront::Model::CachePolicy
Definition: CachePolicy.h:44
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::WithETag
CreateCachePolicy2020_05_31Result & WithETag(const char *value)
Definition: CreateCachePolicy2020_05_31Result.h:131
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::SetCachePolicy
void SetCachePolicy(CachePolicy &&value)
Definition: CreateCachePolicy2020_05_31Result.h:49
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::WithCachePolicy
CreateCachePolicy2020_05_31Result & WithCachePolicy(const CachePolicy &value)
Definition: CreateCachePolicy2020_05_31Result.h:54
Aws::CloudFront::Model::CreateCachePolicy2020_05_31Result::WithETag
CreateCachePolicy2020_05_31Result & WithETag(const Aws::String &value)
Definition: CreateCachePolicy2020_05_31Result.h:121