AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceProperty.h
1
6#pragma once
7#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
8#include <aws/core/utils/Document.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ResourceExplorer2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_RESOURCEEXPLORER2_API ResourceProperty() = default;
38 AWS_RESOURCEEXPLORER2_API ResourceProperty(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESOURCEEXPLORER2_API ResourceProperty& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline Aws::Utils::DocumentView GetData() const { return m_data; }
49 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
50 template<typename DataT = Aws::Utils::Document>
51 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
52 template<typename DataT = Aws::Utils::Document>
53 ResourceProperty& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
55
57
61 inline const Aws::Utils::DateTime& GetLastReportedAt() const { return m_lastReportedAt; }
62 inline bool LastReportedAtHasBeenSet() const { return m_lastReportedAtHasBeenSet; }
63 template<typename LastReportedAtT = Aws::Utils::DateTime>
64 void SetLastReportedAt(LastReportedAtT&& value) { m_lastReportedAtHasBeenSet = true; m_lastReportedAt = std::forward<LastReportedAtT>(value); }
65 template<typename LastReportedAtT = Aws::Utils::DateTime>
66 ResourceProperty& WithLastReportedAt(LastReportedAtT&& value) { SetLastReportedAt(std::forward<LastReportedAtT>(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 ResourceProperty& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80 private:
81
83 bool m_dataHasBeenSet = false;
84
85 Aws::Utils::DateTime m_lastReportedAt{};
86 bool m_lastReportedAtHasBeenSet = false;
87
88 Aws::String m_name;
89 bool m_nameHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ResourceExplorer2
94} // 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