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

The primary key for a KSDS data set.

See Also:

AWS API * Reference

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

A strictly positive integer value representing the length of the primary key. *

*/ inline int GetLength() const{ return m_length; } /** *

A strictly positive integer value representing the length of the primary key. *

*/ inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; } /** *

A strictly positive integer value representing the length of the primary key. *

*/ inline void SetLength(int value) { m_lengthHasBeenSet = true; m_length = value; } /** *

A strictly positive integer value representing the length of the primary key. *

*/ inline PrimaryKey& WithLength(int value) { SetLength(value); return *this;} /** *

A name for the Primary Key.

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

A name for the Primary Key.

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

A name for the Primary Key.

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

A name for the Primary Key.

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

A name for the Primary Key.

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

A name for the Primary Key.

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

A name for the Primary Key.

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

A name for the Primary Key.

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

A positive integer value representing the offset to mark the start of the * primary key in the record byte array.

*/ inline int GetOffset() const{ return m_offset; } /** *

A positive integer value representing the offset to mark the start of the * primary key in the record byte array.

*/ inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; } /** *

A positive integer value representing the offset to mark the start of the * primary key in the record byte array.

*/ inline void SetOffset(int value) { m_offsetHasBeenSet = true; m_offset = value; } /** *

A positive integer value representing the offset to mark the start of the * primary key in the record byte array.

*/ inline PrimaryKey& WithOffset(int value) { SetOffset(value); return *this;} private: int m_length; bool m_lengthHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; int m_offset; bool m_offsetHasBeenSet = false; }; } // namespace Model } // namespace MainframeModernization } // namespace Aws