AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
InstanceProperty.h
1
6#pragma once
7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.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 RolesAnywhere
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ROLESANYWHERE_API InstanceProperty() = default;
38 AWS_ROLESANYWHERE_API InstanceProperty(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROLESANYWHERE_API InstanceProperty& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline bool GetFailed() const { return m_failed; }
48 inline bool FailedHasBeenSet() const { return m_failedHasBeenSet; }
49 inline void SetFailed(bool value) { m_failedHasBeenSet = true; m_failed = value; }
50 inline InstanceProperty& WithFailed(bool value) { SetFailed(value); return *this;}
52
54
57 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
58 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
59 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
60 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
61 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
62 InstanceProperty& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
63 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
64 InstanceProperty& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
65 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
66 }
68
70
74 inline const Aws::Utils::DateTime& GetSeenAt() const { return m_seenAt; }
75 inline bool SeenAtHasBeenSet() const { return m_seenAtHasBeenSet; }
76 template<typename SeenAtT = Aws::Utils::DateTime>
77 void SetSeenAt(SeenAtT&& value) { m_seenAtHasBeenSet = true; m_seenAt = std::forward<SeenAtT>(value); }
78 template<typename SeenAtT = Aws::Utils::DateTime>
79 InstanceProperty& WithSeenAt(SeenAtT&& value) { SetSeenAt(std::forward<SeenAtT>(value)); return *this;}
81 private:
82
83 bool m_failed{false};
84 bool m_failedHasBeenSet = false;
85
87 bool m_propertiesHasBeenSet = false;
88
89 Aws::Utils::DateTime m_seenAt{};
90 bool m_seenAtHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace RolesAnywhere
95} // 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