AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CodeRepositoryDetails.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/CodeRepositoryProviderType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR2_API CodeRepositoryDetails() = default;
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetProjectName() const { return m_projectName; }
41 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
42 template <typename ProjectNameT = Aws::String>
43 void SetProjectName(ProjectNameT&& value) {
44 m_projectNameHasBeenSet = true;
45 m_projectName = std::forward<ProjectNameT>(value);
46 }
47 template <typename ProjectNameT = Aws::String>
48 CodeRepositoryDetails& WithProjectName(ProjectNameT&& value) {
49 SetProjectName(std::forward<ProjectNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetIntegrationArn() const { return m_integrationArn; }
60 inline bool IntegrationArnHasBeenSet() const { return m_integrationArnHasBeenSet; }
61 template <typename IntegrationArnT = Aws::String>
62 void SetIntegrationArn(IntegrationArnT&& value) {
63 m_integrationArnHasBeenSet = true;
64 m_integrationArn = std::forward<IntegrationArnT>(value);
65 }
66 template <typename IntegrationArnT = Aws::String>
67 CodeRepositoryDetails& WithIntegrationArn(IntegrationArnT&& value) {
68 SetIntegrationArn(std::forward<IntegrationArnT>(value));
69 return *this;
70 }
72
74
77 inline CodeRepositoryProviderType GetProviderType() const { return m_providerType; }
78 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
80 m_providerTypeHasBeenSet = true;
81 m_providerType = value;
82 }
84 SetProviderType(value);
85 return *this;
86 }
88 private:
89 Aws::String m_projectName;
90
91 Aws::String m_integrationArn;
92
94 bool m_projectNameHasBeenSet = false;
95 bool m_integrationArnHasBeenSet = false;
96 bool m_providerTypeHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Inspector2
101} // namespace Aws
CodeRepositoryProviderType GetProviderType() const
CodeRepositoryDetails & WithProjectName(ProjectNameT &&value)
AWS_INSPECTOR2_API CodeRepositoryDetails()=default
void SetProviderType(CodeRepositoryProviderType value)
CodeRepositoryDetails & WithProviderType(CodeRepositoryProviderType value)
CodeRepositoryDetails & WithIntegrationArn(IntegrationArnT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API CodeRepositoryDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API CodeRepositoryDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue