AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
OTAUpdateSummary.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
29 public:
30 AWS_IOT_API OTAUpdateSummary() = default;
34
36
39 inline const Aws::String& GetOtaUpdateId() const { return m_otaUpdateId; }
40 inline bool OtaUpdateIdHasBeenSet() const { return m_otaUpdateIdHasBeenSet; }
41 template <typename OtaUpdateIdT = Aws::String>
42 void SetOtaUpdateId(OtaUpdateIdT&& value) {
43 m_otaUpdateIdHasBeenSet = true;
44 m_otaUpdateId = std::forward<OtaUpdateIdT>(value);
45 }
46 template <typename OtaUpdateIdT = Aws::String>
47 OTAUpdateSummary& WithOtaUpdateId(OtaUpdateIdT&& value) {
48 SetOtaUpdateId(std::forward<OtaUpdateIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetOtaUpdateArn() const { return m_otaUpdateArn; }
58 inline bool OtaUpdateArnHasBeenSet() const { return m_otaUpdateArnHasBeenSet; }
59 template <typename OtaUpdateArnT = Aws::String>
60 void SetOtaUpdateArn(OtaUpdateArnT&& value) {
61 m_otaUpdateArnHasBeenSet = true;
62 m_otaUpdateArn = std::forward<OtaUpdateArnT>(value);
63 }
64 template <typename OtaUpdateArnT = Aws::String>
65 OTAUpdateSummary& WithOtaUpdateArn(OtaUpdateArnT&& value) {
66 SetOtaUpdateArn(std::forward<OtaUpdateArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
76 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
77 template <typename CreationDateT = Aws::Utils::DateTime>
78 void SetCreationDate(CreationDateT&& value) {
79 m_creationDateHasBeenSet = true;
80 m_creationDate = std::forward<CreationDateT>(value);
81 }
82 template <typename CreationDateT = Aws::Utils::DateTime>
83 OTAUpdateSummary& WithCreationDate(CreationDateT&& value) {
84 SetCreationDate(std::forward<CreationDateT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_otaUpdateId;
90
91 Aws::String m_otaUpdateArn;
92
93 Aws::Utils::DateTime m_creationDate{};
94 bool m_otaUpdateIdHasBeenSet = false;
95 bool m_otaUpdateArnHasBeenSet = false;
96 bool m_creationDateHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace IoT
101} // namespace Aws
AWS_IOT_API OTAUpdateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOtaUpdateId(OtaUpdateIdT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
OTAUpdateSummary & WithCreationDate(CreationDateT &&value)
void SetCreationDate(CreationDateT &&value)
AWS_IOT_API OTAUpdateSummary()=default
const Aws::Utils::DateTime & GetCreationDate() const
OTAUpdateSummary & WithOtaUpdateArn(OtaUpdateArnT &&value)
const Aws::String & GetOtaUpdateId() const
OTAUpdateSummary & WithOtaUpdateId(OtaUpdateIdT &&value)
AWS_IOT_API OTAUpdateSummary(Aws::Utils::Json::JsonView jsonValue)
void SetOtaUpdateArn(OtaUpdateArnT &&value)
const Aws::String & GetOtaUpdateArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue