/** * 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 CodeStarconnections { namespace Model { class ListHostsResult { public: AWS_CODESTARCONNECTIONS_API ListHostsResult(); AWS_CODESTARCONNECTIONS_API ListHostsResult(const Aws::AmazonWebServiceResult& result); AWS_CODESTARCONNECTIONS_API ListHostsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of hosts and the details for each host, such as status, endpoint, and * provider type.

*/ inline const Aws::Vector& GetHosts() const{ return m_hosts; } /** *

A list of hosts and the details for each host, such as status, endpoint, and * provider type.

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

A list of hosts and the details for each host, such as status, endpoint, and * provider type.

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

A list of hosts and the details for each host, such as status, endpoint, and * provider type.

*/ inline ListHostsResult& WithHosts(const Aws::Vector& value) { SetHosts(value); return *this;} /** *

A list of hosts and the details for each host, such as status, endpoint, and * provider type.

*/ inline ListHostsResult& WithHosts(Aws::Vector&& value) { SetHosts(std::move(value)); return *this;} /** *

A list of hosts and the details for each host, such as status, endpoint, and * provider type.

*/ inline ListHostsResult& AddHosts(const Host& value) { m_hosts.push_back(value); return *this; } /** *

A list of hosts and the details for each host, such as status, endpoint, and * provider type.

*/ inline ListHostsResult& AddHosts(Host&& value) { m_hosts.push_back(std::move(value)); return *this; } /** *

A token that can be used in the next ListHosts call. To view all * items in the list, continue to call this operation with each subsequent token * until no more nextToken values are returned.

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

A token that can be used in the next ListHosts call. To view all * items in the list, continue to call this operation with each subsequent token * until no more nextToken values are returned.

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

A token that can be used in the next ListHosts call. To view all * items in the list, continue to call this operation with each subsequent token * until no more nextToken values are returned.

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

A token that can be used in the next ListHosts call. To view all * items in the list, continue to call this operation with each subsequent token * until no more nextToken values are returned.

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

A token that can be used in the next ListHosts call. To view all * items in the list, continue to call this operation with each subsequent token * until no more nextToken values are returned.

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

A token that can be used in the next ListHosts call. To view all * items in the list, continue to call this operation with each subsequent token * until no more nextToken values are returned.

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

A token that can be used in the next ListHosts call. To view all * items in the list, continue to call this operation with each subsequent token * until no more nextToken values are returned.

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