AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsCodeBuildProjectDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsCodeBuildProjectEnvironment.h>
11#include <aws/securityhub/model/AwsCodeBuildProjectSource.h>
12#include <aws/securityhub/model/AwsCodeBuildProjectLogsConfigDetails.h>
13#include <aws/securityhub/model/AwsCodeBuildProjectVpcConfig.h>
14#include <aws/securityhub/model/AwsCodeBuildProjectArtifactsDetails.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 SecurityHub
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_SECURITYHUB_API AwsCodeBuildProjectDetails();
43 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; }
53 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
54 inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
55 inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); }
56 inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); }
57 inline AwsCodeBuildProjectDetails& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;}
58 inline AwsCodeBuildProjectDetails& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;}
59 inline AwsCodeBuildProjectDetails& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;}
61
63
66 inline const Aws::Vector<AwsCodeBuildProjectArtifactsDetails>& GetArtifacts() const{ return m_artifacts; }
67 inline bool ArtifactsHasBeenSet() const { return m_artifactsHasBeenSet; }
68 inline void SetArtifacts(const Aws::Vector<AwsCodeBuildProjectArtifactsDetails>& value) { m_artifactsHasBeenSet = true; m_artifacts = value; }
69 inline void SetArtifacts(Aws::Vector<AwsCodeBuildProjectArtifactsDetails>&& value) { m_artifactsHasBeenSet = true; m_artifacts = std::move(value); }
72 inline AwsCodeBuildProjectDetails& AddArtifacts(const AwsCodeBuildProjectArtifactsDetails& value) { m_artifactsHasBeenSet = true; m_artifacts.push_back(value); return *this; }
73 inline AwsCodeBuildProjectDetails& AddArtifacts(AwsCodeBuildProjectArtifactsDetails&& value) { m_artifactsHasBeenSet = true; m_artifacts.push_back(std::move(value)); return *this; }
75
77
80 inline const AwsCodeBuildProjectEnvironment& GetEnvironment() const{ return m_environment; }
81 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
82 inline void SetEnvironment(const AwsCodeBuildProjectEnvironment& value) { m_environmentHasBeenSet = true; m_environment = value; }
83 inline void SetEnvironment(AwsCodeBuildProjectEnvironment&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
87
89
92 inline const Aws::String& GetName() const{ return m_name; }
93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
95 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
96 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
97 inline AwsCodeBuildProjectDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
98 inline AwsCodeBuildProjectDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
99 inline AwsCodeBuildProjectDetails& WithName(const char* value) { SetName(value); return *this;}
101
103
106 inline const AwsCodeBuildProjectSource& GetSource() const{ return m_source; }
107 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
108 inline void SetSource(const AwsCodeBuildProjectSource& value) { m_sourceHasBeenSet = true; m_source = value; }
109 inline void SetSource(AwsCodeBuildProjectSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
110 inline AwsCodeBuildProjectDetails& WithSource(const AwsCodeBuildProjectSource& value) { SetSource(value); return *this;}
111 inline AwsCodeBuildProjectDetails& WithSource(AwsCodeBuildProjectSource&& value) { SetSource(std::move(value)); return *this;}
113
115
119 inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
120 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
121 inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
122 inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); }
123 inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
124 inline AwsCodeBuildProjectDetails& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
125 inline AwsCodeBuildProjectDetails& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
126 inline AwsCodeBuildProjectDetails& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
128
130
133 inline const AwsCodeBuildProjectLogsConfigDetails& GetLogsConfig() const{ return m_logsConfig; }
134 inline bool LogsConfigHasBeenSet() const { return m_logsConfigHasBeenSet; }
135 inline void SetLogsConfig(const AwsCodeBuildProjectLogsConfigDetails& value) { m_logsConfigHasBeenSet = true; m_logsConfig = value; }
136 inline void SetLogsConfig(AwsCodeBuildProjectLogsConfigDetails&& value) { m_logsConfigHasBeenSet = true; m_logsConfig = std::move(value); }
140
142
145 inline const AwsCodeBuildProjectVpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
146 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
147 inline void SetVpcConfig(const AwsCodeBuildProjectVpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
148 inline void SetVpcConfig(AwsCodeBuildProjectVpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
150 inline AwsCodeBuildProjectDetails& WithVpcConfig(AwsCodeBuildProjectVpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
152
154
157 inline const Aws::Vector<AwsCodeBuildProjectArtifactsDetails>& GetSecondaryArtifacts() const{ return m_secondaryArtifacts; }
158 inline bool SecondaryArtifactsHasBeenSet() const { return m_secondaryArtifactsHasBeenSet; }
159 inline void SetSecondaryArtifacts(const Aws::Vector<AwsCodeBuildProjectArtifactsDetails>& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = value; }
160 inline void SetSecondaryArtifacts(Aws::Vector<AwsCodeBuildProjectArtifactsDetails>&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = std::move(value); }
163 inline AwsCodeBuildProjectDetails& AddSecondaryArtifacts(const AwsCodeBuildProjectArtifactsDetails& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.push_back(value); return *this; }
164 inline AwsCodeBuildProjectDetails& AddSecondaryArtifacts(AwsCodeBuildProjectArtifactsDetails&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.push_back(std::move(value)); return *this; }
166 private:
167
168 Aws::String m_encryptionKey;
169 bool m_encryptionKeyHasBeenSet = false;
170
172 bool m_artifactsHasBeenSet = false;
173
174 AwsCodeBuildProjectEnvironment m_environment;
175 bool m_environmentHasBeenSet = false;
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
181 bool m_sourceHasBeenSet = false;
182
183 Aws::String m_serviceRole;
184 bool m_serviceRoleHasBeenSet = false;
185
187 bool m_logsConfigHasBeenSet = false;
188
190 bool m_vpcConfigHasBeenSet = false;
191
193 bool m_secondaryArtifactsHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace SecurityHub
198} // namespace Aws
void SetSource(const AwsCodeBuildProjectSource &value)
AwsCodeBuildProjectDetails & WithEncryptionKey(const Aws::String &value)
const AwsCodeBuildProjectEnvironment & GetEnvironment() const
AwsCodeBuildProjectDetails & WithSecondaryArtifacts(const Aws::Vector< AwsCodeBuildProjectArtifactsDetails > &value)
void SetEnvironment(const AwsCodeBuildProjectEnvironment &value)
void SetSecondaryArtifacts(Aws::Vector< AwsCodeBuildProjectArtifactsDetails > &&value)
void SetArtifacts(Aws::Vector< AwsCodeBuildProjectArtifactsDetails > &&value)
AwsCodeBuildProjectDetails & WithName(const Aws::String &value)
AwsCodeBuildProjectDetails & AddArtifacts(AwsCodeBuildProjectArtifactsDetails &&value)
AwsCodeBuildProjectDetails & WithArtifacts(Aws::Vector< AwsCodeBuildProjectArtifactsDetails > &&value)
AwsCodeBuildProjectDetails & WithEncryptionKey(Aws::String &&value)
const Aws::Vector< AwsCodeBuildProjectArtifactsDetails > & GetSecondaryArtifacts() const
AwsCodeBuildProjectDetails & WithServiceRole(const char *value)
void SetLogsConfig(const AwsCodeBuildProjectLogsConfigDetails &value)
const Aws::Vector< AwsCodeBuildProjectArtifactsDetails > & GetArtifacts() const
AwsCodeBuildProjectDetails & WithSecondaryArtifacts(Aws::Vector< AwsCodeBuildProjectArtifactsDetails > &&value)
void SetSecondaryArtifacts(const Aws::Vector< AwsCodeBuildProjectArtifactsDetails > &value)
void SetEnvironment(AwsCodeBuildProjectEnvironment &&value)
AwsCodeBuildProjectDetails & WithVpcConfig(AwsCodeBuildProjectVpcConfig &&value)
void SetLogsConfig(AwsCodeBuildProjectLogsConfigDetails &&value)
AwsCodeBuildProjectDetails & WithName(Aws::String &&value)
AwsCodeBuildProjectDetails & WithSource(AwsCodeBuildProjectSource &&value)
const AwsCodeBuildProjectVpcConfig & GetVpcConfig() const
AwsCodeBuildProjectDetails & AddSecondaryArtifacts(const AwsCodeBuildProjectArtifactsDetails &value)
void SetArtifacts(const Aws::Vector< AwsCodeBuildProjectArtifactsDetails > &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const AwsCodeBuildProjectLogsConfigDetails & GetLogsConfig() const
AwsCodeBuildProjectDetails & WithVpcConfig(const AwsCodeBuildProjectVpcConfig &value)
AwsCodeBuildProjectDetails & WithEnvironment(AwsCodeBuildProjectEnvironment &&value)
AwsCodeBuildProjectDetails & WithServiceRole(Aws::String &&value)
AwsCodeBuildProjectDetails & WithEnvironment(const AwsCodeBuildProjectEnvironment &value)
AwsCodeBuildProjectDetails & AddSecondaryArtifacts(AwsCodeBuildProjectArtifactsDetails &&value)
void SetVpcConfig(AwsCodeBuildProjectVpcConfig &&value)
AWS_SECURITYHUB_API AwsCodeBuildProjectDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsCodeBuildProjectDetails & WithSource(const AwsCodeBuildProjectSource &value)
AwsCodeBuildProjectDetails & WithLogsConfig(const AwsCodeBuildProjectLogsConfigDetails &value)
void SetVpcConfig(const AwsCodeBuildProjectVpcConfig &value)
AwsCodeBuildProjectDetails & WithLogsConfig(AwsCodeBuildProjectLogsConfigDetails &&value)
AwsCodeBuildProjectDetails & AddArtifacts(const AwsCodeBuildProjectArtifactsDetails &value)
AwsCodeBuildProjectDetails & WithEncryptionKey(const char *value)
AwsCodeBuildProjectDetails & WithArtifacts(const Aws::Vector< AwsCodeBuildProjectArtifactsDetails > &value)
AwsCodeBuildProjectDetails & WithServiceRole(const Aws::String &value)
AWS_SECURITYHUB_API AwsCodeBuildProjectDetails(Aws::Utils::Json::JsonView jsonValue)
AwsCodeBuildProjectDetails & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue