/** * 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 XRay { namespace Model { /** *

An alias for an edge.

See Also:

AWS API * Reference

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

The canonical name of the alias.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The canonical name of the alias.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The canonical name of the alias.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The canonical name of the alias.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The canonical name of the alias.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The canonical name of the alias.

*/ inline Alias& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The canonical name of the alias.

*/ inline Alias& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The canonical name of the alias.

*/ inline Alias& WithName(const char* value) { SetName(value); return *this;} /** *

A list of names for the alias, including the canonical name.

*/ inline const Aws::Vector& GetNames() const{ return m_names; } /** *

A list of names for the alias, including the canonical name.

*/ inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; } /** *

A list of names for the alias, including the canonical name.

*/ inline void SetNames(const Aws::Vector& value) { m_namesHasBeenSet = true; m_names = value; } /** *

A list of names for the alias, including the canonical name.

*/ inline void SetNames(Aws::Vector&& value) { m_namesHasBeenSet = true; m_names = std::move(value); } /** *

A list of names for the alias, including the canonical name.

*/ inline Alias& WithNames(const Aws::Vector& value) { SetNames(value); return *this;} /** *

A list of names for the alias, including the canonical name.

*/ inline Alias& WithNames(Aws::Vector&& value) { SetNames(std::move(value)); return *this;} /** *

A list of names for the alias, including the canonical name.

*/ inline Alias& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; } /** *

A list of names for the alias, including the canonical name.

*/ inline Alias& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; } /** *

A list of names for the alias, including the canonical name.

*/ inline Alias& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; } /** *

The type of the alias.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of the alias.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the alias.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the alias.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the alias.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of the alias.

*/ inline Alias& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of the alias.

*/ inline Alias& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of the alias.

*/ inline Alias& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_names; bool m_namesHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws