AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
S3OriginConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront
21{
22namespace Model
23{
24
34 {
35 public:
36 AWS_CLOUDFRONT_API S3OriginConfig() = default;
37 AWS_CLOUDFRONT_API S3OriginConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFRONT_API S3OriginConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
69 inline const Aws::String& GetOriginAccessIdentity() const { return m_originAccessIdentity; }
70 inline bool OriginAccessIdentityHasBeenSet() const { return m_originAccessIdentityHasBeenSet; }
71 template<typename OriginAccessIdentityT = Aws::String>
72 void SetOriginAccessIdentity(OriginAccessIdentityT&& value) { m_originAccessIdentityHasBeenSet = true; m_originAccessIdentity = std::forward<OriginAccessIdentityT>(value); }
73 template<typename OriginAccessIdentityT = Aws::String>
74 S3OriginConfig& WithOriginAccessIdentity(OriginAccessIdentityT&& value) { SetOriginAccessIdentity(std::forward<OriginAccessIdentityT>(value)); return *this;}
76
78
86 inline int GetOriginReadTimeout() const { return m_originReadTimeout; }
87 inline bool OriginReadTimeoutHasBeenSet() const { return m_originReadTimeoutHasBeenSet; }
88 inline void SetOriginReadTimeout(int value) { m_originReadTimeoutHasBeenSet = true; m_originReadTimeout = value; }
89 inline S3OriginConfig& WithOriginReadTimeout(int value) { SetOriginReadTimeout(value); return *this;}
91 private:
92
93 Aws::String m_originAccessIdentity;
94 bool m_originAccessIdentityHasBeenSet = false;
95
96 int m_originReadTimeout{0};
97 bool m_originReadTimeoutHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace CloudFront
102} // namespace Aws
AWS_CLOUDFRONT_API S3OriginConfig()=default
S3OriginConfig & WithOriginReadTimeout(int value)
const Aws::String & GetOriginAccessIdentity() const
AWS_CLOUDFRONT_API S3OriginConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
S3OriginConfig & WithOriginAccessIdentity(OriginAccessIdentityT &&value)
AWS_CLOUDFRONT_API S3OriginConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOriginAccessIdentity(OriginAccessIdentityT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String