AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateReportGroupRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuildRequest.h>
8#include <aws/codebuild/CodeBuild_EXPORTS.h>
9#include <aws/codebuild/model/ReportExportConfig.h>
10#include <aws/codebuild/model/ReportType.h>
11#include <aws/codebuild/model/Tag.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CodeBuild {
19namespace Model {
20
24 public:
25 AWS_CODEBUILD_API CreateReportGroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateReportGroup"; }
32
33 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
34
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>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline ReportType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(ReportType value) {
62 m_typeHasBeenSet = true;
63 m_type = value;
64 }
66 SetType(value);
67 return *this;
68 }
70
72
76 inline const ReportExportConfig& GetExportConfig() const { return m_exportConfig; }
77 inline bool ExportConfigHasBeenSet() const { return m_exportConfigHasBeenSet; }
78 template <typename ExportConfigT = ReportExportConfig>
79 void SetExportConfig(ExportConfigT&& value) {
80 m_exportConfigHasBeenSet = true;
81 m_exportConfig = std::forward<ExportConfigT>(value);
82 }
83 template <typename ExportConfigT = ReportExportConfig>
85 SetExportConfig(std::forward<ExportConfigT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template <typename TagsT = Aws::Vector<Tag>>
99 void SetTags(TagsT&& value) {
100 m_tagsHasBeenSet = true;
101 m_tags = std::forward<TagsT>(value);
102 }
103 template <typename TagsT = Aws::Vector<Tag>>
105 SetTags(std::forward<TagsT>(value));
106 return *this;
107 }
108 template <typename TagsT = Tag>
110 m_tagsHasBeenSet = true;
111 m_tags.emplace_back(std::forward<TagsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_name;
117
119
120 ReportExportConfig m_exportConfig;
121
122 Aws::Vector<Tag> m_tags;
123 bool m_nameHasBeenSet = false;
124 bool m_typeHasBeenSet = false;
125 bool m_exportConfigHasBeenSet = false;
126 bool m_tagsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace CodeBuild
131} // namespace Aws
CreateReportGroupRequest & WithType(ReportType value)
AWS_CODEBUILD_API CreateReportGroupRequest()=default
virtual const char * GetServiceRequestName() const override
CreateReportGroupRequest & WithExportConfig(ExportConfigT &&value)
CreateReportGroupRequest & WithName(NameT &&value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateReportGroupRequest & AddTags(TagsT &&value)
CreateReportGroupRequest & WithTags(TagsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector