AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RepositoryScanningConfiguration.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecr/model/ScanFrequency.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecr/model/ScanningRepositoryFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ECR
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ECR_API RepositoryScanningConfiguration() = default;
42
43
45
48 inline const Aws::String& GetRepositoryArn() const { return m_repositoryArn; }
49 inline bool RepositoryArnHasBeenSet() const { return m_repositoryArnHasBeenSet; }
50 template<typename RepositoryArnT = Aws::String>
51 void SetRepositoryArn(RepositoryArnT&& value) { m_repositoryArnHasBeenSet = true; m_repositoryArn = std::forward<RepositoryArnT>(value); }
52 template<typename RepositoryArnT = Aws::String>
53 RepositoryScanningConfiguration& WithRepositoryArn(RepositoryArnT&& value) { SetRepositoryArn(std::forward<RepositoryArnT>(value)); return *this;}
55
57
60 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
61 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
62 template<typename RepositoryNameT = Aws::String>
63 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
64 template<typename RepositoryNameT = Aws::String>
65 RepositoryScanningConfiguration& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
67
69
72 inline bool GetScanOnPush() const { return m_scanOnPush; }
73 inline bool ScanOnPushHasBeenSet() const { return m_scanOnPushHasBeenSet; }
74 inline void SetScanOnPush(bool value) { m_scanOnPushHasBeenSet = true; m_scanOnPush = value; }
75 inline RepositoryScanningConfiguration& WithScanOnPush(bool value) { SetScanOnPush(value); return *this;}
77
79
82 inline ScanFrequency GetScanFrequency() const { return m_scanFrequency; }
83 inline bool ScanFrequencyHasBeenSet() const { return m_scanFrequencyHasBeenSet; }
84 inline void SetScanFrequency(ScanFrequency value) { m_scanFrequencyHasBeenSet = true; m_scanFrequency = value; }
87
89
92 inline const Aws::Vector<ScanningRepositoryFilter>& GetAppliedScanFilters() const { return m_appliedScanFilters; }
93 inline bool AppliedScanFiltersHasBeenSet() const { return m_appliedScanFiltersHasBeenSet; }
94 template<typename AppliedScanFiltersT = Aws::Vector<ScanningRepositoryFilter>>
95 void SetAppliedScanFilters(AppliedScanFiltersT&& value) { m_appliedScanFiltersHasBeenSet = true; m_appliedScanFilters = std::forward<AppliedScanFiltersT>(value); }
96 template<typename AppliedScanFiltersT = Aws::Vector<ScanningRepositoryFilter>>
97 RepositoryScanningConfiguration& WithAppliedScanFilters(AppliedScanFiltersT&& value) { SetAppliedScanFilters(std::forward<AppliedScanFiltersT>(value)); return *this;}
98 template<typename AppliedScanFiltersT = ScanningRepositoryFilter>
99 RepositoryScanningConfiguration& AddAppliedScanFilters(AppliedScanFiltersT&& value) { m_appliedScanFiltersHasBeenSet = true; m_appliedScanFilters.emplace_back(std::forward<AppliedScanFiltersT>(value)); return *this; }
101 private:
102
103 Aws::String m_repositoryArn;
104 bool m_repositoryArnHasBeenSet = false;
105
106 Aws::String m_repositoryName;
107 bool m_repositoryNameHasBeenSet = false;
108
109 bool m_scanOnPush{false};
110 bool m_scanOnPushHasBeenSet = false;
111
112 ScanFrequency m_scanFrequency{ScanFrequency::NOT_SET};
113 bool m_scanFrequencyHasBeenSet = false;
114
115 Aws::Vector<ScanningRepositoryFilter> m_appliedScanFilters;
116 bool m_appliedScanFiltersHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ECR
121} // namespace Aws
RepositoryScanningConfiguration & AddAppliedScanFilters(AppliedScanFiltersT &&value)
RepositoryScanningConfiguration & WithScanFrequency(ScanFrequency value)
const Aws::Vector< ScanningRepositoryFilter > & GetAppliedScanFilters() const
RepositoryScanningConfiguration & WithScanOnPush(bool value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECR_API RepositoryScanningConfiguration(Aws::Utils::Json::JsonView jsonValue)
RepositoryScanningConfiguration & WithRepositoryName(RepositoryNameT &&value)
RepositoryScanningConfiguration & WithAppliedScanFilters(AppliedScanFiltersT &&value)
RepositoryScanningConfiguration & WithRepositoryArn(RepositoryArnT &&value)
AWS_ECR_API RepositoryScanningConfiguration & operator=(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