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

Information about a reference when the referenceType is * ATTACHMENT. Otherwise, null.

See Also:

AWS * API Reference

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

Identifier of the attachment reference.

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

Identifier of the attachment reference.

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

Identifier of the attachment reference.

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

Identifier of the attachment reference.

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

Identifier of the attachment reference.

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

Identifier of the attachment reference.

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

Identifier of the attachment reference.

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

Identifier of the attachment reference.

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

The location path of the attachment reference.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The location path of the attachment reference.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The location path of the attachment reference.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The location path of the attachment reference.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The location path of the attachment reference.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The location path of the attachment reference.

*/ inline AttachmentReference& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The location path of the attachment reference.

*/ inline AttachmentReference& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The location path of the attachment reference.

*/ inline AttachmentReference& WithValue(const char* value) { SetValue(value); return *this;} /** *

Status of the attachment reference type.

*/ inline const ReferenceStatus& GetStatus() const{ return m_status; } /** *

Status of the attachment reference type.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Status of the attachment reference type.

*/ inline void SetStatus(const ReferenceStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Status of the attachment reference type.

*/ inline void SetStatus(ReferenceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Status of the attachment reference type.

*/ inline AttachmentReference& WithStatus(const ReferenceStatus& value) { SetStatus(value); return *this;} /** *

Status of the attachment reference type.

*/ inline AttachmentReference& WithStatus(ReferenceStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; ReferenceStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws