AWS SDK for C++  1.9.14
AWS SDK for C++
S3Origin.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 
33  {
34  public:
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
45  inline const Aws::String& GetDomainName() const{ return m_domainName; }
46 
50  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
51 
55  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
56 
60  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
61 
65  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
66 
70  inline S3Origin& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
71 
75  inline S3Origin& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
76 
80  inline S3Origin& WithDomainName(const char* value) { SetDomainName(value); return *this;}
81 
82 
98  inline const Aws::String& GetOriginAccessIdentity() const{ return m_originAccessIdentity; }
99 
115  inline bool OriginAccessIdentityHasBeenSet() const { return m_originAccessIdentityHasBeenSet; }
116 
132  inline void SetOriginAccessIdentity(const Aws::String& value) { m_originAccessIdentityHasBeenSet = true; m_originAccessIdentity = value; }
133 
149  inline void SetOriginAccessIdentity(Aws::String&& value) { m_originAccessIdentityHasBeenSet = true; m_originAccessIdentity = std::move(value); }
150 
166  inline void SetOriginAccessIdentity(const char* value) { m_originAccessIdentityHasBeenSet = true; m_originAccessIdentity.assign(value); }
167 
183  inline S3Origin& WithOriginAccessIdentity(const Aws::String& value) { SetOriginAccessIdentity(value); return *this;}
184 
200  inline S3Origin& WithOriginAccessIdentity(Aws::String&& value) { SetOriginAccessIdentity(std::move(value)); return *this;}
201 
217  inline S3Origin& WithOriginAccessIdentity(const char* value) { SetOriginAccessIdentity(value); return *this;}
218 
219  private:
220 
221  Aws::String m_domainName;
222  bool m_domainNameHasBeenSet;
223 
224  Aws::String m_originAccessIdentity;
225  bool m_originAccessIdentityHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace CloudFront
230 } // namespace Aws
Aws::CloudFront::Model::S3Origin::operator=
S3Origin & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::S3Origin::SetOriginAccessIdentity
void SetOriginAccessIdentity(Aws::String &&value)
Definition: S3Origin.h:149
Aws::CloudFront::Model::S3Origin::GetOriginAccessIdentity
const Aws::String & GetOriginAccessIdentity() const
Definition: S3Origin.h:98
Aws::CloudFront::Model::S3Origin::SetDomainName
void SetDomainName(const char *value)
Definition: S3Origin.h:65
Aws::CloudFront::Model::S3Origin::SetOriginAccessIdentity
void SetOriginAccessIdentity(const Aws::String &value)
Definition: S3Origin.h:132
Aws::CloudFront::Model::S3Origin::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: S3Origin.h:50
Aws::CloudFront::Model::S3Origin::OriginAccessIdentityHasBeenSet
bool OriginAccessIdentityHasBeenSet() const
Definition: S3Origin.h:115
Aws::CloudFront::Model::S3Origin::WithOriginAccessIdentity
S3Origin & WithOriginAccessIdentity(const char *value)
Definition: S3Origin.h:217
Aws::CloudFront::Model::S3Origin::GetDomainName
const Aws::String & GetDomainName() const
Definition: S3Origin.h:45
Aws::CloudFront::Model::S3Origin::WithOriginAccessIdentity
S3Origin & WithOriginAccessIdentity(Aws::String &&value)
Definition: S3Origin.h:200
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::S3Origin::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: S3Origin.h:55
Aws::CloudFront::Model::S3Origin::WithDomainName
S3Origin & WithDomainName(Aws::String &&value)
Definition: S3Origin.h:75
Aws::CloudFront::Model::S3Origin::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: S3Origin.h:60
Aws::CloudFront::Model::S3Origin
Definition: S3Origin.h:33
Aws::CloudFront::Model::S3Origin::WithDomainName
S3Origin & WithDomainName(const Aws::String &value)
Definition: S3Origin.h:70
AWSString.h
Aws::CloudFront::Model::S3Origin::WithDomainName
S3Origin & WithDomainName(const char *value)
Definition: S3Origin.h:80
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::S3Origin::WithOriginAccessIdentity
S3Origin & WithOriginAccessIdentity(const Aws::String &value)
Definition: S3Origin.h:183
Aws::CloudFront::Model::S3Origin::SetOriginAccessIdentity
void SetOriginAccessIdentity(const char *value)
Definition: S3Origin.h:166
Aws::CloudFront::Model::S3Origin::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CloudFront_EXPORTS.h
Aws::CloudFront::Model::S3Origin::S3Origin
S3Origin()
Aws::CloudFront::Model::S3Origin::S3Origin
S3Origin(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97