AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateReportGroupRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/CodeBuildRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codebuild/model/ReportType.h>
11#include <aws/codebuild/model/ReportExportConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/codebuild/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CodeBuild
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CODEBUILD_API CreateReportGroupRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateReportGroup"; }
35
36 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateReportGroupRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline ReportType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(ReportType value) { m_typeHasBeenSet = true; m_type = value; }
60 inline CreateReportGroupRequest& WithType(ReportType value) { SetType(value); return *this;}
62
64
68 inline const ReportExportConfig& GetExportConfig() const { return m_exportConfig; }
69 inline bool ExportConfigHasBeenSet() const { return m_exportConfigHasBeenSet; }
70 template<typename ExportConfigT = ReportExportConfig>
71 void SetExportConfig(ExportConfigT&& value) { m_exportConfigHasBeenSet = true; m_exportConfig = std::forward<ExportConfigT>(value); }
72 template<typename ExportConfigT = ReportExportConfig>
73 CreateReportGroupRequest& WithExportConfig(ExportConfigT&& value) { SetExportConfig(std::forward<ExportConfigT>(value)); return *this;}
75
77
82 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template<typename TagsT = Aws::Vector<Tag>>
85 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
86 template<typename TagsT = Aws::Vector<Tag>>
87 CreateReportGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
88 template<typename TagsT = Tag>
89 CreateReportGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
91 private:
92
93 Aws::String m_name;
94 bool m_nameHasBeenSet = false;
95
97 bool m_typeHasBeenSet = false;
98
99 ReportExportConfig m_exportConfig;
100 bool m_exportConfigHasBeenSet = false;
101
102 Aws::Vector<Tag> m_tags;
103 bool m_tagsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace CodeBuild
108} // 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