/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace RAM { namespace Model { class GetResourceShareAssociationsResult { public: AWS_RAM_API GetResourceShareAssociationsResult(); AWS_RAM_API GetResourceShareAssociationsResult(const Aws::AmazonWebServiceResult& result); AWS_RAM_API GetResourceShareAssociationsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of objects that contain the details about the associations.

*/ inline const Aws::Vector& GetResourceShareAssociations() const{ return m_resourceShareAssociations; } /** *

An array of objects that contain the details about the associations.

*/ inline void SetResourceShareAssociations(const Aws::Vector& value) { m_resourceShareAssociations = value; } /** *

An array of objects that contain the details about the associations.

*/ inline void SetResourceShareAssociations(Aws::Vector&& value) { m_resourceShareAssociations = std::move(value); } /** *

An array of objects that contain the details about the associations.

*/ inline GetResourceShareAssociationsResult& WithResourceShareAssociations(const Aws::Vector& value) { SetResourceShareAssociations(value); return *this;} /** *

An array of objects that contain the details about the associations.

*/ inline GetResourceShareAssociationsResult& WithResourceShareAssociations(Aws::Vector&& value) { SetResourceShareAssociations(std::move(value)); return *this;} /** *

An array of objects that contain the details about the associations.

*/ inline GetResourceShareAssociationsResult& AddResourceShareAssociations(const ResourceShareAssociation& value) { m_resourceShareAssociations.push_back(value); return *this; } /** *

An array of objects that contain the details about the associations.

*/ inline GetResourceShareAssociationsResult& AddResourceShareAssociations(ResourceShareAssociation&& value) { m_resourceShareAssociations.push_back(std::move(value)); return *this; } /** *

If present, this value indicates that more output is available than is * included in the current response. Use this value in the NextToken * request parameter in a subsequent call to the operation to get the next part of * the output. You should repeat this until the NextToken response * element comes back as null. This indicates that this is the last * page of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If present, this value indicates that more output is available than is * included in the current response. Use this value in the NextToken * request parameter in a subsequent call to the operation to get the next part of * the output. You should repeat this until the NextToken response * element comes back as null. This indicates that this is the last * page of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

If present, this value indicates that more output is available than is * included in the current response. Use this value in the NextToken * request parameter in a subsequent call to the operation to get the next part of * the output. You should repeat this until the NextToken response * element comes back as null. This indicates that this is the last * page of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

If present, this value indicates that more output is available than is * included in the current response. Use this value in the NextToken * request parameter in a subsequent call to the operation to get the next part of * the output. You should repeat this until the NextToken response * element comes back as null. This indicates that this is the last * page of results.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

If present, this value indicates that more output is available than is * included in the current response. Use this value in the NextToken * request parameter in a subsequent call to the operation to get the next part of * the output. You should repeat this until the NextToken response * element comes back as null. This indicates that this is the last * page of results.

*/ inline GetResourceShareAssociationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If present, this value indicates that more output is available than is * included in the current response. Use this value in the NextToken * request parameter in a subsequent call to the operation to get the next part of * the output. You should repeat this until the NextToken response * element comes back as null. This indicates that this is the last * page of results.

*/ inline GetResourceShareAssociationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If present, this value indicates that more output is available than is * included in the current response. Use this value in the NextToken * request parameter in a subsequent call to the operation to get the next part of * the output. You should repeat this until the NextToken response * element comes back as null. This indicates that this is the last * page of results.

*/ inline GetResourceShareAssociationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetResourceShareAssociationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetResourceShareAssociationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetResourceShareAssociationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_resourceShareAssociations; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace RAM } // namespace Aws