AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FunctionMetadata.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudfront/model/FunctionStage.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CLOUDFRONT_API FunctionMetadata() = default;
36 AWS_CLOUDFRONT_API FunctionMetadata(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API FunctionMetadata& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
47 inline const Aws::String& GetFunctionARN() const { return m_functionARN; }
48 inline bool FunctionARNHasBeenSet() const { return m_functionARNHasBeenSet; }
49 template<typename FunctionARNT = Aws::String>
50 void SetFunctionARN(FunctionARNT&& value) { m_functionARNHasBeenSet = true; m_functionARN = std::forward<FunctionARNT>(value); }
51 template<typename FunctionARNT = Aws::String>
52 FunctionMetadata& WithFunctionARN(FunctionARNT&& value) { SetFunctionARN(std::forward<FunctionARNT>(value)); return *this;}
54
56
64 inline FunctionStage GetStage() const { return m_stage; }
65 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
66 inline void SetStage(FunctionStage value) { m_stageHasBeenSet = true; m_stage = value; }
67 inline FunctionMetadata& WithStage(FunctionStage value) { SetStage(value); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
75 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
76 template<typename CreatedTimeT = Aws::Utils::DateTime>
77 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
78 template<typename CreatedTimeT = Aws::Utils::DateTime>
79 FunctionMetadata& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
87 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
88 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
89 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
90 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
91 FunctionMetadata& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
93 private:
94
95 Aws::String m_functionARN;
96 bool m_functionARNHasBeenSet = false;
97
99 bool m_stageHasBeenSet = false;
100
101 Aws::Utils::DateTime m_createdTime{};
102 bool m_createdTimeHasBeenSet = false;
103
104 Aws::Utils::DateTime m_lastModifiedTime{};
105 bool m_lastModifiedTimeHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace CloudFront
110} // 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