AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CommandSummary.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API CommandSummary() = default;
40
41
43
46 inline const Aws::String& GetCommandArn() const { return m_commandArn; }
47 inline bool CommandArnHasBeenSet() const { return m_commandArnHasBeenSet; }
48 template<typename CommandArnT = Aws::String>
49 void SetCommandArn(CommandArnT&& value) { m_commandArnHasBeenSet = true; m_commandArn = std::forward<CommandArnT>(value); }
50 template<typename CommandArnT = Aws::String>
51 CommandSummary& WithCommandArn(CommandArnT&& value) { SetCommandArn(std::forward<CommandArnT>(value)); return *this;}
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) { m_commandIdHasBeenSet = true; m_commandId = std::forward<CommandIdT>(value); }
62 template<typename CommandIdT = Aws::String>
63 CommandSummary& WithCommandId(CommandIdT&& value) { SetCommandId(std::forward<CommandIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDisplayName() const { return m_displayName; }
71 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
72 template<typename DisplayNameT = Aws::String>
73 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
74 template<typename DisplayNameT = Aws::String>
75 CommandSummary& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
77
79
82 inline bool GetDeprecated() const { return m_deprecated; }
83 inline bool DeprecatedHasBeenSet() const { return m_deprecatedHasBeenSet; }
84 inline void SetDeprecated(bool value) { m_deprecatedHasBeenSet = true; m_deprecated = value; }
85 inline CommandSummary& WithDeprecated(bool value) { SetDeprecated(value); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
93 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
94 template<typename CreatedAtT = Aws::Utils::DateTime>
95 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
96 template<typename CreatedAtT = Aws::Utils::DateTime>
97 CommandSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
105 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
106 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
107 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
108 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
109 CommandSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
111
113
116 inline bool GetPendingDeletion() const { return m_pendingDeletion; }
117 inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; }
118 inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; }
119 inline CommandSummary& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;}
121 private:
122
123 Aws::String m_commandArn;
124 bool m_commandArnHasBeenSet = false;
125
126 Aws::String m_commandId;
127 bool m_commandIdHasBeenSet = false;
128
129 Aws::String m_displayName;
130 bool m_displayNameHasBeenSet = false;
131
132 bool m_deprecated{false};
133 bool m_deprecatedHasBeenSet = false;
134
135 Aws::Utils::DateTime m_createdAt{};
136 bool m_createdAtHasBeenSet = false;
137
138 Aws::Utils::DateTime m_lastUpdatedAt{};
139 bool m_lastUpdatedAtHasBeenSet = false;
140
141 bool m_pendingDeletion{false};
142 bool m_pendingDeletionHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace IoT
147} // 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