AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ImportSource.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/ImportSourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFront {
20namespace Model {
21
28 public:
29 AWS_CLOUDFRONT_API ImportSource() = default;
30 AWS_CLOUDFRONT_API ImportSource(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_CLOUDFRONT_API ImportSource& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
39 inline ImportSourceType GetSourceType() const { return m_sourceType; }
40 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
41 inline void SetSourceType(ImportSourceType value) {
42 m_sourceTypeHasBeenSet = true;
43 m_sourceType = value;
44 }
46 SetSourceType(value);
47 return *this;
48 }
50
52
56 inline const Aws::String& GetSourceARN() const { return m_sourceARN; }
57 inline bool SourceARNHasBeenSet() const { return m_sourceARNHasBeenSet; }
58 template <typename SourceARNT = Aws::String>
59 void SetSourceARN(SourceARNT&& value) {
60 m_sourceARNHasBeenSet = true;
61 m_sourceARN = std::forward<SourceARNT>(value);
62 }
63 template <typename SourceARNT = Aws::String>
64 ImportSource& WithSourceARN(SourceARNT&& value) {
65 SetSourceARN(std::forward<SourceARNT>(value));
66 return *this;
67 }
69 private:
71
72 Aws::String m_sourceARN;
73 bool m_sourceTypeHasBeenSet = false;
74 bool m_sourceARNHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace CloudFront
79} // namespace Aws
void SetSourceARN(SourceARNT &&value)
AWS_CLOUDFRONT_API ImportSource(const Aws::Utils::Xml::XmlNode &xmlNode)
ImportSource & WithSourceARN(SourceARNT &&value)
AWS_CLOUDFRONT_API ImportSource()=default
const Aws::String & GetSourceARN() const
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetSourceType(ImportSourceType value)
ImportSourceType GetSourceType() const
ImportSource & WithSourceType(ImportSourceType value)
AWS_CLOUDFRONT_API ImportSource & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String