AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InvalidationBatch.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/Paths.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 InvalidationBatch() = default;
30 AWS_CLOUDFRONT_API InvalidationBatch(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_CLOUDFRONT_API InvalidationBatch& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
43 inline const Paths& GetPaths() const { return m_paths; }
44 inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; }
45 template <typename PathsT = Paths>
46 void SetPaths(PathsT&& value) {
47 m_pathsHasBeenSet = true;
48 m_paths = std::forward<PathsT>(value);
49 }
50 template <typename PathsT = Paths>
51 InvalidationBatch& WithPaths(PathsT&& value) {
52 SetPaths(std::forward<PathsT>(value));
53 return *this;
54 }
56
58
75 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
76 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
77 template <typename CallerReferenceT = Aws::String>
78 void SetCallerReference(CallerReferenceT&& value) {
79 m_callerReferenceHasBeenSet = true;
80 m_callerReference = std::forward<CallerReferenceT>(value);
81 }
82 template <typename CallerReferenceT = Aws::String>
83 InvalidationBatch& WithCallerReference(CallerReferenceT&& value) {
84 SetCallerReference(std::forward<CallerReferenceT>(value));
85 return *this;
86 }
88 private:
89 Paths m_paths;
90
91 Aws::String m_callerReference;
92 bool m_pathsHasBeenSet = false;
93 bool m_callerReferenceHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace CloudFront
98} // namespace Aws
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
InvalidationBatch & WithPaths(PathsT &&value)
InvalidationBatch & WithCallerReference(CallerReferenceT &&value)
AWS_CLOUDFRONT_API InvalidationBatch()=default
void SetCallerReference(CallerReferenceT &&value)
AWS_CLOUDFRONT_API InvalidationBatch & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCallerReference() const
AWS_CLOUDFRONT_API InvalidationBatch(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String