/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* A wrapper structure that may contain the registry name and Amazon Resource
* Name (ARN).
See Also:
AWS API
* Reference
*/
class RegistryId
{
public:
AWS_GLUE_API RegistryId();
AWS_GLUE_API RegistryId(Aws::Utils::Json::JsonView jsonValue);
AWS_GLUE_API RegistryId& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Name of the registry. Used only for lookup. One of RegistryArn
* or RegistryName
has to be provided.
*/
inline const Aws::String& GetRegistryName() const{ return m_registryName; }
/**
* Name of the registry. Used only for lookup. One of RegistryArn
* or RegistryName
has to be provided.
*/
inline bool RegistryNameHasBeenSet() const { return m_registryNameHasBeenSet; }
/**
* Name of the registry. Used only for lookup. One of RegistryArn
* or RegistryName
has to be provided.
*/
inline void SetRegistryName(const Aws::String& value) { m_registryNameHasBeenSet = true; m_registryName = value; }
/**
* Name of the registry. Used only for lookup. One of RegistryArn
* or RegistryName
has to be provided.
*/
inline void SetRegistryName(Aws::String&& value) { m_registryNameHasBeenSet = true; m_registryName = std::move(value); }
/**
* Name of the registry. Used only for lookup. One of RegistryArn
* or RegistryName
has to be provided.
*/
inline void SetRegistryName(const char* value) { m_registryNameHasBeenSet = true; m_registryName.assign(value); }
/**
* Name of the registry. Used only for lookup. One of RegistryArn
* or RegistryName
has to be provided.
*/
inline RegistryId& WithRegistryName(const Aws::String& value) { SetRegistryName(value); return *this;}
/**
* Name of the registry. Used only for lookup. One of RegistryArn
* or RegistryName
has to be provided.
*/
inline RegistryId& WithRegistryName(Aws::String&& value) { SetRegistryName(std::move(value)); return *this;}
/**
* Name of the registry. Used only for lookup. One of RegistryArn
* or RegistryName
has to be provided.
*/
inline RegistryId& WithRegistryName(const char* value) { SetRegistryName(value); return *this;}
/**
* Arn of the registry to be updated. One of RegistryArn
or
* RegistryName
has to be provided.
*/
inline const Aws::String& GetRegistryArn() const{ return m_registryArn; }
/**
* Arn of the registry to be updated. One of RegistryArn
or
* RegistryName
has to be provided.
*/
inline bool RegistryArnHasBeenSet() const { return m_registryArnHasBeenSet; }
/**
* Arn of the registry to be updated. One of RegistryArn
or
* RegistryName
has to be provided.
*/
inline void SetRegistryArn(const Aws::String& value) { m_registryArnHasBeenSet = true; m_registryArn = value; }
/**
* Arn of the registry to be updated. One of RegistryArn
or
* RegistryName
has to be provided.
*/
inline void SetRegistryArn(Aws::String&& value) { m_registryArnHasBeenSet = true; m_registryArn = std::move(value); }
/**
* Arn of the registry to be updated. One of RegistryArn
or
* RegistryName
has to be provided.
*/
inline void SetRegistryArn(const char* value) { m_registryArnHasBeenSet = true; m_registryArn.assign(value); }
/**
* Arn of the registry to be updated. One of RegistryArn
or
* RegistryName
has to be provided.
*/
inline RegistryId& WithRegistryArn(const Aws::String& value) { SetRegistryArn(value); return *this;}
/**
* Arn of the registry to be updated. One of RegistryArn
or
* RegistryName
has to be provided.
*/
inline RegistryId& WithRegistryArn(Aws::String&& value) { SetRegistryArn(std::move(value)); return *this;}
/**
* Arn of the registry to be updated. One of RegistryArn
or
* RegistryName
has to be provided.
*/
inline RegistryId& WithRegistryArn(const char* value) { SetRegistryArn(value); return *this;}
private:
Aws::String m_registryName;
bool m_registryNameHasBeenSet = false;
Aws::String m_registryArn;
bool m_registryArnHasBeenSet = false;
};
} // namespace Model
} // namespace Glue
} // namespace Aws