Files
2026-02-28 12:32:28 -05:00

82 lines
3.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ecr/ECR_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ECR
{
namespace Model
{
/**
* <p>An array of objects representing the destination for a replication
* rule.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ReplicationDestination">AWS
* API Reference</a></p>
*/
class ReplicationDestination
{
public:
AWS_ECR_API ReplicationDestination();
AWS_ECR_API ReplicationDestination(Aws::Utils::Json::JsonView jsonValue);
AWS_ECR_API ReplicationDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
///@{
/**
* <p>The Region to replicate to.</p>
*/
inline const Aws::String& GetRegion() const{ return m_region; }
inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
inline ReplicationDestination& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
inline ReplicationDestination& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
inline ReplicationDestination& WithRegion(const char* value) { SetRegion(value); return *this;}
///@}
///@{
/**
* <p>The Amazon Web Services account ID of the Amazon ECR private registry to
* replicate to. When configuring cross-Region replication within your own
* registry, specify your own account ID.</p>
*/
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
inline ReplicationDestination& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
inline ReplicationDestination& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
inline ReplicationDestination& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
///@}
private:
Aws::String m_region;
bool m_regionHasBeenSet = false;
Aws::String m_registryId;
bool m_registryIdHasBeenSet = false;
};
} // namespace Model
} // namespace ECR
} // namespace Aws