AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicationRule.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/ReplicationDestination.h>
10#include <aws/ecr/model/RepositoryFilter.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECR
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ECR_API ReplicationRule();
41
42
44
47 inline const Aws::Vector<ReplicationDestination>& GetDestinations() const{ return m_destinations; }
48 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
49 inline void SetDestinations(const Aws::Vector<ReplicationDestination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
50 inline void SetDestinations(Aws::Vector<ReplicationDestination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
52 inline ReplicationRule& WithDestinations(Aws::Vector<ReplicationDestination>&& value) { SetDestinations(std::move(value)); return *this;}
53 inline ReplicationRule& AddDestinations(const ReplicationDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
54 inline ReplicationRule& AddDestinations(ReplicationDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
56
58
63 inline const Aws::Vector<RepositoryFilter>& GetRepositoryFilters() const{ return m_repositoryFilters; }
64 inline bool RepositoryFiltersHasBeenSet() const { return m_repositoryFiltersHasBeenSet; }
65 inline void SetRepositoryFilters(const Aws::Vector<RepositoryFilter>& value) { m_repositoryFiltersHasBeenSet = true; m_repositoryFilters = value; }
66 inline void SetRepositoryFilters(Aws::Vector<RepositoryFilter>&& value) { m_repositoryFiltersHasBeenSet = true; m_repositoryFilters = std::move(value); }
69 inline ReplicationRule& AddRepositoryFilters(const RepositoryFilter& value) { m_repositoryFiltersHasBeenSet = true; m_repositoryFilters.push_back(value); return *this; }
70 inline ReplicationRule& AddRepositoryFilters(RepositoryFilter&& value) { m_repositoryFiltersHasBeenSet = true; m_repositoryFilters.push_back(std::move(value)); return *this; }
72 private:
73
75 bool m_destinationsHasBeenSet = false;
76
77 Aws::Vector<RepositoryFilter> m_repositoryFilters;
78 bool m_repositoryFiltersHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ECR
83} // namespace Aws
const Aws::Vector< ReplicationDestination > & GetDestinations() const
const Aws::Vector< RepositoryFilter > & GetRepositoryFilters() const
ReplicationRule & AddRepositoryFilters(RepositoryFilter &&value)
ReplicationRule & AddDestinations(const ReplicationDestination &value)
AWS_ECR_API ReplicationRule(Aws::Utils::Json::JsonView jsonValue)
void SetDestinations(const Aws::Vector< ReplicationDestination > &value)
ReplicationRule & WithDestinations(Aws::Vector< ReplicationDestination > &&value)
void SetRepositoryFilters(const Aws::Vector< RepositoryFilter > &value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicationRule & AddDestinations(ReplicationDestination &&value)
ReplicationRule & AddRepositoryFilters(const RepositoryFilter &value)
AWS_ECR_API ReplicationRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDestinations(Aws::Vector< ReplicationDestination > &&value)
ReplicationRule & WithRepositoryFilters(Aws::Vector< RepositoryFilter > &&value)
ReplicationRule & WithDestinations(const Aws::Vector< ReplicationDestination > &value)
void SetRepositoryFilters(Aws::Vector< RepositoryFilter > &&value)
ReplicationRule & WithRepositoryFilters(const Aws::Vector< RepositoryFilter > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue