AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 const ScanType& GetScanType() const{ return m_scanType; }
52 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
53 inline void SetScanType(const ScanType& value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
54 inline void SetScanType(ScanType&& value) { m_scanTypeHasBeenSet = true; m_scanType = std::move(value); }
55 inline PutRegistryScanningConfigurationRequest& WithScanType(const ScanType& value) { SetScanType(value); return *this;}
56 inline PutRegistryScanningConfigurationRequest& WithScanType(ScanType&& value) { SetScanType(std::move(value)); return *this;}
58
60
65 inline const Aws::Vector<RegistryScanningRule>& GetRules() const{ return m_rules; }
66 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
67 inline void SetRules(const Aws::Vector<RegistryScanningRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
68 inline void SetRules(Aws::Vector<RegistryScanningRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
71 inline PutRegistryScanningConfigurationRequest& AddRules(const RegistryScanningRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
72 inline PutRegistryScanningConfigurationRequest& AddRules(RegistryScanningRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
74 private:
75
76 ScanType m_scanType;
77 bool m_scanTypeHasBeenSet = false;
78
80 bool m_rulesHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ECR
85} // namespace Aws
void SetRules(const Aws::Vector< RegistryScanningRule > &value)
PutRegistryScanningConfigurationRequest & WithScanType(const ScanType &value)
PutRegistryScanningConfigurationRequest & WithRules(const Aws::Vector< RegistryScanningRule > &value)
PutRegistryScanningConfigurationRequest & WithScanType(ScanType &&value)
PutRegistryScanningConfigurationRequest & WithRules(Aws::Vector< RegistryScanningRule > &&value)
PutRegistryScanningConfigurationRequest & AddRules(RegistryScanningRule &&value)
PutRegistryScanningConfigurationRequest & AddRules(const RegistryScanningRule &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