AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename EncryptionKeyT = Aws::String>
55 void SetEncryptionKey(EncryptionKeyT&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::forward<EncryptionKeyT>(value); }
56 template<typename EncryptionKeyT = Aws::String>
57 AwsCodeBuildProjectDetails& WithEncryptionKey(EncryptionKeyT&& value) { SetEncryptionKey(std::forward<EncryptionKeyT>(value)); return *this;}
59
61
64 inline const Aws::Vector<AwsCodeBuildProjectArtifactsDetails>& GetArtifacts() const { return m_artifacts; }
65 inline bool ArtifactsHasBeenSet() const { return m_artifactsHasBeenSet; }
66 template<typename ArtifactsT = Aws::Vector<AwsCodeBuildProjectArtifactsDetails>>
67 void SetArtifacts(ArtifactsT&& value) { m_artifactsHasBeenSet = true; m_artifacts = std::forward<ArtifactsT>(value); }
68 template<typename ArtifactsT = Aws::Vector<AwsCodeBuildProjectArtifactsDetails>>
69 AwsCodeBuildProjectDetails& WithArtifacts(ArtifactsT&& value) { SetArtifacts(std::forward<ArtifactsT>(value)); return *this;}
70 template<typename ArtifactsT = AwsCodeBuildProjectArtifactsDetails>
71 AwsCodeBuildProjectDetails& AddArtifacts(ArtifactsT&& value) { m_artifactsHasBeenSet = true; m_artifacts.emplace_back(std::forward<ArtifactsT>(value)); return *this; }
73
75
78 inline const AwsCodeBuildProjectEnvironment& GetEnvironment() const { return m_environment; }
79 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
80 template<typename EnvironmentT = AwsCodeBuildProjectEnvironment>
81 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
82 template<typename EnvironmentT = AwsCodeBuildProjectEnvironment>
83 AwsCodeBuildProjectDetails& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
85
87
90 inline const Aws::String& GetName() const { return m_name; }
91 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 template<typename NameT = Aws::String>
93 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
94 template<typename NameT = Aws::String>
95 AwsCodeBuildProjectDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
97
99
102 inline const AwsCodeBuildProjectSource& GetSource() const { return m_source; }
103 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
104 template<typename SourceT = AwsCodeBuildProjectSource>
105 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
106 template<typename SourceT = AwsCodeBuildProjectSource>
107 AwsCodeBuildProjectDetails& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
109
111
115 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
116 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
117 template<typename ServiceRoleT = Aws::String>
118 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
119 template<typename ServiceRoleT = Aws::String>
120 AwsCodeBuildProjectDetails& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
122
124
127 inline const AwsCodeBuildProjectLogsConfigDetails& GetLogsConfig() const { return m_logsConfig; }
128 inline bool LogsConfigHasBeenSet() const { return m_logsConfigHasBeenSet; }
129 template<typename LogsConfigT = AwsCodeBuildProjectLogsConfigDetails>
130 void SetLogsConfig(LogsConfigT&& value) { m_logsConfigHasBeenSet = true; m_logsConfig = std::forward<LogsConfigT>(value); }
131 template<typename LogsConfigT = AwsCodeBuildProjectLogsConfigDetails>
132 AwsCodeBuildProjectDetails& WithLogsConfig(LogsConfigT&& value) { SetLogsConfig(std::forward<LogsConfigT>(value)); return *this;}
134
136
139 inline const AwsCodeBuildProjectVpcConfig& GetVpcConfig() const { return m_vpcConfig; }
140 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
141 template<typename VpcConfigT = AwsCodeBuildProjectVpcConfig>
142 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
143 template<typename VpcConfigT = AwsCodeBuildProjectVpcConfig>
144 AwsCodeBuildProjectDetails& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
146
148
151 inline const Aws::Vector<AwsCodeBuildProjectArtifactsDetails>& GetSecondaryArtifacts() const { return m_secondaryArtifacts; }
152 inline bool SecondaryArtifactsHasBeenSet() const { return m_secondaryArtifactsHasBeenSet; }
153 template<typename SecondaryArtifactsT = Aws::Vector<AwsCodeBuildProjectArtifactsDetails>>
154 void SetSecondaryArtifacts(SecondaryArtifactsT&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = std::forward<SecondaryArtifactsT>(value); }
155 template<typename SecondaryArtifactsT = Aws::Vector<AwsCodeBuildProjectArtifactsDetails>>
156 AwsCodeBuildProjectDetails& WithSecondaryArtifacts(SecondaryArtifactsT&& value) { SetSecondaryArtifacts(std::forward<SecondaryArtifactsT>(value)); return *this;}
157 template<typename SecondaryArtifactsT = AwsCodeBuildProjectArtifactsDetails>
158 AwsCodeBuildProjectDetails& AddSecondaryArtifacts(SecondaryArtifactsT&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.emplace_back(std::forward<SecondaryArtifactsT>(value)); return *this; }
160 private:
161
162 Aws::String m_encryptionKey;
163 bool m_encryptionKeyHasBeenSet = false;
164
166 bool m_artifactsHasBeenSet = false;
167
168 AwsCodeBuildProjectEnvironment m_environment;
169 bool m_environmentHasBeenSet = false;
170
171 Aws::String m_name;
172 bool m_nameHasBeenSet = false;
173
175 bool m_sourceHasBeenSet = false;
176
177 Aws::String m_serviceRole;
178 bool m_serviceRoleHasBeenSet = false;
179
181 bool m_logsConfigHasBeenSet = false;
182
184 bool m_vpcConfigHasBeenSet = false;
185
187 bool m_secondaryArtifactsHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace SecurityHub
192} // namespace Aws
AWS_SECURITYHUB_API AwsCodeBuildProjectDetails()=default
const AwsCodeBuildProjectEnvironment & GetEnvironment() const
AwsCodeBuildProjectDetails & AddSecondaryArtifacts(SecondaryArtifactsT &&value)
AwsCodeBuildProjectDetails & WithName(NameT &&value)
AwsCodeBuildProjectDetails & WithEnvironment(EnvironmentT &&value)
const Aws::Vector< AwsCodeBuildProjectArtifactsDetails > & GetSecondaryArtifacts() const
const Aws::Vector< AwsCodeBuildProjectArtifactsDetails > & GetArtifacts() const
AwsCodeBuildProjectDetails & WithArtifacts(ArtifactsT &&value)
const AwsCodeBuildProjectVpcConfig & GetVpcConfig() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const AwsCodeBuildProjectLogsConfigDetails & GetLogsConfig() const
AwsCodeBuildProjectDetails & WithLogsConfig(LogsConfigT &&value)
AWS_SECURITYHUB_API AwsCodeBuildProjectDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsCodeBuildProjectDetails & WithSecondaryArtifacts(SecondaryArtifactsT &&value)
AwsCodeBuildProjectDetails & WithServiceRole(ServiceRoleT &&value)
AwsCodeBuildProjectDetails & WithSource(SourceT &&value)
AwsCodeBuildProjectDetails & WithVpcConfig(VpcConfigT &&value)
AwsCodeBuildProjectDetails & WithEncryptionKey(EncryptionKeyT &&value)
AwsCodeBuildProjectDetails & AddArtifacts(ArtifactsT &&value)
AWS_SECURITYHUB_API AwsCodeBuildProjectDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue