AWS SDK for C++  1.9.14
AWS SDK for C++
CloudFrontOriginAccessIdentity.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudFront
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
45  inline const Aws::String& GetId() const{ return m_id; }
46 
51  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 
57  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
58 
63  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 
69  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
70 
75  inline CloudFrontOriginAccessIdentity& WithId(const Aws::String& value) { SetId(value); return *this;}
76 
81  inline CloudFrontOriginAccessIdentity& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
82 
87  inline CloudFrontOriginAccessIdentity& WithId(const char* value) { SetId(value); return *this;}
88 
89 
95  inline const Aws::String& GetS3CanonicalUserId() const{ return m_s3CanonicalUserId; }
96 
102  inline bool S3CanonicalUserIdHasBeenSet() const { return m_s3CanonicalUserIdHasBeenSet; }
103 
109  inline void SetS3CanonicalUserId(const Aws::String& value) { m_s3CanonicalUserIdHasBeenSet = true; m_s3CanonicalUserId = value; }
110 
116  inline void SetS3CanonicalUserId(Aws::String&& value) { m_s3CanonicalUserIdHasBeenSet = true; m_s3CanonicalUserId = std::move(value); }
117 
123  inline void SetS3CanonicalUserId(const char* value) { m_s3CanonicalUserIdHasBeenSet = true; m_s3CanonicalUserId.assign(value); }
124 
130  inline CloudFrontOriginAccessIdentity& WithS3CanonicalUserId(const Aws::String& value) { SetS3CanonicalUserId(value); return *this;}
131 
137  inline CloudFrontOriginAccessIdentity& WithS3CanonicalUserId(Aws::String&& value) { SetS3CanonicalUserId(std::move(value)); return *this;}
138 
144  inline CloudFrontOriginAccessIdentity& WithS3CanonicalUserId(const char* value) { SetS3CanonicalUserId(value); return *this;}
145 
146 
150  inline const CloudFrontOriginAccessIdentityConfig& GetCloudFrontOriginAccessIdentityConfig() const{ return m_cloudFrontOriginAccessIdentityConfig; }
151 
155  inline bool CloudFrontOriginAccessIdentityConfigHasBeenSet() const { return m_cloudFrontOriginAccessIdentityConfigHasBeenSet; }
156 
160  inline void SetCloudFrontOriginAccessIdentityConfig(const CloudFrontOriginAccessIdentityConfig& value) { m_cloudFrontOriginAccessIdentityConfigHasBeenSet = true; m_cloudFrontOriginAccessIdentityConfig = value; }
161 
165  inline void SetCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig&& value) { m_cloudFrontOriginAccessIdentityConfigHasBeenSet = true; m_cloudFrontOriginAccessIdentityConfig = std::move(value); }
166 
170  inline CloudFrontOriginAccessIdentity& WithCloudFrontOriginAccessIdentityConfig(const CloudFrontOriginAccessIdentityConfig& value) { SetCloudFrontOriginAccessIdentityConfig(value); return *this;}
171 
175  inline CloudFrontOriginAccessIdentity& WithCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig&& value) { SetCloudFrontOriginAccessIdentityConfig(std::move(value)); return *this;}
176 
177  private:
178 
179  Aws::String m_id;
180  bool m_idHasBeenSet;
181 
182  Aws::String m_s3CanonicalUserId;
183  bool m_s3CanonicalUserIdHasBeenSet;
184 
185  CloudFrontOriginAccessIdentityConfig m_cloudFrontOriginAccessIdentityConfig;
186  bool m_cloudFrontOriginAccessIdentityConfigHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace CloudFront
191 } // namespace Aws
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::SetId
void SetId(const char *value)
Definition: CloudFrontOriginAccessIdentity.h:69
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::CloudFrontOriginAccessIdentity
CloudFrontOriginAccessIdentity()
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::IdHasBeenSet
bool IdHasBeenSet() const
Definition: CloudFrontOriginAccessIdentity.h:51
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::WithS3CanonicalUserId
CloudFrontOriginAccessIdentity & WithS3CanonicalUserId(const Aws::String &value)
Definition: CloudFrontOriginAccessIdentity.h:130
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::GetId
const Aws::String & GetId() const
Definition: CloudFrontOriginAccessIdentity.h:45
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::SetS3CanonicalUserId
void SetS3CanonicalUserId(Aws::String &&value)
Definition: CloudFrontOriginAccessIdentity.h:116
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::WithS3CanonicalUserId
CloudFrontOriginAccessIdentity & WithS3CanonicalUserId(const char *value)
Definition: CloudFrontOriginAccessIdentity.h:144
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::S3CanonicalUserIdHasBeenSet
bool S3CanonicalUserIdHasBeenSet() const
Definition: CloudFrontOriginAccessIdentity.h:102
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::CloudFrontOriginAccessIdentityConfigHasBeenSet
bool CloudFrontOriginAccessIdentityConfigHasBeenSet() const
Definition: CloudFrontOriginAccessIdentity.h:155
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::WithId
CloudFrontOriginAccessIdentity & WithId(const char *value)
Definition: CloudFrontOriginAccessIdentity.h:87
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::SetId
void SetId(const Aws::String &value)
Definition: CloudFrontOriginAccessIdentity.h:57
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::WithId
CloudFrontOriginAccessIdentity & WithId(const Aws::String &value)
Definition: CloudFrontOriginAccessIdentity.h:75
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::SetS3CanonicalUserId
void SetS3CanonicalUserId(const Aws::String &value)
Definition: CloudFrontOriginAccessIdentity.h:109
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::SetCloudFrontOriginAccessIdentityConfig
void SetCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig &&value)
Definition: CloudFrontOriginAccessIdentity.h:165
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::operator=
CloudFrontOriginAccessIdentity & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::CloudFrontOriginAccessIdentity
CloudFrontOriginAccessIdentity(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CloudFrontOriginAccessIdentityConfig
Definition: CloudFrontOriginAccessIdentityConfig.h:33
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::WithCloudFrontOriginAccessIdentityConfig
CloudFrontOriginAccessIdentity & WithCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig &&value)
Definition: CloudFrontOriginAccessIdentity.h:175
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::SetS3CanonicalUserId
void SetS3CanonicalUserId(const char *value)
Definition: CloudFrontOriginAccessIdentity.h:123
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::SetCloudFrontOriginAccessIdentityConfig
void SetCloudFrontOriginAccessIdentityConfig(const CloudFrontOriginAccessIdentityConfig &value)
Definition: CloudFrontOriginAccessIdentity.h:160
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity
Definition: CloudFrontOriginAccessIdentity.h:32
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::SetId
void SetId(Aws::String &&value)
Definition: CloudFrontOriginAccessIdentity.h:63
CloudFrontOriginAccessIdentityConfig.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::GetS3CanonicalUserId
const Aws::String & GetS3CanonicalUserId() const
Definition: CloudFrontOriginAccessIdentity.h:95
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::WithS3CanonicalUserId
CloudFrontOriginAccessIdentity & WithS3CanonicalUserId(Aws::String &&value)
Definition: CloudFrontOriginAccessIdentity.h:137
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::WithCloudFrontOriginAccessIdentityConfig
CloudFrontOriginAccessIdentity & WithCloudFrontOriginAccessIdentityConfig(const CloudFrontOriginAccessIdentityConfig &value)
Definition: CloudFrontOriginAccessIdentity.h:170
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::WithId
CloudFrontOriginAccessIdentity & WithId(Aws::String &&value)
Definition: CloudFrontOriginAccessIdentity.h:81
Aws::CloudFront::Model::CloudFrontOriginAccessIdentity::GetCloudFrontOriginAccessIdentityConfig
const CloudFrontOriginAccessIdentityConfig & GetCloudFrontOriginAccessIdentityConfig() const
Definition: CloudFrontOriginAccessIdentity.h:150