/** * 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 CodeDeploy { namespace Model { /** *

Represents the output of a ListGitHubAccountTokenNames * operation.

See Also:

AWS * API Reference

*/ class ListGitHubAccountTokenNamesResult { public: AWS_CODEDEPLOY_API ListGitHubAccountTokenNamesResult(); AWS_CODEDEPLOY_API ListGitHubAccountTokenNamesResult(const Aws::AmazonWebServiceResult& result); AWS_CODEDEPLOY_API ListGitHubAccountTokenNamesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of names of connections to GitHub accounts.

*/ inline const Aws::Vector& GetTokenNameList() const{ return m_tokenNameList; } /** *

A list of names of connections to GitHub accounts.

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

A list of names of connections to GitHub accounts.

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

A list of names of connections to GitHub accounts.

*/ inline ListGitHubAccountTokenNamesResult& WithTokenNameList(const Aws::Vector& value) { SetTokenNameList(value); return *this;} /** *

A list of names of connections to GitHub accounts.

*/ inline ListGitHubAccountTokenNamesResult& WithTokenNameList(Aws::Vector&& value) { SetTokenNameList(std::move(value)); return *this;} /** *

A list of names of connections to GitHub accounts.

*/ inline ListGitHubAccountTokenNamesResult& AddTokenNameList(const Aws::String& value) { m_tokenNameList.push_back(value); return *this; } /** *

A list of names of connections to GitHub accounts.

*/ inline ListGitHubAccountTokenNamesResult& AddTokenNameList(Aws::String&& value) { m_tokenNameList.push_back(std::move(value)); return *this; } /** *

A list of names of connections to GitHub accounts.

*/ inline ListGitHubAccountTokenNamesResult& AddTokenNameList(const char* value) { m_tokenNameList.push_back(value); return *this; } /** *

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent ListGitHubAccountTokenNames call to * return the next set of names in the list.

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

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent ListGitHubAccountTokenNames call to * return the next set of names in the list.

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

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent ListGitHubAccountTokenNames call to * return the next set of names in the list.

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

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent ListGitHubAccountTokenNames call to * return the next set of names in the list.

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

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent ListGitHubAccountTokenNames call to * return the next set of names in the list.

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

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent ListGitHubAccountTokenNames call to * return the next set of names in the list.

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

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent ListGitHubAccountTokenNames call to * return the next set of names in the list.

*/ inline ListGitHubAccountTokenNamesResult& 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 ListGitHubAccountTokenNamesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListGitHubAccountTokenNamesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListGitHubAccountTokenNamesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_tokenNameList; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws