125 lines
4.1 KiB
C++
125 lines
4.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ram/RAM_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/ram/model/ResourceShare.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace RAM
|
|
{
|
|
namespace Model
|
|
{
|
|
class AWS_RAM_API GetResourceSharesResult
|
|
{
|
|
public:
|
|
GetResourceSharesResult();
|
|
GetResourceSharesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
GetResourceSharesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>Information about the resource shares.</p>
|
|
*/
|
|
inline const Aws::Vector<ResourceShare>& GetResourceShares() const{ return m_resourceShares; }
|
|
|
|
/**
|
|
* <p>Information about the resource shares.</p>
|
|
*/
|
|
inline void SetResourceShares(const Aws::Vector<ResourceShare>& value) { m_resourceShares = value; }
|
|
|
|
/**
|
|
* <p>Information about the resource shares.</p>
|
|
*/
|
|
inline void SetResourceShares(Aws::Vector<ResourceShare>&& value) { m_resourceShares = std::move(value); }
|
|
|
|
/**
|
|
* <p>Information about the resource shares.</p>
|
|
*/
|
|
inline GetResourceSharesResult& WithResourceShares(const Aws::Vector<ResourceShare>& value) { SetResourceShares(value); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the resource shares.</p>
|
|
*/
|
|
inline GetResourceSharesResult& WithResourceShares(Aws::Vector<ResourceShare>&& value) { SetResourceShares(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the resource shares.</p>
|
|
*/
|
|
inline GetResourceSharesResult& AddResourceShares(const ResourceShare& value) { m_resourceShares.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>Information about the resource shares.</p>
|
|
*/
|
|
inline GetResourceSharesResult& AddResourceShares(ResourceShare&& value) { m_resourceShares.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is
|
|
* <code>null</code> when there are no more results to return.</p>
|
|
*/
|
|
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is
|
|
* <code>null</code> when there are no more results to return.</p>
|
|
*/
|
|
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is
|
|
* <code>null</code> when there are no more results to return.</p>
|
|
*/
|
|
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is
|
|
* <code>null</code> when there are no more results to return.</p>
|
|
*/
|
|
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is
|
|
* <code>null</code> when there are no more results to return.</p>
|
|
*/
|
|
inline GetResourceSharesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is
|
|
* <code>null</code> when there are no more results to return.</p>
|
|
*/
|
|
inline GetResourceSharesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is
|
|
* <code>null</code> when there are no more results to return.</p>
|
|
*/
|
|
inline GetResourceSharesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::Vector<ResourceShare> m_resourceShares;
|
|
|
|
Aws::String m_nextToken;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace RAM
|
|
} // namespace Aws
|