AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CodeRepositoryMetadata.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/CodeRepositoryOnDemandScan.h>
10#include <aws/inspector2/model/ProjectCodeSecurityScanConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_INSPECTOR2_API CodeRepositoryMetadata() = default;
40 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetIntegrationArn() const { return m_integrationArn; }
49 inline bool IntegrationArnHasBeenSet() const { return m_integrationArnHasBeenSet; }
50 template<typename IntegrationArnT = Aws::String>
51 void SetIntegrationArn(IntegrationArnT&& value) { m_integrationArnHasBeenSet = true; m_integrationArn = std::forward<IntegrationArnT>(value); }
52 template<typename IntegrationArnT = Aws::String>
53 CodeRepositoryMetadata& WithIntegrationArn(IntegrationArnT&& value) { SetIntegrationArn(std::forward<IntegrationArnT>(value)); return *this;}
55
57
60 inline const Aws::String& GetLastScannedCommitId() const { return m_lastScannedCommitId; }
61 inline bool LastScannedCommitIdHasBeenSet() const { return m_lastScannedCommitIdHasBeenSet; }
62 template<typename LastScannedCommitIdT = Aws::String>
63 void SetLastScannedCommitId(LastScannedCommitIdT&& value) { m_lastScannedCommitIdHasBeenSet = true; m_lastScannedCommitId = std::forward<LastScannedCommitIdT>(value); }
64 template<typename LastScannedCommitIdT = Aws::String>
65 CodeRepositoryMetadata& WithLastScannedCommitId(LastScannedCommitIdT&& value) { SetLastScannedCommitId(std::forward<LastScannedCommitIdT>(value)); return *this;}
67
69
72 inline const CodeRepositoryOnDemandScan& GetOnDemandScan() const { return m_onDemandScan; }
73 inline bool OnDemandScanHasBeenSet() const { return m_onDemandScanHasBeenSet; }
74 template<typename OnDemandScanT = CodeRepositoryOnDemandScan>
75 void SetOnDemandScan(OnDemandScanT&& value) { m_onDemandScanHasBeenSet = true; m_onDemandScan = std::forward<OnDemandScanT>(value); }
76 template<typename OnDemandScanT = CodeRepositoryOnDemandScan>
77 CodeRepositoryMetadata& WithOnDemandScan(OnDemandScanT&& value) { SetOnDemandScan(std::forward<OnDemandScanT>(value)); return *this;}
79
81
84 inline const Aws::String& GetProjectName() const { return m_projectName; }
85 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
86 template<typename ProjectNameT = Aws::String>
87 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
88 template<typename ProjectNameT = Aws::String>
89 CodeRepositoryMetadata& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
91
93
96 inline const Aws::String& GetProviderType() const { return m_providerType; }
97 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
98 template<typename ProviderTypeT = Aws::String>
99 void SetProviderType(ProviderTypeT&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::forward<ProviderTypeT>(value); }
100 template<typename ProviderTypeT = Aws::String>
101 CodeRepositoryMetadata& WithProviderType(ProviderTypeT&& value) { SetProviderType(std::forward<ProviderTypeT>(value)); return *this;}
103
105
108 inline const Aws::String& GetProviderTypeVisibility() const { return m_providerTypeVisibility; }
109 inline bool ProviderTypeVisibilityHasBeenSet() const { return m_providerTypeVisibilityHasBeenSet; }
110 template<typename ProviderTypeVisibilityT = Aws::String>
111 void SetProviderTypeVisibility(ProviderTypeVisibilityT&& value) { m_providerTypeVisibilityHasBeenSet = true; m_providerTypeVisibility = std::forward<ProviderTypeVisibilityT>(value); }
112 template<typename ProviderTypeVisibilityT = Aws::String>
113 CodeRepositoryMetadata& WithProviderTypeVisibility(ProviderTypeVisibilityT&& value) { SetProviderTypeVisibility(std::forward<ProviderTypeVisibilityT>(value)); return *this;}
115
117
120 inline const ProjectCodeSecurityScanConfiguration& GetScanConfiguration() const { return m_scanConfiguration; }
121 inline bool ScanConfigurationHasBeenSet() const { return m_scanConfigurationHasBeenSet; }
122 template<typename ScanConfigurationT = ProjectCodeSecurityScanConfiguration>
123 void SetScanConfiguration(ScanConfigurationT&& value) { m_scanConfigurationHasBeenSet = true; m_scanConfiguration = std::forward<ScanConfigurationT>(value); }
124 template<typename ScanConfigurationT = ProjectCodeSecurityScanConfiguration>
125 CodeRepositoryMetadata& WithScanConfiguration(ScanConfigurationT&& value) { SetScanConfiguration(std::forward<ScanConfigurationT>(value)); return *this;}
127 private:
128
129 Aws::String m_integrationArn;
130 bool m_integrationArnHasBeenSet = false;
131
132 Aws::String m_lastScannedCommitId;
133 bool m_lastScannedCommitIdHasBeenSet = false;
134
135 CodeRepositoryOnDemandScan m_onDemandScan;
136 bool m_onDemandScanHasBeenSet = false;
137
138 Aws::String m_projectName;
139 bool m_projectNameHasBeenSet = false;
140
141 Aws::String m_providerType;
142 bool m_providerTypeHasBeenSet = false;
143
144 Aws::String m_providerTypeVisibility;
145 bool m_providerTypeVisibilityHasBeenSet = false;
146
147 ProjectCodeSecurityScanConfiguration m_scanConfiguration;
148 bool m_scanConfigurationHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace Inspector2
153} // 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