AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetData(const Aws::Utils::Document& value) { m_dataHasBeenSet = true; m_data = value; }
51 inline void SetData(Aws::Utils::Document&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
52 inline ResourceProperty& WithData(const Aws::Utils::Document& value) { SetData(value); return *this;}
53 inline ResourceProperty& WithData(Aws::Utils::Document&& value) { SetData(std::move(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 inline void SetLastReportedAt(const Aws::Utils::DateTime& value) { m_lastReportedAtHasBeenSet = true; m_lastReportedAt = value; }
64 inline void SetLastReportedAt(Aws::Utils::DateTime&& value) { m_lastReportedAtHasBeenSet = true; m_lastReportedAt = std::move(value); }
65 inline ResourceProperty& WithLastReportedAt(const Aws::Utils::DateTime& value) { SetLastReportedAt(value); return *this;}
66 inline ResourceProperty& WithLastReportedAt(Aws::Utils::DateTime&& value) { SetLastReportedAt(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const{ return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 inline ResourceProperty& WithName(const Aws::String& value) { SetName(value); return *this;}
79 inline ResourceProperty& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 inline ResourceProperty& WithName(const char* value) { SetName(value); return *this;}
82 private:
83
85 bool m_dataHasBeenSet = false;
86
87 Aws::Utils::DateTime m_lastReportedAt;
88 bool m_lastReportedAtHasBeenSet = false;
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace ResourceExplorer2
96} // namespace Aws
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESOURCEEXPLORER2_API ResourceProperty()
ResourceProperty & WithName(const char *value)
AWS_RESOURCEEXPLORER2_API ResourceProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceProperty & WithLastReportedAt(const Aws::Utils::DateTime &value)
void SetData(Aws::Utils::Document &&value)
AWS_RESOURCEEXPLORER2_API ResourceProperty(Aws::Utils::Json::JsonView jsonValue)
void SetData(const Aws::Utils::Document &value)
void SetLastReportedAt(Aws::Utils::DateTime &&value)
ResourceProperty & WithName(Aws::String &&value)
void SetLastReportedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastReportedAt() const
ResourceProperty & WithLastReportedAt(Aws::Utils::DateTime &&value)
ResourceProperty & WithData(Aws::Utils::Document &&value)
ResourceProperty & WithData(const Aws::Utils::Document &value)
ResourceProperty & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue