159 lines
6.5 KiB
C
159 lines
6.5 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/ds/DirectoryService_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/ds/model/Snapshot.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
template<typename RESULT_TYPE>
|
|||
|
|
class AmazonWebServiceResult;
|
|||
|
|
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace DirectoryService
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
/**
|
|||
|
|
* <p>Contains the results of the <a>DescribeSnapshots</a> operation.</p><p><h3>See
|
|||
|
|
* Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSnapshotsResult">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_DIRECTORYSERVICE_API DescribeSnapshotsResult
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
DescribeSnapshotsResult();
|
|||
|
|
DescribeSnapshotsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
DescribeSnapshotsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The list of <a>Snapshot</a> objects that were retrieved.</p> <p>It is
|
|||
|
|
* possible that this list contains less than the number of items specified in the
|
|||
|
|
* <i>Limit</i> member of the request. This occurs if there are less than the
|
|||
|
|
* requested number of items left to retrieve, or if the limitations of the
|
|||
|
|
* operation have been exceeded.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Snapshot>& GetSnapshots() const{ return m_snapshots; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The list of <a>Snapshot</a> objects that were retrieved.</p> <p>It is
|
|||
|
|
* possible that this list contains less than the number of items specified in the
|
|||
|
|
* <i>Limit</i> member of the request. This occurs if there are less than the
|
|||
|
|
* requested number of items left to retrieve, or if the limitations of the
|
|||
|
|
* operation have been exceeded.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSnapshots(const Aws::Vector<Snapshot>& value) { m_snapshots = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The list of <a>Snapshot</a> objects that were retrieved.</p> <p>It is
|
|||
|
|
* possible that this list contains less than the number of items specified in the
|
|||
|
|
* <i>Limit</i> member of the request. This occurs if there are less than the
|
|||
|
|
* requested number of items left to retrieve, or if the limitations of the
|
|||
|
|
* operation have been exceeded.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSnapshots(Aws::Vector<Snapshot>&& value) { m_snapshots = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The list of <a>Snapshot</a> objects that were retrieved.</p> <p>It is
|
|||
|
|
* possible that this list contains less than the number of items specified in the
|
|||
|
|
* <i>Limit</i> member of the request. This occurs if there are less than the
|
|||
|
|
* requested number of items left to retrieve, or if the limitations of the
|
|||
|
|
* operation have been exceeded.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeSnapshotsResult& WithSnapshots(const Aws::Vector<Snapshot>& value) { SetSnapshots(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The list of <a>Snapshot</a> objects that were retrieved.</p> <p>It is
|
|||
|
|
* possible that this list contains less than the number of items specified in the
|
|||
|
|
* <i>Limit</i> member of the request. This occurs if there are less than the
|
|||
|
|
* requested number of items left to retrieve, or if the limitations of the
|
|||
|
|
* operation have been exceeded.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeSnapshotsResult& WithSnapshots(Aws::Vector<Snapshot>&& value) { SetSnapshots(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The list of <a>Snapshot</a> objects that were retrieved.</p> <p>It is
|
|||
|
|
* possible that this list contains less than the number of items specified in the
|
|||
|
|
* <i>Limit</i> member of the request. This occurs if there are less than the
|
|||
|
|
* requested number of items left to retrieve, or if the limitations of the
|
|||
|
|
* operation have been exceeded.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeSnapshotsResult& AddSnapshots(const Snapshot& value) { m_snapshots.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The list of <a>Snapshot</a> objects that were retrieved.</p> <p>It is
|
|||
|
|
* possible that this list contains less than the number of items specified in the
|
|||
|
|
* <i>Limit</i> member of the request. This occurs if there are less than the
|
|||
|
|
* requested number of items left to retrieve, or if the limitations of the
|
|||
|
|
* operation have been exceeded.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeSnapshotsResult& AddSnapshots(Snapshot&& value) { m_snapshots.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If not null, more results are available. Pass this value in the
|
|||
|
|
* <i>NextToken</i> member of a subsequent call to <a>DescribeSnapshots</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If not null, more results are available. Pass this value in the
|
|||
|
|
* <i>NextToken</i> member of a subsequent call to <a>DescribeSnapshots</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If not null, more results are available. Pass this value in the
|
|||
|
|
* <i>NextToken</i> member of a subsequent call to <a>DescribeSnapshots</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If not null, more results are available. Pass this value in the
|
|||
|
|
* <i>NextToken</i> member of a subsequent call to <a>DescribeSnapshots</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If not null, more results are available. Pass this value in the
|
|||
|
|
* <i>NextToken</i> member of a subsequent call to <a>DescribeSnapshots</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeSnapshotsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If not null, more results are available. Pass this value in the
|
|||
|
|
* <i>NextToken</i> member of a subsequent call to <a>DescribeSnapshots</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeSnapshotsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If not null, more results are available. Pass this value in the
|
|||
|
|
* <i>NextToken</i> member of a subsequent call to <a>DescribeSnapshots</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeSnapshotsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::Vector<Snapshot> m_snapshots;
|
|||
|
|
|
|||
|
|
Aws::String m_nextToken;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace DirectoryService
|
|||
|
|
} // namespace Aws
|