AWS SDK for C++  1.9.106
AWS SDK for C++
ReplicationConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECR
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
45  inline const Aws::Vector<ReplicationRule>& GetRules() const{ return m_rules; }
46 
51  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
52 
57  inline void SetRules(const Aws::Vector<ReplicationRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
58 
63  inline void SetRules(Aws::Vector<ReplicationRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
64 
69  inline ReplicationConfiguration& WithRules(const Aws::Vector<ReplicationRule>& value) { SetRules(value); return *this;}
70 
75  inline ReplicationConfiguration& WithRules(Aws::Vector<ReplicationRule>&& value) { SetRules(std::move(value)); return *this;}
76 
81  inline ReplicationConfiguration& AddRules(const ReplicationRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
82 
87  inline ReplicationConfiguration& AddRules(ReplicationRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
88 
89  private:
90 
92  bool m_rulesHasBeenSet;
93  };
94 
95 } // namespace Model
96 } // namespace ECR
97 } // namespace Aws
Aws::ECR::Model::ReplicationConfiguration::GetRules
const Aws::Vector< ReplicationRule > & GetRules() const
Definition: ReplicationConfiguration.h:45
Aws::ECR::Model::ReplicationConfiguration::WithRules
ReplicationConfiguration & WithRules(Aws::Vector< ReplicationRule > &&value)
Definition: ReplicationConfiguration.h:75
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::ReplicationConfiguration::AddRules
ReplicationConfiguration & AddRules(ReplicationRule &&value)
Definition: ReplicationConfiguration.h:87
AWSVector.h
Aws::ECR::Model::ReplicationConfiguration::SetRules
void SetRules(Aws::Vector< ReplicationRule > &&value)
Definition: ReplicationConfiguration.h:63
Aws::ECR::Model::ReplicationConfiguration::ReplicationConfiguration
ReplicationConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::ReplicationConfiguration::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: ReplicationConfiguration.h:51
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::ReplicationConfiguration::WithRules
ReplicationConfiguration & WithRules(const Aws::Vector< ReplicationRule > &value)
Definition: ReplicationConfiguration.h:69
Aws::ECR::Model::ReplicationConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ECR_EXPORTS.h
Aws::ECR::Model::ReplicationConfiguration::operator=
ReplicationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::ReplicationConfiguration::SetRules
void SetRules(const Aws::Vector< ReplicationRule > &value)
Definition: ReplicationConfiguration.h:57
Aws::ECR::Model::ReplicationConfiguration::AddRules
ReplicationConfiguration & AddRules(const ReplicationRule &value)
Definition: ReplicationConfiguration.h:81
Aws::ECR::Model::ReplicationConfiguration::ReplicationConfiguration
ReplicationConfiguration()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECR::Model::ReplicationConfiguration
Definition: ReplicationConfiguration.h:33
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ReplicationRule.h
Aws::ECR::Model::ReplicationRule
Definition: ReplicationRule.h:35
Aws
Definition: AccessManagementClient.h:15