132 lines
4.2 KiB
C
132 lines
4.2 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/cloudhsmv2/CloudHSMV2_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/cloudhsmv2/model/Backup.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
template<typename RESULT_TYPE>
|
|||
|
|
class AmazonWebServiceResult;
|
|||
|
|
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace CloudHSMV2
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
class AWS_CLOUDHSMV2_API DescribeBackupsResult
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
DescribeBackupsResult();
|
|||
|
|
DescribeBackupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
DescribeBackupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Backup>& GetBackups() const{ return m_backups; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetBackups(const Aws::Vector<Backup>& value) { m_backups = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetBackups(Aws::Vector<Backup>&& value) { m_backups = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeBackupsResult& WithBackups(const Aws::Vector<Backup>& value) { SetBackups(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeBackupsResult& WithBackups(Aws::Vector<Backup>&& value) { SetBackups(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeBackupsResult& AddBackups(const Backup& value) { m_backups.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeBackupsResult& AddBackups(Backup&& value) { m_backups.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An opaque string that indicates that the response contains only a subset of
|
|||
|
|
* backups. Use this value in a subsequent <code>DescribeBackups</code> request to
|
|||
|
|
* get more backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An opaque string that indicates that the response contains only a subset of
|
|||
|
|
* backups. Use this value in a subsequent <code>DescribeBackups</code> request to
|
|||
|
|
* get more backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An opaque string that indicates that the response contains only a subset of
|
|||
|
|
* backups. Use this value in a subsequent <code>DescribeBackups</code> request to
|
|||
|
|
* get more backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An opaque string that indicates that the response contains only a subset of
|
|||
|
|
* backups. Use this value in a subsequent <code>DescribeBackups</code> request to
|
|||
|
|
* get more backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An opaque string that indicates that the response contains only a subset of
|
|||
|
|
* backups. Use this value in a subsequent <code>DescribeBackups</code> request to
|
|||
|
|
* get more backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeBackupsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An opaque string that indicates that the response contains only a subset of
|
|||
|
|
* backups. Use this value in a subsequent <code>DescribeBackups</code> request to
|
|||
|
|
* get more backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeBackupsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An opaque string that indicates that the response contains only a subset of
|
|||
|
|
* backups. Use this value in a subsequent <code>DescribeBackups</code> request to
|
|||
|
|
* get more backups.</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeBackupsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::Vector<Backup> m_backups;
|
|||
|
|
|
|||
|
|
Aws::String m_nextToken;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace CloudHSMV2
|
|||
|
|
} // namespace Aws
|