AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
AppMonitorSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rum/CloudWatchRUM_EXPORTS.h>
9#include <aws/rum/model/AppMonitorPlatform.h>
10#include <aws/rum/model/StateEnum.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchRUM {
22namespace Model {
23
31 public:
32 AWS_CLOUDWATCHRUM_API AppMonitorSummary() = default;
33 AWS_CLOUDWATCHRUM_API AppMonitorSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHRUM_API AppMonitorSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHRUM_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 AppMonitorSummary& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template <typename IdT = Aws::String>
62 void SetId(IdT&& value) {
63 m_idHasBeenSet = true;
64 m_id = std::forward<IdT>(value);
65 }
66 template <typename IdT = Aws::String>
67 AppMonitorSummary& WithId(IdT&& value) {
68 SetId(std::forward<IdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetCreated() const { return m_created; }
78 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
79 template <typename CreatedT = Aws::String>
80 void SetCreated(CreatedT&& value) {
81 m_createdHasBeenSet = true;
82 m_created = std::forward<CreatedT>(value);
83 }
84 template <typename CreatedT = Aws::String>
85 AppMonitorSummary& WithCreated(CreatedT&& value) {
86 SetCreated(std::forward<CreatedT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetLastModified() const { return m_lastModified; }
97 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
98 template <typename LastModifiedT = Aws::String>
99 void SetLastModified(LastModifiedT&& value) {
100 m_lastModifiedHasBeenSet = true;
101 m_lastModified = std::forward<LastModifiedT>(value);
102 }
103 template <typename LastModifiedT = Aws::String>
104 AppMonitorSummary& WithLastModified(LastModifiedT&& value) {
105 SetLastModified(std::forward<LastModifiedT>(value));
106 return *this;
107 }
109
111
114 inline StateEnum GetState() const { return m_state; }
115 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
116 inline void SetState(StateEnum value) {
117 m_stateHasBeenSet = true;
118 m_state = value;
119 }
121 SetState(value);
122 return *this;
123 }
125
127
132 inline AppMonitorPlatform GetPlatform() const { return m_platform; }
133 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
134 inline void SetPlatform(AppMonitorPlatform value) {
135 m_platformHasBeenSet = true;
136 m_platform = value;
137 }
139 SetPlatform(value);
140 return *this;
141 }
143 private:
144 Aws::String m_name;
145
146 Aws::String m_id;
147
148 Aws::String m_created;
149
150 Aws::String m_lastModified;
151
153
155 bool m_nameHasBeenSet = false;
156 bool m_idHasBeenSet = false;
157 bool m_createdHasBeenSet = false;
158 bool m_lastModifiedHasBeenSet = false;
159 bool m_stateHasBeenSet = false;
160 bool m_platformHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace CloudWatchRUM
165} // namespace Aws
AppMonitorSummary & WithCreated(CreatedT &&value)
AppMonitorSummary & WithName(NameT &&value)
AWS_CLOUDWATCHRUM_API AppMonitorSummary()=default
AppMonitorSummary & WithLastModified(LastModifiedT &&value)
AppMonitorSummary & WithId(IdT &&value)
AWS_CLOUDWATCHRUM_API AppMonitorSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHRUM_API AppMonitorSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AppMonitorSummary & WithPlatform(AppMonitorPlatform value)
AWS_CLOUDWATCHRUM_API Aws::Utils::Json::JsonValue Jsonize() const
AppMonitorSummary & WithState(StateEnum value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue