98 lines
2.7 KiB
C
98 lines
2.7 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/qldb/QLDB_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace QLDB
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A structure that can contain a value in multiple encoding
|
|||
|
|
* formats.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/ValueHolder">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_QLDB_API ValueHolder
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
ValueHolder();
|
|||
|
|
ValueHolder(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
ValueHolder& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code>
|
|||
|
|
* structure.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetIonText() const{ return m_ionText; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code>
|
|||
|
|
* structure.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool IonTextHasBeenSet() const { return m_ionTextHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code>
|
|||
|
|
* structure.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIonText(const Aws::String& value) { m_ionTextHasBeenSet = true; m_ionText = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code>
|
|||
|
|
* structure.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIonText(Aws::String&& value) { m_ionTextHasBeenSet = true; m_ionText = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code>
|
|||
|
|
* structure.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIonText(const char* value) { m_ionTextHasBeenSet = true; m_ionText.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code>
|
|||
|
|
* structure.</p>
|
|||
|
|
*/
|
|||
|
|
inline ValueHolder& WithIonText(const Aws::String& value) { SetIonText(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code>
|
|||
|
|
* structure.</p>
|
|||
|
|
*/
|
|||
|
|
inline ValueHolder& WithIonText(Aws::String&& value) { SetIonText(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code>
|
|||
|
|
* structure.</p>
|
|||
|
|
*/
|
|||
|
|
inline ValueHolder& WithIonText(const char* value) { SetIonText(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_ionText;
|
|||
|
|
bool m_ionTextHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace QLDB
|
|||
|
|
} // namespace Aws
|