AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CodeRepositoryMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/CodeRepositoryOnDemandScan.h>
10#include <aws/inspector2/model/ProjectCodeSecurityScanConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
31 public:
32 AWS_INSPECTOR2_API CodeRepositoryMetadata() = default;
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetProjectName() const { return m_projectName; }
42 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
43 template <typename ProjectNameT = Aws::String>
44 void SetProjectName(ProjectNameT&& value) {
45 m_projectNameHasBeenSet = true;
46 m_projectName = std::forward<ProjectNameT>(value);
47 }
48 template <typename ProjectNameT = Aws::String>
49 CodeRepositoryMetadata& WithProjectName(ProjectNameT&& value) {
50 SetProjectName(std::forward<ProjectNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetIntegrationArn() const { return m_integrationArn; }
61 inline bool IntegrationArnHasBeenSet() const { return m_integrationArnHasBeenSet; }
62 template <typename IntegrationArnT = Aws::String>
63 void SetIntegrationArn(IntegrationArnT&& value) {
64 m_integrationArnHasBeenSet = true;
65 m_integrationArn = std::forward<IntegrationArnT>(value);
66 }
67 template <typename IntegrationArnT = Aws::String>
68 CodeRepositoryMetadata& WithIntegrationArn(IntegrationArnT&& value) {
69 SetIntegrationArn(std::forward<IntegrationArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetProviderType() const { return m_providerType; }
79 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
80 template <typename ProviderTypeT = Aws::String>
81 void SetProviderType(ProviderTypeT&& value) {
82 m_providerTypeHasBeenSet = true;
83 m_providerType = std::forward<ProviderTypeT>(value);
84 }
85 template <typename ProviderTypeT = Aws::String>
86 CodeRepositoryMetadata& WithProviderType(ProviderTypeT&& value) {
87 SetProviderType(std::forward<ProviderTypeT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetProviderTypeVisibility() const { return m_providerTypeVisibility; }
97 inline bool ProviderTypeVisibilityHasBeenSet() const { return m_providerTypeVisibilityHasBeenSet; }
98 template <typename ProviderTypeVisibilityT = Aws::String>
99 void SetProviderTypeVisibility(ProviderTypeVisibilityT&& value) {
100 m_providerTypeVisibilityHasBeenSet = true;
101 m_providerTypeVisibility = std::forward<ProviderTypeVisibilityT>(value);
102 }
103 template <typename ProviderTypeVisibilityT = Aws::String>
104 CodeRepositoryMetadata& WithProviderTypeVisibility(ProviderTypeVisibilityT&& value) {
105 SetProviderTypeVisibility(std::forward<ProviderTypeVisibilityT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetLastScannedCommitId() const { return m_lastScannedCommitId; }
115 inline bool LastScannedCommitIdHasBeenSet() const { return m_lastScannedCommitIdHasBeenSet; }
116 template <typename LastScannedCommitIdT = Aws::String>
117 void SetLastScannedCommitId(LastScannedCommitIdT&& value) {
118 m_lastScannedCommitIdHasBeenSet = true;
119 m_lastScannedCommitId = std::forward<LastScannedCommitIdT>(value);
120 }
121 template <typename LastScannedCommitIdT = Aws::String>
122 CodeRepositoryMetadata& WithLastScannedCommitId(LastScannedCommitIdT&& value) {
123 SetLastScannedCommitId(std::forward<LastScannedCommitIdT>(value));
124 return *this;
125 }
127
129
132 inline const ProjectCodeSecurityScanConfiguration& GetScanConfiguration() const { return m_scanConfiguration; }
133 inline bool ScanConfigurationHasBeenSet() const { return m_scanConfigurationHasBeenSet; }
134 template <typename ScanConfigurationT = ProjectCodeSecurityScanConfiguration>
135 void SetScanConfiguration(ScanConfigurationT&& value) {
136 m_scanConfigurationHasBeenSet = true;
137 m_scanConfiguration = std::forward<ScanConfigurationT>(value);
138 }
139 template <typename ScanConfigurationT = ProjectCodeSecurityScanConfiguration>
140 CodeRepositoryMetadata& WithScanConfiguration(ScanConfigurationT&& value) {
141 SetScanConfiguration(std::forward<ScanConfigurationT>(value));
142 return *this;
143 }
145
147
150 inline const CodeRepositoryOnDemandScan& GetOnDemandScan() const { return m_onDemandScan; }
151 inline bool OnDemandScanHasBeenSet() const { return m_onDemandScanHasBeenSet; }
152 template <typename OnDemandScanT = CodeRepositoryOnDemandScan>
153 void SetOnDemandScan(OnDemandScanT&& value) {
154 m_onDemandScanHasBeenSet = true;
155 m_onDemandScan = std::forward<OnDemandScanT>(value);
156 }
157 template <typename OnDemandScanT = CodeRepositoryOnDemandScan>
158 CodeRepositoryMetadata& WithOnDemandScan(OnDemandScanT&& value) {
159 SetOnDemandScan(std::forward<OnDemandScanT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_projectName;
165
166 Aws::String m_integrationArn;
167
168 Aws::String m_providerType;
169
170 Aws::String m_providerTypeVisibility;
171
172 Aws::String m_lastScannedCommitId;
173
174 ProjectCodeSecurityScanConfiguration m_scanConfiguration;
175
176 CodeRepositoryOnDemandScan m_onDemandScan;
177 bool m_projectNameHasBeenSet = false;
178 bool m_integrationArnHasBeenSet = false;
179 bool m_providerTypeHasBeenSet = false;
180 bool m_providerTypeVisibilityHasBeenSet = false;
181 bool m_lastScannedCommitIdHasBeenSet = false;
182 bool m_scanConfigurationHasBeenSet = false;
183 bool m_onDemandScanHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace Inspector2
188} // namespace Aws
AWS_INSPECTOR2_API CodeRepositoryMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeRepositoryMetadata & WithProviderTypeVisibility(ProviderTypeVisibilityT &&value)
CodeRepositoryMetadata & WithProviderType(ProviderTypeT &&value)
void SetProviderTypeVisibility(ProviderTypeVisibilityT &&value)
CodeRepositoryMetadata & WithIntegrationArn(IntegrationArnT &&value)
void SetLastScannedCommitId(LastScannedCommitIdT &&value)
CodeRepositoryMetadata & WithOnDemandScan(OnDemandScanT &&value)
const CodeRepositoryOnDemandScan & GetOnDemandScan() const
CodeRepositoryMetadata & WithScanConfiguration(ScanConfigurationT &&value)
const ProjectCodeSecurityScanConfiguration & GetScanConfiguration() const
AWS_INSPECTOR2_API CodeRepositoryMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
CodeRepositoryMetadata & WithLastScannedCommitId(LastScannedCommitIdT &&value)
CodeRepositoryMetadata & WithProjectName(ProjectNameT &&value)
AWS_INSPECTOR2_API CodeRepositoryMetadata()=default
void SetScanConfiguration(ScanConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue