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

During a previous call, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. To get the next * batch of items in the list, call this operation again, adding the next token to * the call. To get all of the items in the list, keep calling this operation with * each subsequent next token that is returned, until no more next tokens are * returned.

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

During a previous call, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. To get the next * batch of items in the list, call this operation again, adding the next token to * the call. To get all of the items in the list, keep calling this operation with * each subsequent next token that is returned, until no more next tokens are * returned.

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

During a previous call, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. To get the next * batch of items in the list, call this operation again, adding the next token to * the call. To get all of the items in the list, keep calling this operation with * each subsequent next token that is returned, until no more next tokens are * returned.

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

During a previous call, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. To get the next * batch of items in the list, call this operation again, adding the next token to * the call. To get all of the items in the list, keep calling this operation with * each subsequent next token that is returned, until no more next tokens are * returned.

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

During a previous call, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. To get the next * batch of items in the list, call this operation again, adding the next token to * the call. To get all of the items in the list, keep calling this operation with * each subsequent next token that is returned, until no more next tokens are * returned.

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

During a previous call, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. To get the next * batch of items in the list, call this operation again, adding the next token to * the call. To get all of the items in the list, keep calling this operation with * each subsequent next token that is returned, until no more next tokens are * returned.

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

During a previous call, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. To get the next * batch of items in the list, call this operation again, adding the next token to * the call. To get all of the items in the list, keep calling this operation with * each subsequent next token that is returned, until no more next tokens are * returned.

*/ inline ListSharedProjectsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The list of ARNs for the build projects shared with the current Amazon Web * Services account or user.

*/ inline const Aws::Vector& GetProjects() const{ return m_projects; } /** *

The list of ARNs for the build projects shared with the current Amazon Web * Services account or user.

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

The list of ARNs for the build projects shared with the current Amazon Web * Services account or user.

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

The list of ARNs for the build projects shared with the current Amazon Web * Services account or user.

*/ inline ListSharedProjectsResult& WithProjects(const Aws::Vector& value) { SetProjects(value); return *this;} /** *

The list of ARNs for the build projects shared with the current Amazon Web * Services account or user.

*/ inline ListSharedProjectsResult& WithProjects(Aws::Vector&& value) { SetProjects(std::move(value)); return *this;} /** *

The list of ARNs for the build projects shared with the current Amazon Web * Services account or user.

*/ inline ListSharedProjectsResult& AddProjects(const Aws::String& value) { m_projects.push_back(value); return *this; } /** *

The list of ARNs for the build projects shared with the current Amazon Web * Services account or user.

*/ inline ListSharedProjectsResult& AddProjects(Aws::String&& value) { m_projects.push_back(std::move(value)); return *this; } /** *

The list of ARNs for the build projects shared with the current Amazon Web * Services account or user.

*/ inline ListSharedProjectsResult& AddProjects(const char* value) { m_projects.push_back(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 ListSharedProjectsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListSharedProjectsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListSharedProjectsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextToken; Aws::Vector m_projects; Aws::String m_requestId; }; } // namespace Model } // namespace CodeBuild } // namespace Aws