AWS SDK for C++

AWS SDK for C++ Version 1.11.921

Loading...
Searching...
No Matches
FunctionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
10#include <aws/lambda-web/model/FunctionState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LambdaWeb {
22namespace Model {
23
30 public:
31 AWS_LAMBDAWEB_API FunctionSummary() = default;
32 AWS_LAMBDAWEB_API FunctionSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetFunctionName() const { return m_functionName; }
41 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
42 template <typename FunctionNameT = Aws::String>
43 void SetFunctionName(FunctionNameT&& value) {
44 m_functionNameHasBeenSet = true;
45 m_functionName = std::forward<FunctionNameT>(value);
46 }
47 template <typename FunctionNameT = Aws::String>
48 FunctionSummary& WithFunctionName(FunctionNameT&& value) {
49 SetFunctionName(std::forward<FunctionNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
59 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
60 template <typename FunctionArnT = Aws::String>
61 void SetFunctionArn(FunctionArnT&& value) {
62 m_functionArnHasBeenSet = true;
63 m_functionArn = std::forward<FunctionArnT>(value);
64 }
65 template <typename FunctionArnT = Aws::String>
66 FunctionSummary& WithFunctionArn(FunctionArnT&& value) {
67 SetFunctionArn(std::forward<FunctionArnT>(value));
68 return *this;
69 }
71
73
76 inline FunctionState GetState() const { return m_state; }
77 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
78 inline void SetState(FunctionState value) {
79 m_stateHasBeenSet = true;
80 m_state = value;
81 }
83 SetState(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetStateReason() const { return m_stateReason; }
93 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
94 template <typename StateReasonT = Aws::String>
95 void SetStateReason(StateReasonT&& value) {
96 m_stateReasonHasBeenSet = true;
97 m_stateReason = std::forward<StateReasonT>(value);
98 }
99 template <typename StateReasonT = Aws::String>
100 FunctionSummary& WithStateReason(StateReasonT&& value) {
101 SetStateReason(std::forward<StateReasonT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
111 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
113 void SetCreatedAt(CreatedAtT&& value) {
114 m_createdAtHasBeenSet = true;
115 m_createdAt = std::forward<CreatedAtT>(value);
116 }
117 template <typename CreatedAtT = Aws::Utils::DateTime>
118 FunctionSummary& WithCreatedAt(CreatedAtT&& value) {
119 SetCreatedAt(std::forward<CreatedAtT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
129 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
130 template <typename UpdatedAtT = Aws::Utils::DateTime>
131 void SetUpdatedAt(UpdatedAtT&& value) {
132 m_updatedAtHasBeenSet = true;
133 m_updatedAt = std::forward<UpdatedAtT>(value);
134 }
135 template <typename UpdatedAtT = Aws::Utils::DateTime>
136 FunctionSummary& WithUpdatedAt(UpdatedAtT&& value) {
137 SetUpdatedAt(std::forward<UpdatedAtT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_functionName;
143
144 Aws::String m_functionArn;
145
147
148 Aws::String m_stateReason;
149
150 Aws::Utils::DateTime m_createdAt{};
151
152 Aws::Utils::DateTime m_updatedAt{};
153 bool m_functionNameHasBeenSet = false;
154 bool m_functionArnHasBeenSet = false;
155 bool m_stateHasBeenSet = false;
156 bool m_stateReasonHasBeenSet = false;
157 bool m_createdAtHasBeenSet = false;
158 bool m_updatedAtHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace LambdaWeb
163} // namespace Aws
FunctionSummary & WithStateReason(StateReasonT &&value)
FunctionSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetStateReason(StateReasonT &&value)
void SetFunctionName(FunctionNameT &&value)
AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFunctionName() const
FunctionSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetFunctionArn() const
FunctionSummary & WithState(FunctionState value)
const Aws::Utils::DateTime & GetCreatedAt() const
FunctionSummary & WithFunctionName(FunctionNameT &&value)
AWS_LAMBDAWEB_API FunctionSummary()=default
FunctionSummary & WithFunctionArn(FunctionArnT &&value)
void SetFunctionArn(FunctionArnT &&value)
AWS_LAMBDAWEB_API FunctionSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStateReason() const
AWS_LAMBDAWEB_API FunctionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue