AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ReportGroup.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/ReportExportConfig.h>
9#include <aws/codebuild/model/ReportGroupStatusType.h>
10#include <aws/codebuild/model/ReportType.h>
11#include <aws/codebuild/model/Tag.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeBuild {
26namespace Model {
27
37 public:
38 AWS_CODEBUILD_API ReportGroup() = default;
39 AWS_CODEBUILD_API ReportGroup(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEBUILD_API ReportGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template <typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) {
51 m_arnHasBeenSet = true;
52 m_arn = std::forward<ArnT>(value);
53 }
54 template <typename ArnT = Aws::String>
55 ReportGroup& WithArn(ArnT&& value) {
56 SetArn(std::forward<ArnT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template <typename NameT = Aws::String>
68 void SetName(NameT&& value) {
69 m_nameHasBeenSet = true;
70 m_name = std::forward<NameT>(value);
71 }
72 template <typename NameT = Aws::String>
73 ReportGroup& WithName(NameT&& value) {
74 SetName(std::forward<NameT>(value));
75 return *this;
76 }
78
80
86 inline ReportType GetType() const { return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(ReportType value) {
89 m_typeHasBeenSet = true;
90 m_type = value;
91 }
93 SetType(value);
94 return *this;
95 }
97
99
103 inline const ReportExportConfig& GetExportConfig() const { return m_exportConfig; }
104 inline bool ExportConfigHasBeenSet() const { return m_exportConfigHasBeenSet; }
105 template <typename ExportConfigT = ReportExportConfig>
106 void SetExportConfig(ExportConfigT&& value) {
107 m_exportConfigHasBeenSet = true;
108 m_exportConfig = std::forward<ExportConfigT>(value);
109 }
110 template <typename ExportConfigT = ReportExportConfig>
111 ReportGroup& WithExportConfig(ExportConfigT&& value) {
112 SetExportConfig(std::forward<ExportConfigT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
122 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
123 template <typename CreatedT = Aws::Utils::DateTime>
124 void SetCreated(CreatedT&& value) {
125 m_createdHasBeenSet = true;
126 m_created = std::forward<CreatedT>(value);
127 }
128 template <typename CreatedT = Aws::Utils::DateTime>
129 ReportGroup& WithCreated(CreatedT&& value) {
130 SetCreated(std::forward<CreatedT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
140 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
141 template <typename LastModifiedT = Aws::Utils::DateTime>
142 void SetLastModified(LastModifiedT&& value) {
143 m_lastModifiedHasBeenSet = true;
144 m_lastModified = std::forward<LastModifiedT>(value);
145 }
146 template <typename LastModifiedT = Aws::Utils::DateTime>
147 ReportGroup& WithLastModified(LastModifiedT&& value) {
148 SetLastModified(std::forward<LastModifiedT>(value));
149 return *this;
150 }
152
154
159 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 template <typename TagsT = Aws::Vector<Tag>>
162 void SetTags(TagsT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags = std::forward<TagsT>(value);
165 }
166 template <typename TagsT = Aws::Vector<Tag>>
167 ReportGroup& WithTags(TagsT&& value) {
168 SetTags(std::forward<TagsT>(value));
169 return *this;
170 }
171 template <typename TagsT = Tag>
172 ReportGroup& AddTags(TagsT&& value) {
173 m_tagsHasBeenSet = true;
174 m_tags.emplace_back(std::forward<TagsT>(value));
175 return *this;
176 }
178
180
186 inline ReportGroupStatusType GetStatus() const { return m_status; }
187 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
188 inline void SetStatus(ReportGroupStatusType value) {
189 m_statusHasBeenSet = true;
190 m_status = value;
191 }
193 SetStatus(value);
194 return *this;
195 }
197 private:
198 Aws::String m_arn;
199
200 Aws::String m_name;
201
203
204 ReportExportConfig m_exportConfig;
205
206 Aws::Utils::DateTime m_created{};
207
208 Aws::Utils::DateTime m_lastModified{};
209
210 Aws::Vector<Tag> m_tags;
211
213 bool m_arnHasBeenSet = false;
214 bool m_nameHasBeenSet = false;
215 bool m_typeHasBeenSet = false;
216 bool m_exportConfigHasBeenSet = false;
217 bool m_createdHasBeenSet = false;
218 bool m_lastModifiedHasBeenSet = false;
219 bool m_tagsHasBeenSet = false;
220 bool m_statusHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace CodeBuild
225} // namespace Aws
ReportGroup & WithName(NameT &&value)
Definition ReportGroup.h:73
const ReportExportConfig & GetExportConfig() const
ReportGroup & WithCreated(CreatedT &&value)
const Aws::Utils::DateTime & GetCreated() const
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(ReportType value)
Definition ReportGroup.h:88
void SetCreated(CreatedT &&value)
ReportGroup & WithLastModified(LastModifiedT &&value)
const Aws::String & GetName() const
Definition ReportGroup.h:65
void SetStatus(ReportGroupStatusType value)
const Aws::String & GetArn() const
Definition ReportGroup.h:47
AWS_CODEBUILD_API ReportGroup()=default
void SetLastModified(LastModifiedT &&value)
ReportGroup & WithStatus(ReportGroupStatusType value)
ReportGroup & WithExportConfig(ExportConfigT &&value)
ReportGroupStatusType GetStatus() const
ReportGroup & AddTags(TagsT &&value)
AWS_CODEBUILD_API ReportGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExportConfig(ExportConfigT &&value)
ReportGroup & WithArn(ArnT &&value)
Definition ReportGroup.h:55
const Aws::Vector< Tag > & GetTags() const
ReportGroup & WithTags(TagsT &&value)
ReportGroup & WithType(ReportType value)
Definition ReportGroup.h:92
AWS_CODEBUILD_API ReportGroup(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastModified() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue