AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
CollectorSummary.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/CollectorStatus.h>
9#include <aws/continuum/model/CollectorType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Continuum {
23namespace Model {
24
32 public:
33 AWS_CONTINUUM_API CollectorSummary() = default;
34 AWS_CONTINUUM_API CollectorSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCollectorId() const { return m_collectorId; }
43 inline bool CollectorIdHasBeenSet() const { return m_collectorIdHasBeenSet; }
44 template <typename CollectorIdT = Aws::String>
45 void SetCollectorId(CollectorIdT&& value) {
46 m_collectorIdHasBeenSet = true;
47 m_collectorId = std::forward<CollectorIdT>(value);
48 }
49 template <typename CollectorIdT = Aws::String>
50 CollectorSummary& WithCollectorId(CollectorIdT&& value) {
51 SetCollectorId(std::forward<CollectorIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCollectorArn() const { return m_collectorArn; }
61 inline bool CollectorArnHasBeenSet() const { return m_collectorArnHasBeenSet; }
62 template <typename CollectorArnT = Aws::String>
63 void SetCollectorArn(CollectorArnT&& value) {
64 m_collectorArnHasBeenSet = true;
65 m_collectorArn = std::forward<CollectorArnT>(value);
66 }
67 template <typename CollectorArnT = Aws::String>
68 CollectorSummary& WithCollectorArn(CollectorArnT&& value) {
69 SetCollectorArn(std::forward<CollectorArnT>(value));
70 return *this;
71 }
73
75
78 inline CollectorType GetType() const { return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(CollectorType value) {
81 m_typeHasBeenSet = true;
82 m_type = value;
83 }
85 SetType(value);
86 return *this;
87 }
89
91
94 inline CollectorStatus GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(CollectorStatus value) {
97 m_statusHasBeenSet = true;
98 m_status = value;
99 }
101 SetStatus(value);
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
111 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
113 void SetCreatedAt(CreatedAtT&& value) {
114 m_createdAtHasBeenSet = true;
115 m_createdAt = std::forward<CreatedAtT>(value);
116 }
117 template <typename CreatedAtT = Aws::Utils::DateTime>
118 CollectorSummary& WithCreatedAt(CreatedAtT&& value) {
119 SetCreatedAt(std::forward<CreatedAtT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_collectorId;
125
126 Aws::String m_collectorArn;
127
129
131
132 Aws::Utils::DateTime m_createdAt{};
133 bool m_collectorIdHasBeenSet = false;
134 bool m_collectorArnHasBeenSet = false;
135 bool m_typeHasBeenSet = false;
136 bool m_statusHasBeenSet = false;
137 bool m_createdAtHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Continuum
142} // namespace Aws
CollectorSummary & WithStatus(CollectorStatus value)
AWS_CONTINUUM_API CollectorSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCollectorId(CollectorIdT &&value)
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(CollectorStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetCollectorArn() const
const Aws::String & GetCollectorId() const
AWS_CONTINUUM_API CollectorSummary()=default
CollectorSummary & WithCreatedAt(CreatedAtT &&value)
AWS_CONTINUUM_API CollectorSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCollectorArn(CollectorArnT &&value)
CollectorSummary & WithType(CollectorType value)
CollectorSummary & WithCollectorId(CollectorIdT &&value)
CollectorSummary & WithCollectorArn(CollectorArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue