AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ReplicationConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/ecr/ECR_EXPORTS.h>
9#include <aws/ecr/model/ReplicationRule.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECR {
21namespace Model {
22
29 public:
30 AWS_ECR_API ReplicationConfiguration() = default;
34
36
40 inline const Aws::Vector<ReplicationRule>& GetRules() const { return m_rules; }
41 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
42 template <typename RulesT = Aws::Vector<ReplicationRule>>
43 void SetRules(RulesT&& value) {
44 m_rulesHasBeenSet = true;
45 m_rules = std::forward<RulesT>(value);
46 }
47 template <typename RulesT = Aws::Vector<ReplicationRule>>
49 SetRules(std::forward<RulesT>(value));
50 return *this;
51 }
52 template <typename RulesT = ReplicationRule>
54 m_rulesHasBeenSet = true;
55 m_rules.emplace_back(std::forward<RulesT>(value));
56 return *this;
57 }
59 private:
61 bool m_rulesHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace ECR
66} // namespace Aws
AWS_ECR_API ReplicationConfiguration()=default
ReplicationConfiguration & WithRules(RulesT &&value)
const Aws::Vector< ReplicationRule > & GetRules() const
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicationConfiguration & AddRules(RulesT &&value)
AWS_ECR_API ReplicationConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API ReplicationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue