AWS SDK for C++  1.9.18
AWS SDK for C++
S3OriginConfig.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace CloudFront
21 {
22 namespace Model
23 {
24 
34  {
35  public:
39 
40  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41 
42 
63  inline const Aws::String& GetOriginAccessIdentity() const{ return m_originAccessIdentity; }
64 
85  inline bool OriginAccessIdentityHasBeenSet() const { return m_originAccessIdentityHasBeenSet; }
86 
107  inline void SetOriginAccessIdentity(const Aws::String& value) { m_originAccessIdentityHasBeenSet = true; m_originAccessIdentity = value; }
108 
129  inline void SetOriginAccessIdentity(Aws::String&& value) { m_originAccessIdentityHasBeenSet = true; m_originAccessIdentity = std::move(value); }
130 
151  inline void SetOriginAccessIdentity(const char* value) { m_originAccessIdentityHasBeenSet = true; m_originAccessIdentity.assign(value); }
152 
173  inline S3OriginConfig& WithOriginAccessIdentity(const Aws::String& value) { SetOriginAccessIdentity(value); return *this;}
174 
195  inline S3OriginConfig& WithOriginAccessIdentity(Aws::String&& value) { SetOriginAccessIdentity(std::move(value)); return *this;}
196 
217  inline S3OriginConfig& WithOriginAccessIdentity(const char* value) { SetOriginAccessIdentity(value); return *this;}
218 
219  private:
220 
221  Aws::String m_originAccessIdentity;
222  bool m_originAccessIdentityHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace CloudFront
227 } // namespace Aws
Aws::CloudFront::Model::S3OriginConfig::operator=
S3OriginConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::S3OriginConfig::SetOriginAccessIdentity
void SetOriginAccessIdentity(const Aws::String &value)
Definition: S3OriginConfig.h:107
Aws::CloudFront::Model::S3OriginConfig
Definition: S3OriginConfig.h:34
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::S3OriginConfig::WithOriginAccessIdentity
S3OriginConfig & WithOriginAccessIdentity(Aws::String &&value)
Definition: S3OriginConfig.h:195
AWSString.h
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::S3OriginConfig::GetOriginAccessIdentity
const Aws::String & GetOriginAccessIdentity() const
Definition: S3OriginConfig.h:63
CloudFront_EXPORTS.h
Aws::CloudFront::Model::S3OriginConfig::WithOriginAccessIdentity
S3OriginConfig & WithOriginAccessIdentity(const Aws::String &value)
Definition: S3OriginConfig.h:173
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::S3OriginConfig::WithOriginAccessIdentity
S3OriginConfig & WithOriginAccessIdentity(const char *value)
Definition: S3OriginConfig.h:217
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::S3OriginConfig::S3OriginConfig
S3OriginConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::S3OriginConfig::SetOriginAccessIdentity
void SetOriginAccessIdentity(const char *value)
Definition: S3OriginConfig.h:151
Aws::CloudFront::Model::S3OriginConfig::S3OriginConfig
S3OriginConfig()
Aws::CloudFront::Model::S3OriginConfig::SetOriginAccessIdentity
void SetOriginAccessIdentity(Aws::String &&value)
Definition: S3OriginConfig.h:129
Aws::CloudFront::Model::S3OriginConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::S3OriginConfig::OriginAccessIdentityHasBeenSet
bool OriginAccessIdentityHasBeenSet() const
Definition: S3OriginConfig.h:85