/** * 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 { /** *

Well-formed data on a contact, used by agents to complete a contact request. * You can have up to 4,096 UTF-8 bytes across all references for a * contact.

See Also:

AWS * API Reference

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

A valid value for the reference. For example, for a URL reference, a * formatted URL that is displayed to an agent in the Contact Control Panel * (CCP).

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

A valid value for the reference. For example, for a URL reference, a * formatted URL that is displayed to an agent in the Contact Control Panel * (CCP).

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

A valid value for the reference. For example, for a URL reference, a * formatted URL that is displayed to an agent in the Contact Control Panel * (CCP).

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

A valid value for the reference. For example, for a URL reference, a * formatted URL that is displayed to an agent in the Contact Control Panel * (CCP).

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

A valid value for the reference. For example, for a URL reference, a * formatted URL that is displayed to an agent in the Contact Control Panel * (CCP).

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

A valid value for the reference. For example, for a URL reference, a * formatted URL that is displayed to an agent in the Contact Control Panel * (CCP).

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

A valid value for the reference. For example, for a URL reference, a * formatted URL that is displayed to an agent in the Contact Control Panel * (CCP).

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

A valid value for the reference. For example, for a URL reference, a * formatted URL that is displayed to an agent in the Contact Control Panel * (CCP).

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

The type of the reference. DATE must be of type Epoch timestamp. *

*/ inline const ReferenceType& GetType() const{ return m_type; } /** *

The type of the reference. DATE must be of type Epoch timestamp. *

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

The type of the reference. DATE must be of type Epoch timestamp. *

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

The type of the reference. DATE must be of type Epoch timestamp. *

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

The type of the reference. DATE must be of type Epoch timestamp. *

*/ inline Reference& WithType(const ReferenceType& value) { SetType(value); return *this;} /** *

The type of the reference. DATE must be of type Epoch timestamp. *

*/ inline Reference& WithType(ReferenceType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; ReferenceType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws