AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateReportGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateReportGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateReportGroupRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const ReportType& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const ReportType& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(ReportType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline CreateReportGroupRequest& WithType(const ReportType& value) { SetType(value); return *this;}
64 inline CreateReportGroupRequest& WithType(ReportType&& value) { SetType(std::move(value)); return *this;}
66
68
72 inline const ReportExportConfig& GetExportConfig() const{ return m_exportConfig; }
73 inline bool ExportConfigHasBeenSet() const { return m_exportConfigHasBeenSet; }
74 inline void SetExportConfig(const ReportExportConfig& value) { m_exportConfigHasBeenSet = true; m_exportConfig = value; }
75 inline void SetExportConfig(ReportExportConfig&& value) { m_exportConfigHasBeenSet = true; m_exportConfig = std::move(value); }
76 inline CreateReportGroupRequest& WithExportConfig(const ReportExportConfig& value) { SetExportConfig(value); return *this;}
77 inline CreateReportGroupRequest& WithExportConfig(ReportExportConfig&& value) { SetExportConfig(std::move(value)); return *this;}
79
81
86 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
89 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
90 inline CreateReportGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
91 inline CreateReportGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
92 inline CreateReportGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
93 inline CreateReportGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
95 private:
96
97 Aws::String m_name;
98 bool m_nameHasBeenSet = false;
99
100 ReportType m_type;
101 bool m_typeHasBeenSet = false;
102
103 ReportExportConfig m_exportConfig;
104 bool m_exportConfigHasBeenSet = false;
105
106 Aws::Vector<Tag> m_tags;
107 bool m_tagsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CodeBuild
112} // namespace Aws
CreateReportGroupRequest & WithType(const ReportType &value)
CreateReportGroupRequest & WithExportConfig(const ReportExportConfig &value)
CreateReportGroupRequest & WithName(const char *value)
CreateReportGroupRequest & WithName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateReportGroupRequest & WithName(Aws::String &&value)
CreateReportGroupRequest & WithType(ReportType &&value)
void SetExportConfig(const ReportExportConfig &value)
CreateReportGroupRequest & AddTags(const Tag &value)
CreateReportGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateReportGroupRequest & AddTags(Tag &&value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateReportGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateReportGroupRequest & WithExportConfig(ReportExportConfig &&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