AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
ResourceProperty.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/Document.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ResourceExplorer2 {
22namespace Model {
23
31 public:
32 AWS_RESOURCEEXPLORER2_API ResourceProperty() = default;
33 AWS_RESOURCEEXPLORER2_API ResourceProperty(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESOURCEEXPLORER2_API ResourceProperty& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 ResourceProperty& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Utils::DateTime& GetLastReportedAt() const { return m_lastReportedAt; }
61 inline bool LastReportedAtHasBeenSet() const { return m_lastReportedAtHasBeenSet; }
62 template <typename LastReportedAtT = Aws::Utils::DateTime>
63 void SetLastReportedAt(LastReportedAtT&& value) {
64 m_lastReportedAtHasBeenSet = true;
65 m_lastReportedAt = std::forward<LastReportedAtT>(value);
66 }
67 template <typename LastReportedAtT = Aws::Utils::DateTime>
68 ResourceProperty& WithLastReportedAt(LastReportedAtT&& value) {
69 SetLastReportedAt(std::forward<LastReportedAtT>(value));
70 return *this;
71 }
73
75
79 inline Aws::Utils::DocumentView GetData() const { return m_data; }
80 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
81 template <typename DataT = Aws::Utils::Document>
82 void SetData(DataT&& value) {
83 m_dataHasBeenSet = true;
84 m_data = std::forward<DataT>(value);
85 }
86 template <typename DataT = Aws::Utils::Document>
87 ResourceProperty& WithData(DataT&& value) {
88 SetData(std::forward<DataT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_name;
94
95 Aws::Utils::DateTime m_lastReportedAt{};
96
98 bool m_nameHasBeenSet = false;
99 bool m_lastReportedAtHasBeenSet = false;
100 bool m_dataHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ResourceExplorer2
105} // namespace Aws
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceProperty & WithName(NameT &&value)
ResourceProperty & WithData(DataT &&value)
AWS_RESOURCEEXPLORER2_API ResourceProperty()=default
AWS_RESOURCEEXPLORER2_API ResourceProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESOURCEEXPLORER2_API ResourceProperty(Aws::Utils::Json::JsonView jsonValue)
void SetLastReportedAt(LastReportedAtT &&value)
const Aws::Utils::DateTime & GetLastReportedAt() const
ResourceProperty & WithLastReportedAt(LastReportedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue