191 lines
7.1 KiB
C
191 lines
7.1 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/ebs/EBS_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 EBS
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A block of data in an Amazon Elastic Block Store snapshot that is different
|
|||
|
|
* from another snapshot of the same volume/snapshot lineage.</p><p><h3>See
|
|||
|
|
* Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ebs-2019-11-02/ChangedBlock">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_EBS_API ChangedBlock
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
ChangedBlock();
|
|||
|
|
ChangedBlock(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
ChangedBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block index.</p>
|
|||
|
|
*/
|
|||
|
|
inline int GetBlockIndex() const{ return m_blockIndex; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block index.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool BlockIndexHasBeenSet() const { return m_blockIndexHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block index.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetBlockIndex(int value) { m_blockIndexHasBeenSet = true; m_blockIndex = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block index.</p>
|
|||
|
|
*/
|
|||
|
|
inline ChangedBlock& WithBlockIndex(int value) { SetBlockIndex(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>FirstSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation. This value is absent
|
|||
|
|
* if the first snapshot does not have the changed block that is on the second
|
|||
|
|
* snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetFirstBlockToken() const{ return m_firstBlockToken; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>FirstSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation. This value is absent
|
|||
|
|
* if the first snapshot does not have the changed block that is on the second
|
|||
|
|
* snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool FirstBlockTokenHasBeenSet() const { return m_firstBlockTokenHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>FirstSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation. This value is absent
|
|||
|
|
* if the first snapshot does not have the changed block that is on the second
|
|||
|
|
* snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFirstBlockToken(const Aws::String& value) { m_firstBlockTokenHasBeenSet = true; m_firstBlockToken = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>FirstSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation. This value is absent
|
|||
|
|
* if the first snapshot does not have the changed block that is on the second
|
|||
|
|
* snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFirstBlockToken(Aws::String&& value) { m_firstBlockTokenHasBeenSet = true; m_firstBlockToken = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>FirstSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation. This value is absent
|
|||
|
|
* if the first snapshot does not have the changed block that is on the second
|
|||
|
|
* snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFirstBlockToken(const char* value) { m_firstBlockTokenHasBeenSet = true; m_firstBlockToken.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>FirstSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation. This value is absent
|
|||
|
|
* if the first snapshot does not have the changed block that is on the second
|
|||
|
|
* snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline ChangedBlock& WithFirstBlockToken(const Aws::String& value) { SetFirstBlockToken(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>FirstSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation. This value is absent
|
|||
|
|
* if the first snapshot does not have the changed block that is on the second
|
|||
|
|
* snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline ChangedBlock& WithFirstBlockToken(Aws::String&& value) { SetFirstBlockToken(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>FirstSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation. This value is absent
|
|||
|
|
* if the first snapshot does not have the changed block that is on the second
|
|||
|
|
* snapshot.</p>
|
|||
|
|
*/
|
|||
|
|
inline ChangedBlock& WithFirstBlockToken(const char* value) { SetFirstBlockToken(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>SecondSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSecondBlockToken() const{ return m_secondBlockToken; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>SecondSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SecondBlockTokenHasBeenSet() const { return m_secondBlockTokenHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>SecondSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSecondBlockToken(const Aws::String& value) { m_secondBlockTokenHasBeenSet = true; m_secondBlockToken = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>SecondSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSecondBlockToken(Aws::String&& value) { m_secondBlockTokenHasBeenSet = true; m_secondBlockToken = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>SecondSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSecondBlockToken(const char* value) { m_secondBlockTokenHasBeenSet = true; m_secondBlockToken.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>SecondSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation.</p>
|
|||
|
|
*/
|
|||
|
|
inline ChangedBlock& WithSecondBlockToken(const Aws::String& value) { SetSecondBlockToken(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>SecondSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation.</p>
|
|||
|
|
*/
|
|||
|
|
inline ChangedBlock& WithSecondBlockToken(Aws::String&& value) { SetSecondBlockToken(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The block token for the block index of the <code>SecondSnapshotId</code>
|
|||
|
|
* specified in the <code>ListChangedBlocks</code> operation.</p>
|
|||
|
|
*/
|
|||
|
|
inline ChangedBlock& WithSecondBlockToken(const char* value) { SetSecondBlockToken(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
int m_blockIndex;
|
|||
|
|
bool m_blockIndexHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_firstBlockToken;
|
|||
|
|
bool m_firstBlockTokenHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_secondBlockToken;
|
|||
|
|
bool m_secondBlockTokenHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace EBS
|
|||
|
|
} // namespace Aws
|