AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
39
40
42
46 inline const Aws::Vector<ReplicationRule>& GetRules() const{ return m_rules; }
47 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
48 inline void SetRules(const Aws::Vector<ReplicationRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
49 inline void SetRules(Aws::Vector<ReplicationRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
50 inline ReplicationConfiguration& WithRules(const Aws::Vector<ReplicationRule>& value) { SetRules(value); return *this;}
51 inline ReplicationConfiguration& WithRules(Aws::Vector<ReplicationRule>&& value) { SetRules(std::move(value)); return *this;}
52 inline ReplicationConfiguration& AddRules(const ReplicationRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
53 inline ReplicationConfiguration& AddRules(ReplicationRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
55 private:
56
58 bool m_rulesHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace ECR
63} // namespace Aws
ReplicationConfiguration & WithRules(Aws::Vector< ReplicationRule > &&value)
void SetRules(const Aws::Vector< ReplicationRule > &value)
const Aws::Vector< ReplicationRule > & GetRules() const
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicationConfiguration & WithRules(const Aws::Vector< ReplicationRule > &value)
void SetRules(Aws::Vector< ReplicationRule > &&value)
ReplicationConfiguration & AddRules(ReplicationRule &&value)
ReplicationConfiguration & AddRules(const ReplicationRule &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