AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PutRegistryScanningConfigurationRequest.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/ecr/ECRRequest.h>
9#include <aws/ecr/model/ScanType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecr/model/RegistryScanningRule.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECR
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutRegistryScanningConfiguration"; }
33
34 AWS_ECR_API Aws::String SerializePayload() const override;
35
37
38
40
51 inline ScanType GetScanType() const { return m_scanType; }
52 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
53 inline void SetScanType(ScanType value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
56
58
63 inline const Aws::Vector<RegistryScanningRule>& GetRules() const { return m_rules; }
64 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
65 template<typename RulesT = Aws::Vector<RegistryScanningRule>>
66 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
67 template<typename RulesT = Aws::Vector<RegistryScanningRule>>
68 PutRegistryScanningConfigurationRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
69 template<typename RulesT = RegistryScanningRule>
70 PutRegistryScanningConfigurationRequest& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
72 private:
73
74 ScanType m_scanType{ScanType::NOT_SET};
75 bool m_scanTypeHasBeenSet = false;
76
78 bool m_rulesHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ECR
83} // 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