/**
* 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 QLDB
{
namespace Model
{
/**
* A structure that can contain a value in multiple encoding
* formats.
See Also:
AWS
* API Reference
*/
class ValueHolder
{
public:
AWS_QLDB_API ValueHolder();
AWS_QLDB_API ValueHolder(Aws::Utils::Json::JsonView jsonValue);
AWS_QLDB_API ValueHolder& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_QLDB_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* An Amazon Ion plaintext value contained in a ValueHolder
* structure.
*/
inline const Aws::String& GetIonText() const{ return m_ionText; }
/**
* An Amazon Ion plaintext value contained in a ValueHolder
* structure.
*/
inline bool IonTextHasBeenSet() const { return m_ionTextHasBeenSet; }
/**
* An Amazon Ion plaintext value contained in a ValueHolder
* structure.
*/
inline void SetIonText(const Aws::String& value) { m_ionTextHasBeenSet = true; m_ionText = value; }
/**
* An Amazon Ion plaintext value contained in a ValueHolder
* structure.
*/
inline void SetIonText(Aws::String&& value) { m_ionTextHasBeenSet = true; m_ionText = std::move(value); }
/**
* An Amazon Ion plaintext value contained in a ValueHolder
* structure.
*/
inline void SetIonText(const char* value) { m_ionTextHasBeenSet = true; m_ionText.assign(value); }
/**
* An Amazon Ion plaintext value contained in a ValueHolder
* structure.
*/
inline ValueHolder& WithIonText(const Aws::String& value) { SetIonText(value); return *this;}
/**
* An Amazon Ion plaintext value contained in a ValueHolder
* structure.
*/
inline ValueHolder& WithIonText(Aws::String&& value) { SetIonText(std::move(value)); return *this;}
/**
* An Amazon Ion plaintext value contained in a ValueHolder
* structure.
*/
inline ValueHolder& WithIonText(const char* value) { SetIonText(value); return *this;}
private:
Aws::String m_ionText;
bool m_ionTextHasBeenSet = false;
};
} // namespace Model
} // namespace QLDB
} // namespace Aws