254 lines
8.5 KiB
C++
254 lines
8.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/kinesis/Kinesis_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/kinesis/model/HashKeyRange.h>
|
|
#include <aws/kinesis/model/SequenceNumberRange.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace Kinesis
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>A uniquely identified group of data records in a Kinesis data
|
|
* stream.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/Shard">AWS API
|
|
* Reference</a></p>
|
|
*/
|
|
class AWS_KINESIS_API Shard
|
|
{
|
|
public:
|
|
Shard();
|
|
Shard(Aws::Utils::Json::JsonView jsonValue);
|
|
Shard& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The unique identifier of the shard within the stream.</p>
|
|
*/
|
|
inline const Aws::String& GetShardId() const{ return m_shardId; }
|
|
|
|
/**
|
|
* <p>The unique identifier of the shard within the stream.</p>
|
|
*/
|
|
inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The unique identifier of the shard within the stream.</p>
|
|
*/
|
|
inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
|
|
|
|
/**
|
|
* <p>The unique identifier of the shard within the stream.</p>
|
|
*/
|
|
inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier of the shard within the stream.</p>
|
|
*/
|
|
inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier of the shard within the stream.</p>
|
|
*/
|
|
inline Shard& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier of the shard within the stream.</p>
|
|
*/
|
|
inline Shard& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier of the shard within the stream.</p>
|
|
*/
|
|
inline Shard& WithShardId(const char* value) { SetShardId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The shard ID of the shard's parent.</p>
|
|
*/
|
|
inline const Aws::String& GetParentShardId() const{ return m_parentShardId; }
|
|
|
|
/**
|
|
* <p>The shard ID of the shard's parent.</p>
|
|
*/
|
|
inline bool ParentShardIdHasBeenSet() const { return m_parentShardIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The shard ID of the shard's parent.</p>
|
|
*/
|
|
inline void SetParentShardId(const Aws::String& value) { m_parentShardIdHasBeenSet = true; m_parentShardId = value; }
|
|
|
|
/**
|
|
* <p>The shard ID of the shard's parent.</p>
|
|
*/
|
|
inline void SetParentShardId(Aws::String&& value) { m_parentShardIdHasBeenSet = true; m_parentShardId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The shard ID of the shard's parent.</p>
|
|
*/
|
|
inline void SetParentShardId(const char* value) { m_parentShardIdHasBeenSet = true; m_parentShardId.assign(value); }
|
|
|
|
/**
|
|
* <p>The shard ID of the shard's parent.</p>
|
|
*/
|
|
inline Shard& WithParentShardId(const Aws::String& value) { SetParentShardId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The shard ID of the shard's parent.</p>
|
|
*/
|
|
inline Shard& WithParentShardId(Aws::String&& value) { SetParentShardId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The shard ID of the shard's parent.</p>
|
|
*/
|
|
inline Shard& WithParentShardId(const char* value) { SetParentShardId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The shard ID of the shard adjacent to the shard's parent.</p>
|
|
*/
|
|
inline const Aws::String& GetAdjacentParentShardId() const{ return m_adjacentParentShardId; }
|
|
|
|
/**
|
|
* <p>The shard ID of the shard adjacent to the shard's parent.</p>
|
|
*/
|
|
inline bool AdjacentParentShardIdHasBeenSet() const { return m_adjacentParentShardIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The shard ID of the shard adjacent to the shard's parent.</p>
|
|
*/
|
|
inline void SetAdjacentParentShardId(const Aws::String& value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId = value; }
|
|
|
|
/**
|
|
* <p>The shard ID of the shard adjacent to the shard's parent.</p>
|
|
*/
|
|
inline void SetAdjacentParentShardId(Aws::String&& value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The shard ID of the shard adjacent to the shard's parent.</p>
|
|
*/
|
|
inline void SetAdjacentParentShardId(const char* value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId.assign(value); }
|
|
|
|
/**
|
|
* <p>The shard ID of the shard adjacent to the shard's parent.</p>
|
|
*/
|
|
inline Shard& WithAdjacentParentShardId(const Aws::String& value) { SetAdjacentParentShardId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The shard ID of the shard adjacent to the shard's parent.</p>
|
|
*/
|
|
inline Shard& WithAdjacentParentShardId(Aws::String&& value) { SetAdjacentParentShardId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The shard ID of the shard adjacent to the shard's parent.</p>
|
|
*/
|
|
inline Shard& WithAdjacentParentShardId(const char* value) { SetAdjacentParentShardId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The range of possible hash key values for the shard, which is a set of
|
|
* ordered contiguous positive integers.</p>
|
|
*/
|
|
inline const HashKeyRange& GetHashKeyRange() const{ return m_hashKeyRange; }
|
|
|
|
/**
|
|
* <p>The range of possible hash key values for the shard, which is a set of
|
|
* ordered contiguous positive integers.</p>
|
|
*/
|
|
inline bool HashKeyRangeHasBeenSet() const { return m_hashKeyRangeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The range of possible hash key values for the shard, which is a set of
|
|
* ordered contiguous positive integers.</p>
|
|
*/
|
|
inline void SetHashKeyRange(const HashKeyRange& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = value; }
|
|
|
|
/**
|
|
* <p>The range of possible hash key values for the shard, which is a set of
|
|
* ordered contiguous positive integers.</p>
|
|
*/
|
|
inline void SetHashKeyRange(HashKeyRange&& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = std::move(value); }
|
|
|
|
/**
|
|
* <p>The range of possible hash key values for the shard, which is a set of
|
|
* ordered contiguous positive integers.</p>
|
|
*/
|
|
inline Shard& WithHashKeyRange(const HashKeyRange& value) { SetHashKeyRange(value); return *this;}
|
|
|
|
/**
|
|
* <p>The range of possible hash key values for the shard, which is a set of
|
|
* ordered contiguous positive integers.</p>
|
|
*/
|
|
inline Shard& WithHashKeyRange(HashKeyRange&& value) { SetHashKeyRange(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The range of possible sequence numbers for the shard.</p>
|
|
*/
|
|
inline const SequenceNumberRange& GetSequenceNumberRange() const{ return m_sequenceNumberRange; }
|
|
|
|
/**
|
|
* <p>The range of possible sequence numbers for the shard.</p>
|
|
*/
|
|
inline bool SequenceNumberRangeHasBeenSet() const { return m_sequenceNumberRangeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The range of possible sequence numbers for the shard.</p>
|
|
*/
|
|
inline void SetSequenceNumberRange(const SequenceNumberRange& value) { m_sequenceNumberRangeHasBeenSet = true; m_sequenceNumberRange = value; }
|
|
|
|
/**
|
|
* <p>The range of possible sequence numbers for the shard.</p>
|
|
*/
|
|
inline void SetSequenceNumberRange(SequenceNumberRange&& value) { m_sequenceNumberRangeHasBeenSet = true; m_sequenceNumberRange = std::move(value); }
|
|
|
|
/**
|
|
* <p>The range of possible sequence numbers for the shard.</p>
|
|
*/
|
|
inline Shard& WithSequenceNumberRange(const SequenceNumberRange& value) { SetSequenceNumberRange(value); return *this;}
|
|
|
|
/**
|
|
* <p>The range of possible sequence numbers for the shard.</p>
|
|
*/
|
|
inline Shard& WithSequenceNumberRange(SequenceNumberRange&& value) { SetSequenceNumberRange(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_shardId;
|
|
bool m_shardIdHasBeenSet;
|
|
|
|
Aws::String m_parentShardId;
|
|
bool m_parentShardIdHasBeenSet;
|
|
|
|
Aws::String m_adjacentParentShardId;
|
|
bool m_adjacentParentShardIdHasBeenSet;
|
|
|
|
HashKeyRange m_hashKeyRange;
|
|
bool m_hashKeyRangeHasBeenSet;
|
|
|
|
SequenceNumberRange m_sequenceNumberRange;
|
|
bool m_sequenceNumberRangeHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Kinesis
|
|
} // namespace Aws
|