AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ReplicationConfiguration.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecr/model/ReplicationRule.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECR
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ECR_API ReplicationConfiguration() = default;
39
40
42
46 inline const Aws::Vector<ReplicationRule>& GetRules() const { return m_rules; }
47 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
48 template<typename RulesT = Aws::Vector<ReplicationRule>>
49 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
50 template<typename RulesT = Aws::Vector<ReplicationRule>>
51 ReplicationConfiguration& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
52 template<typename RulesT = ReplicationRule>
53 ReplicationConfiguration& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
55 private:
56
58 bool m_rulesHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace ECR
63} // 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