AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFront
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CLOUDFRONT_API ImportSource();
35 AWS_CLOUDFRONT_API ImportSource(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFRONT_API ImportSource& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
45 inline const ImportSourceType& GetSourceType() const{ return m_sourceType; }
46 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
47 inline void SetSourceType(const ImportSourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
48 inline void SetSourceType(ImportSourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
49 inline ImportSource& WithSourceType(const ImportSourceType& value) { SetSourceType(value); return *this;}
50 inline ImportSource& WithSourceType(ImportSourceType&& value) { SetSourceType(std::move(value)); return *this;}
52
54
58 inline const Aws::String& GetSourceARN() const{ return m_sourceARN; }
59 inline bool SourceARNHasBeenSet() const { return m_sourceARNHasBeenSet; }
60 inline void SetSourceARN(const Aws::String& value) { m_sourceARNHasBeenSet = true; m_sourceARN = value; }
61 inline void SetSourceARN(Aws::String&& value) { m_sourceARNHasBeenSet = true; m_sourceARN = std::move(value); }
62 inline void SetSourceARN(const char* value) { m_sourceARNHasBeenSet = true; m_sourceARN.assign(value); }
63 inline ImportSource& WithSourceARN(const Aws::String& value) { SetSourceARN(value); return *this;}
64 inline ImportSource& WithSourceARN(Aws::String&& value) { SetSourceARN(std::move(value)); return *this;}
65 inline ImportSource& WithSourceARN(const char* value) { SetSourceARN(value); return *this;}
67 private:
68
69 ImportSourceType m_sourceType;
70 bool m_sourceTypeHasBeenSet = false;
71
72 Aws::String m_sourceARN;
73 bool m_sourceARNHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CloudFront
78} // namespace Aws
ImportSource & WithSourceARN(Aws::String &&value)
void SetSourceType(const ImportSourceType &value)
AWS_CLOUDFRONT_API ImportSource(const Aws::Utils::Xml::XmlNode &xmlNode)
ImportSource & WithSourceType(const ImportSourceType &value)
void SetSourceARN(const char *value)
void SetSourceARN(Aws::String &&value)
ImportSource & WithSourceType(ImportSourceType &&value)
const ImportSourceType & GetSourceType() const
void SetSourceType(ImportSourceType &&value)
ImportSource & WithSourceARN(const Aws::String &value)
ImportSource & WithSourceARN(const char *value)
const Aws::String & GetSourceARN() const
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetSourceARN(const Aws::String &value)
AWS_CLOUDFRONT_API ImportSource & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String