/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECR { namespace Model { /** *

The replication configuration for a registry.

See Also:

AWS * API Reference

*/ class ReplicationConfiguration { public: AWS_ECR_API ReplicationConfiguration(); AWS_ECR_API ReplicationConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_ECR_API ReplicationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An array of objects representing the replication destinations and repository * filters for a replication configuration.

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

An array of objects representing the replication destinations and repository * filters for a replication configuration.

*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *

An array of objects representing the replication destinations and repository * filters for a replication configuration.

*/ inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } /** *

An array of objects representing the replication destinations and repository * filters for a replication configuration.

*/ inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } /** *

An array of objects representing the replication destinations and repository * filters for a replication configuration.

*/ inline ReplicationConfiguration& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

An array of objects representing the replication destinations and repository * filters for a replication configuration.

*/ inline ReplicationConfiguration& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

An array of objects representing the replication destinations and repository * filters for a replication configuration.

*/ inline ReplicationConfiguration& AddRules(const ReplicationRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *

An array of objects representing the replication destinations and repository * filters for a replication configuration.

*/ inline ReplicationConfiguration& AddRules(ReplicationRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } private: Aws::Vector m_rules; bool m_rulesHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws