AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
42
43
45
48 inline const Aws::String& GetRepositoryArn() const{ return m_repositoryArn; }
49 inline bool RepositoryArnHasBeenSet() const { return m_repositoryArnHasBeenSet; }
50 inline void SetRepositoryArn(const Aws::String& value) { m_repositoryArnHasBeenSet = true; m_repositoryArn = value; }
51 inline void SetRepositoryArn(Aws::String&& value) { m_repositoryArnHasBeenSet = true; m_repositoryArn = std::move(value); }
52 inline void SetRepositoryArn(const char* value) { m_repositoryArnHasBeenSet = true; m_repositoryArn.assign(value); }
54 inline RepositoryScanningConfiguration& WithRepositoryArn(Aws::String&& value) { SetRepositoryArn(std::move(value)); return *this;}
55 inline RepositoryScanningConfiguration& WithRepositoryArn(const char* value) { SetRepositoryArn(value); return *this;}
57
59
62 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
63 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
64 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
65 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
66 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
68 inline RepositoryScanningConfiguration& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
69 inline RepositoryScanningConfiguration& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
71
73
76 inline bool GetScanOnPush() const{ return m_scanOnPush; }
77 inline bool ScanOnPushHasBeenSet() const { return m_scanOnPushHasBeenSet; }
78 inline void SetScanOnPush(bool value) { m_scanOnPushHasBeenSet = true; m_scanOnPush = value; }
79 inline RepositoryScanningConfiguration& WithScanOnPush(bool value) { SetScanOnPush(value); return *this;}
81
83
86 inline const ScanFrequency& GetScanFrequency() const{ return m_scanFrequency; }
87 inline bool ScanFrequencyHasBeenSet() const { return m_scanFrequencyHasBeenSet; }
88 inline void SetScanFrequency(const ScanFrequency& value) { m_scanFrequencyHasBeenSet = true; m_scanFrequency = value; }
89 inline void SetScanFrequency(ScanFrequency&& value) { m_scanFrequencyHasBeenSet = true; m_scanFrequency = std::move(value); }
91 inline RepositoryScanningConfiguration& WithScanFrequency(ScanFrequency&& value) { SetScanFrequency(std::move(value)); return *this;}
93
95
98 inline const Aws::Vector<ScanningRepositoryFilter>& GetAppliedScanFilters() const{ return m_appliedScanFilters; }
99 inline bool AppliedScanFiltersHasBeenSet() const { return m_appliedScanFiltersHasBeenSet; }
100 inline void SetAppliedScanFilters(const Aws::Vector<ScanningRepositoryFilter>& value) { m_appliedScanFiltersHasBeenSet = true; m_appliedScanFilters = value; }
101 inline void SetAppliedScanFilters(Aws::Vector<ScanningRepositoryFilter>&& value) { m_appliedScanFiltersHasBeenSet = true; m_appliedScanFilters = std::move(value); }
104 inline RepositoryScanningConfiguration& AddAppliedScanFilters(const ScanningRepositoryFilter& value) { m_appliedScanFiltersHasBeenSet = true; m_appliedScanFilters.push_back(value); return *this; }
105 inline RepositoryScanningConfiguration& AddAppliedScanFilters(ScanningRepositoryFilter&& value) { m_appliedScanFiltersHasBeenSet = true; m_appliedScanFilters.push_back(std::move(value)); return *this; }
107 private:
108
109 Aws::String m_repositoryArn;
110 bool m_repositoryArnHasBeenSet = false;
111
112 Aws::String m_repositoryName;
113 bool m_repositoryNameHasBeenSet = false;
114
115 bool m_scanOnPush;
116 bool m_scanOnPushHasBeenSet = false;
117
118 ScanFrequency m_scanFrequency;
119 bool m_scanFrequencyHasBeenSet = false;
120
121 Aws::Vector<ScanningRepositoryFilter> m_appliedScanFilters;
122 bool m_appliedScanFiltersHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace ECR
127} // namespace Aws
RepositoryScanningConfiguration & AddAppliedScanFilters(const ScanningRepositoryFilter &value)
RepositoryScanningConfiguration & WithAppliedScanFilters(Aws::Vector< ScanningRepositoryFilter > &&value)
const Aws::Vector< ScanningRepositoryFilter > & GetAppliedScanFilters() const
RepositoryScanningConfiguration & WithRepositoryArn(const Aws::String &value)
RepositoryScanningConfiguration & WithRepositoryName(Aws::String &&value)
RepositoryScanningConfiguration & WithAppliedScanFilters(const Aws::Vector< ScanningRepositoryFilter > &value)
void SetAppliedScanFilters(Aws::Vector< ScanningRepositoryFilter > &&value)
RepositoryScanningConfiguration & WithScanOnPush(bool value)
RepositoryScanningConfiguration & WithRepositoryName(const char *value)
RepositoryScanningConfiguration & WithScanFrequency(const ScanFrequency &value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
RepositoryScanningConfiguration & WithRepositoryArn(const char *value)
AWS_ECR_API RepositoryScanningConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetAppliedScanFilters(const Aws::Vector< ScanningRepositoryFilter > &value)
RepositoryScanningConfiguration & WithRepositoryArn(Aws::String &&value)
RepositoryScanningConfiguration & AddAppliedScanFilters(ScanningRepositoryFilter &&value)
RepositoryScanningConfiguration & WithRepositoryName(const Aws::String &value)
RepositoryScanningConfiguration & WithScanFrequency(ScanFrequency &&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