AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CommandSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
30 public:
31 AWS_IOT_API CommandSummary() = default;
35
37
40 inline const Aws::String& GetCommandArn() const { return m_commandArn; }
41 inline bool CommandArnHasBeenSet() const { return m_commandArnHasBeenSet; }
42 template <typename CommandArnT = Aws::String>
43 void SetCommandArn(CommandArnT&& value) {
44 m_commandArnHasBeenSet = true;
45 m_commandArn = std::forward<CommandArnT>(value);
46 }
47 template <typename CommandArnT = Aws::String>
48 CommandSummary& WithCommandArn(CommandArnT&& value) {
49 SetCommandArn(std::forward<CommandArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCommandId() const { return m_commandId; }
59 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
60 template <typename CommandIdT = Aws::String>
61 void SetCommandId(CommandIdT&& value) {
62 m_commandIdHasBeenSet = true;
63 m_commandId = std::forward<CommandIdT>(value);
64 }
65 template <typename CommandIdT = Aws::String>
66 CommandSummary& WithCommandId(CommandIdT&& value) {
67 SetCommandId(std::forward<CommandIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDisplayName() const { return m_displayName; }
77 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
78 template <typename DisplayNameT = Aws::String>
79 void SetDisplayName(DisplayNameT&& value) {
80 m_displayNameHasBeenSet = true;
81 m_displayName = std::forward<DisplayNameT>(value);
82 }
83 template <typename DisplayNameT = Aws::String>
84 CommandSummary& WithDisplayName(DisplayNameT&& value) {
85 SetDisplayName(std::forward<DisplayNameT>(value));
86 return *this;
87 }
89
91
94 inline bool GetDeprecated() const { return m_deprecated; }
95 inline bool DeprecatedHasBeenSet() const { return m_deprecatedHasBeenSet; }
96 inline void SetDeprecated(bool value) {
97 m_deprecatedHasBeenSet = true;
98 m_deprecated = value;
99 }
100 inline CommandSummary& WithDeprecated(bool value) {
101 SetDeprecated(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 CommandSummary& WithCreatedAt(CreatedAtT&& value) {
119 SetCreatedAt(std::forward<CreatedAtT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
129 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
130 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
131 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
132 m_lastUpdatedAtHasBeenSet = true;
133 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
134 }
135 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
136 CommandSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
137 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
138 return *this;
139 }
141
143
146 inline bool GetPendingDeletion() const { return m_pendingDeletion; }
147 inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; }
148 inline void SetPendingDeletion(bool value) {
149 m_pendingDeletionHasBeenSet = true;
150 m_pendingDeletion = value;
151 }
153 SetPendingDeletion(value);
154 return *this;
155 }
157 private:
158 Aws::String m_commandArn;
159
160 Aws::String m_commandId;
161
162 Aws::String m_displayName;
163
164 bool m_deprecated{false};
165
166 Aws::Utils::DateTime m_createdAt{};
167
168 Aws::Utils::DateTime m_lastUpdatedAt{};
169
170 bool m_pendingDeletion{false};
171 bool m_commandArnHasBeenSet = false;
172 bool m_commandIdHasBeenSet = false;
173 bool m_displayNameHasBeenSet = false;
174 bool m_deprecatedHasBeenSet = false;
175 bool m_createdAtHasBeenSet = false;
176 bool m_lastUpdatedAtHasBeenSet = false;
177 bool m_pendingDeletionHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace IoT
182} // namespace Aws
CommandSummary & WithCreatedAt(CreatedAtT &&value)
CommandSummary & WithDeprecated(bool value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
CommandSummary & WithCommandId(CommandIdT &&value)
CommandSummary & WithDisplayName(DisplayNameT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const Aws::String & GetDisplayName() const
const Aws::String & GetCommandArn() const
CommandSummary & WithCommandArn(CommandArnT &&value)
AWS_IOT_API CommandSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API CommandSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
CommandSummary & WithPendingDeletion(bool value)
CommandSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_IOT_API CommandSummary()=default
const Aws::String & GetCommandId() const
void SetDisplayName(DisplayNameT &&value)
void SetCommandArn(CommandArnT &&value)
void SetCommandId(CommandIdT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue