AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
FunctionMetadata.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/FunctionStage.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront {
21namespace Model {
22
29 public:
30 AWS_CLOUDFRONT_API FunctionMetadata() = default;
31 AWS_CLOUDFRONT_API FunctionMetadata(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API FunctionMetadata& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
41 inline const Aws::String& GetFunctionARN() const { return m_functionARN; }
42 inline bool FunctionARNHasBeenSet() const { return m_functionARNHasBeenSet; }
43 template <typename FunctionARNT = Aws::String>
44 void SetFunctionARN(FunctionARNT&& value) {
45 m_functionARNHasBeenSet = true;
46 m_functionARN = std::forward<FunctionARNT>(value);
47 }
48 template <typename FunctionARNT = Aws::String>
49 FunctionMetadata& WithFunctionARN(FunctionARNT&& value) {
50 SetFunctionARN(std::forward<FunctionARNT>(value));
51 return *this;
52 }
54
56
64 inline FunctionStage GetStage() const { return m_stage; }
65 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
66 inline void SetStage(FunctionStage value) {
67 m_stageHasBeenSet = true;
68 m_stage = value;
69 }
71 SetStage(value);
72 return *this;
73 }
75
77
80 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
81 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
82 template <typename CreatedTimeT = Aws::Utils::DateTime>
83 void SetCreatedTime(CreatedTimeT&& value) {
84 m_createdTimeHasBeenSet = true;
85 m_createdTime = std::forward<CreatedTimeT>(value);
86 }
87 template <typename CreatedTimeT = Aws::Utils::DateTime>
88 FunctionMetadata& WithCreatedTime(CreatedTimeT&& value) {
89 SetCreatedTime(std::forward<CreatedTimeT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
99 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
100 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
101 void SetLastModifiedTime(LastModifiedTimeT&& value) {
102 m_lastModifiedTimeHasBeenSet = true;
103 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
104 }
105 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
106 FunctionMetadata& WithLastModifiedTime(LastModifiedTimeT&& value) {
107 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_functionARN;
113
115
116 Aws::Utils::DateTime m_createdTime{};
117
118 Aws::Utils::DateTime m_lastModifiedTime{};
119 bool m_functionARNHasBeenSet = false;
120 bool m_stageHasBeenSet = false;
121 bool m_createdTimeHasBeenSet = false;
122 bool m_lastModifiedTimeHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace CloudFront
127} // namespace Aws
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetCreatedTime(CreatedTimeT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetFunctionARN(FunctionARNT &&value)
FunctionMetadata & WithStage(FunctionStage value)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CLOUDFRONT_API FunctionMetadata & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FunctionMetadata & WithCreatedTime(CreatedTimeT &&value)
const Aws::String & GetFunctionARN() const
FunctionMetadata & WithFunctionARN(FunctionARNT &&value)
AWS_CLOUDFRONT_API FunctionMetadata()=default
AWS_CLOUDFRONT_API FunctionMetadata(const Aws::Utils::Xml::XmlNode &xmlNode)
FunctionMetadata & WithLastModifiedTime(LastModifiedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String