AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InstanceProperty.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RolesAnywhere {
22namespace Model {
23
31 public:
32 AWS_ROLESANYWHERE_API InstanceProperty() = default;
33 AWS_ROLESANYWHERE_API InstanceProperty(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ROLESANYWHERE_API InstanceProperty& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Utils::DateTime& GetSeenAt() const { return m_seenAt; }
43 inline bool SeenAtHasBeenSet() const { return m_seenAtHasBeenSet; }
44 template <typename SeenAtT = Aws::Utils::DateTime>
45 void SetSeenAt(SeenAtT&& value) {
46 m_seenAtHasBeenSet = true;
47 m_seenAt = std::forward<SeenAtT>(value);
48 }
49 template <typename SeenAtT = Aws::Utils::DateTime>
50 InstanceProperty& WithSeenAt(SeenAtT&& value) {
51 SetSeenAt(std::forward<SeenAtT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
61 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
62 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
63 void SetProperties(PropertiesT&& value) {
64 m_propertiesHasBeenSet = true;
65 m_properties = std::forward<PropertiesT>(value);
66 }
67 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
68 InstanceProperty& WithProperties(PropertiesT&& value) {
69 SetProperties(std::forward<PropertiesT>(value));
70 return *this;
71 }
72 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
73 InstanceProperty& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
74 m_propertiesHasBeenSet = true;
75 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
76 return *this;
77 }
79
81
84 inline bool GetFailed() const { return m_failed; }
85 inline bool FailedHasBeenSet() const { return m_failedHasBeenSet; }
86 inline void SetFailed(bool value) {
87 m_failedHasBeenSet = true;
88 m_failed = value;
89 }
90 inline InstanceProperty& WithFailed(bool value) {
91 SetFailed(value);
92 return *this;
93 }
95 private:
96 Aws::Utils::DateTime m_seenAt{};
97
99
100 bool m_failed{false};
101 bool m_seenAtHasBeenSet = false;
102 bool m_propertiesHasBeenSet = false;
103 bool m_failedHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace RolesAnywhere
108} // namespace Aws
InstanceProperty & WithFailed(bool value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
InstanceProperty & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
AWS_ROLESANYWHERE_API InstanceProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceProperty & WithProperties(PropertiesT &&value)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetSeenAt() const
InstanceProperty & WithSeenAt(SeenAtT &&value)
AWS_ROLESANYWHERE_API InstanceProperty()=default
AWS_ROLESANYWHERE_API InstanceProperty(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue