AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PutRegistryScanningConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/ecr/ECRRequest.h>
9#include <aws/ecr/ECR_EXPORTS.h>
10#include <aws/ecr/model/RegistryScanningRule.h>
11#include <aws/ecr/model/ScanType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ECR {
17namespace Model {
18
22 public:
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutRegistryScanningConfiguration"; }
30
31 AWS_ECR_API Aws::String SerializePayload() const override;
32
34
36
47 inline ScanType GetScanType() const { return m_scanType; }
48 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
49 inline void SetScanType(ScanType value) {
50 m_scanTypeHasBeenSet = true;
51 m_scanType = value;
52 }
54 SetScanType(value);
55 return *this;
56 }
58
60
65 inline const Aws::Vector<RegistryScanningRule>& GetRules() const { return m_rules; }
66 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
67 template <typename RulesT = Aws::Vector<RegistryScanningRule>>
68 void SetRules(RulesT&& value) {
69 m_rulesHasBeenSet = true;
70 m_rules = std::forward<RulesT>(value);
71 }
72 template <typename RulesT = Aws::Vector<RegistryScanningRule>>
74 SetRules(std::forward<RulesT>(value));
75 return *this;
76 }
77 template <typename RulesT = RegistryScanningRule>
79 m_rulesHasBeenSet = true;
80 m_rules.emplace_back(std::forward<RulesT>(value));
81 return *this;
82 }
84 private:
85 ScanType m_scanType{ScanType::NOT_SET};
86
88 bool m_scanTypeHasBeenSet = false;
89 bool m_rulesHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace ECR
94} // namespace Aws
PutRegistryScanningConfigurationRequest & AddRules(RulesT &&value)
PutRegistryScanningConfigurationRequest & WithScanType(ScanType value)
PutRegistryScanningConfigurationRequest & WithRules(RulesT &&value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECR_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector