AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
MonitoredResourceIdentifier.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/ResourceCollection.h>
11#include <aws/devops-guru/model/ResourcePermission.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DevOpsGuru {
23namespace Model {
24
33 public:
34 AWS_DEVOPSGURU_API MonitoredResourceIdentifier() = default;
37 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetMonitoredResourceName() const { return m_monitoredResourceName; }
44 inline bool MonitoredResourceNameHasBeenSet() const { return m_monitoredResourceNameHasBeenSet; }
45 template <typename MonitoredResourceNameT = Aws::String>
46 void SetMonitoredResourceName(MonitoredResourceNameT&& value) {
47 m_monitoredResourceNameHasBeenSet = true;
48 m_monitoredResourceName = std::forward<MonitoredResourceNameT>(value);
49 }
50 template <typename MonitoredResourceNameT = Aws::String>
51 MonitoredResourceIdentifier& WithMonitoredResourceName(MonitoredResourceNameT&& value) {
52 SetMonitoredResourceName(std::forward<MonitoredResourceNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 template <typename TypeT = Aws::String>
64 void SetType(TypeT&& value) {
65 m_typeHasBeenSet = true;
66 m_type = std::forward<TypeT>(value);
67 }
68 template <typename TypeT = Aws::String>
70 SetType(std::forward<TypeT>(value));
71 return *this;
72 }
74
76
79 inline ResourcePermission GetResourcePermission() const { return m_resourcePermission; }
80 inline bool ResourcePermissionHasBeenSet() const { return m_resourcePermissionHasBeenSet; }
82 m_resourcePermissionHasBeenSet = true;
83 m_resourcePermission = value;
84 }
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
96 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
97 template <typename LastUpdatedT = Aws::Utils::DateTime>
98 void SetLastUpdated(LastUpdatedT&& value) {
99 m_lastUpdatedHasBeenSet = true;
100 m_lastUpdated = std::forward<LastUpdatedT>(value);
101 }
102 template <typename LastUpdatedT = Aws::Utils::DateTime>
104 SetLastUpdated(std::forward<LastUpdatedT>(value));
105 return *this;
106 }
108
110
111 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
112 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
113 template <typename ResourceCollectionT = ResourceCollection>
114 void SetResourceCollection(ResourceCollectionT&& value) {
115 m_resourceCollectionHasBeenSet = true;
116 m_resourceCollection = std::forward<ResourceCollectionT>(value);
117 }
118 template <typename ResourceCollectionT = ResourceCollection>
120 SetResourceCollection(std::forward<ResourceCollectionT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_monitoredResourceName;
126
127 Aws::String m_type;
128
130
131 Aws::Utils::DateTime m_lastUpdated{};
132
133 ResourceCollection m_resourceCollection;
134 bool m_monitoredResourceNameHasBeenSet = false;
135 bool m_typeHasBeenSet = false;
136 bool m_resourcePermissionHasBeenSet = false;
137 bool m_lastUpdatedHasBeenSet = false;
138 bool m_resourceCollectionHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace DevOpsGuru
143} // namespace Aws
AWS_DEVOPSGURU_API MonitoredResourceIdentifier()=default
MonitoredResourceIdentifier & WithLastUpdated(LastUpdatedT &&value)
MonitoredResourceIdentifier & WithMonitoredResourceName(MonitoredResourceNameT &&value)
MonitoredResourceIdentifier & WithResourceCollection(ResourceCollectionT &&value)
MonitoredResourceIdentifier & WithResourcePermission(ResourcePermission value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSGURU_API MonitoredResourceIdentifier(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API MonitoredResourceIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
MonitoredResourceIdentifier & WithType(TypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue