AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReportGroup.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codebuild/model/ReportType.h>
10#include <aws/codebuild/model/ReportExportConfig.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/codebuild/model/ReportGroupStatusType.h>
14#include <aws/codebuild/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace CodeBuild
28{
29namespace Model
30{
31
41 {
42 public:
43 AWS_CODEBUILD_API ReportGroup() = default;
44 AWS_CODEBUILD_API ReportGroup(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CODEBUILD_API ReportGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetArn() const { return m_arn; }
54 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
55 template<typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
57 template<typename ArnT = Aws::String>
58 ReportGroup& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
69 template<typename NameT = Aws::String>
70 ReportGroup& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
72
74
80 inline ReportType GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(ReportType value) { m_typeHasBeenSet = true; m_type = value; }
83 inline ReportGroup& WithType(ReportType value) { SetType(value); return *this;}
85
87
91 inline const ReportExportConfig& GetExportConfig() const { return m_exportConfig; }
92 inline bool ExportConfigHasBeenSet() const { return m_exportConfigHasBeenSet; }
93 template<typename ExportConfigT = ReportExportConfig>
94 void SetExportConfig(ExportConfigT&& value) { m_exportConfigHasBeenSet = true; m_exportConfig = std::forward<ExportConfigT>(value); }
95 template<typename ExportConfigT = ReportExportConfig>
96 ReportGroup& WithExportConfig(ExportConfigT&& value) { SetExportConfig(std::forward<ExportConfigT>(value)); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
104 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
105 template<typename CreatedT = Aws::Utils::DateTime>
106 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
107 template<typename CreatedT = Aws::Utils::DateTime>
108 ReportGroup& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
116 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
117 template<typename LastModifiedT = Aws::Utils::DateTime>
118 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
119 template<typename LastModifiedT = Aws::Utils::DateTime>
120 ReportGroup& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
122
124
129 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template<typename TagsT = Aws::Vector<Tag>>
132 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
133 template<typename TagsT = Aws::Vector<Tag>>
134 ReportGroup& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
135 template<typename TagsT = Tag>
136 ReportGroup& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
138
140
146 inline ReportGroupStatusType GetStatus() const { return m_status; }
147 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
148 inline void SetStatus(ReportGroupStatusType value) { m_statusHasBeenSet = true; m_status = value; }
149 inline ReportGroup& WithStatus(ReportGroupStatusType value) { SetStatus(value); return *this;}
151 private:
152
153 Aws::String m_arn;
154 bool m_arnHasBeenSet = false;
155
156 Aws::String m_name;
157 bool m_nameHasBeenSet = false;
158
160 bool m_typeHasBeenSet = false;
161
162 ReportExportConfig m_exportConfig;
163 bool m_exportConfigHasBeenSet = false;
164
165 Aws::Utils::DateTime m_created{};
166 bool m_createdHasBeenSet = false;
167
168 Aws::Utils::DateTime m_lastModified{};
169 bool m_lastModifiedHasBeenSet = false;
170
171 Aws::Vector<Tag> m_tags;
172 bool m_tagsHasBeenSet = false;
173
175 bool m_statusHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace CodeBuild
180} // namespace Aws
ReportGroup & WithName(NameT &&value)
Definition ReportGroup.h:70
const ReportExportConfig & GetExportConfig() const
Definition ReportGroup.h:91
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:82
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:53
AWS_CODEBUILD_API ReportGroup()=default
void SetLastModified(LastModifiedT &&value)
ReportGroup & WithStatus(ReportGroupStatusType value)
ReportGroup & WithExportConfig(ExportConfigT &&value)
Definition ReportGroup.h:96
ReportGroupStatusType GetStatus() const
ReportGroup & AddTags(TagsT &&value)
AWS_CODEBUILD_API ReportGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExportConfig(ExportConfigT &&value)
Definition ReportGroup.h:94
ReportGroup & WithArn(ArnT &&value)
Definition ReportGroup.h:58
const Aws::Vector< Tag > & GetTags() const
ReportGroup & WithTags(TagsT &&value)
ReportGroup & WithType(ReportType value)
Definition ReportGroup.h:83
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