AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
AssessmentInfo.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/kafka/Kafka_EXPORTS.h>
11#include <aws/kafka/model/AssessmentStatus.h>
12#include <aws/kafka/model/AssessmentType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Kafka {
24namespace Model {
25
33 public:
34 AWS_KAFKA_API AssessmentInfo() = default;
37 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAssessmentArn() const { return m_assessmentArn; }
44 inline bool AssessmentArnHasBeenSet() const { return m_assessmentArnHasBeenSet; }
45 template <typename AssessmentArnT = Aws::String>
46 void SetAssessmentArn(AssessmentArnT&& value) {
47 m_assessmentArnHasBeenSet = true;
48 m_assessmentArn = std::forward<AssessmentArnT>(value);
49 }
50 template <typename AssessmentArnT = Aws::String>
51 AssessmentInfo& WithAssessmentArn(AssessmentArnT&& value) {
52 SetAssessmentArn(std::forward<AssessmentArnT>(value));
53 return *this;
54 }
56
58
61 inline AssessmentType GetAssessmentType() const { return m_assessmentType; }
62 inline bool AssessmentTypeHasBeenSet() const { return m_assessmentTypeHasBeenSet; }
63 inline void SetAssessmentType(AssessmentType value) {
64 m_assessmentTypeHasBeenSet = true;
65 m_assessmentType = value;
66 }
68 SetAssessmentType(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
78 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
79 template <typename ClusterArnT = Aws::String>
80 void SetClusterArn(ClusterArnT&& value) {
81 m_clusterArnHasBeenSet = true;
82 m_clusterArn = std::forward<ClusterArnT>(value);
83 }
84 template <typename ClusterArnT = Aws::String>
85 AssessmentInfo& WithClusterArn(ClusterArnT&& value) {
86 SetClusterArn(std::forward<ClusterArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
96 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
97 template <typename CreationTimeT = Aws::Utils::DateTime>
98 void SetCreationTime(CreationTimeT&& value) {
99 m_creationTimeHasBeenSet = true;
100 m_creationTime = std::forward<CreationTimeT>(value);
101 }
102 template <typename CreationTimeT = Aws::Utils::DateTime>
103 AssessmentInfo& WithCreationTime(CreationTimeT&& value) {
104 SetCreationTime(std::forward<CreationTimeT>(value));
105 return *this;
106 }
108
110
113 inline AssessmentStatus GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 inline void SetStatus(AssessmentStatus value) {
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
129 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 void SetTags(TagsT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags = std::forward<TagsT>(value);
135 }
136 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
137 AssessmentInfo& WithTags(TagsT&& value) {
138 SetTags(std::forward<TagsT>(value));
139 return *this;
140 }
141 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
142 AssessmentInfo& AddTags(TagsKeyT&& key, TagsValueT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_assessmentArn;
150
151 AssessmentType m_assessmentType{AssessmentType::NOT_SET};
152
153 Aws::String m_clusterArn;
154
155 Aws::Utils::DateTime m_creationTime{};
156
158
160 bool m_assessmentArnHasBeenSet = false;
161 bool m_assessmentTypeHasBeenSet = false;
162 bool m_clusterArnHasBeenSet = false;
163 bool m_creationTimeHasBeenSet = false;
164 bool m_statusHasBeenSet = false;
165 bool m_tagsHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace Kafka
170} // namespace Aws
AssessmentInfo & WithCreationTime(CreationTimeT &&value)
AWS_KAFKA_API AssessmentInfo(Aws::Utils::Json::JsonView jsonValue)
AssessmentInfo & WithAssessmentType(AssessmentType value)
AssessmentInfo & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAssessmentArn() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_KAFKA_API AssessmentInfo()=default
AssessmentInfo & WithStatus(AssessmentStatus value)
const Aws::String & GetClusterArn() const
void SetStatus(AssessmentStatus value)
const Aws::Utils::DateTime & GetCreationTime() const
AssessmentStatus GetStatus() const
AssessmentInfo & WithAssessmentArn(AssessmentArnT &&value)
void SetClusterArn(ClusterArnT &&value)
void SetAssessmentType(AssessmentType value)
AssessmentInfo & WithTags(TagsT &&value)
AWS_KAFKA_API AssessmentInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(CreationTimeT &&value)
void SetAssessmentArn(AssessmentArnT &&value)
AssessmentInfo & WithClusterArn(ClusterArnT &&value)
AssessmentType GetAssessmentType() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue