/** * 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 the list on-premises instances * operation.

See Also:

AWS * API Reference

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

The list of matching on-premises instance names.

*/ inline const Aws::Vector& GetInstanceNames() const{ return m_instanceNames; } /** *

The list of matching on-premises instance names.

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

The list of matching on-premises instance names.

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

The list of matching on-premises instance names.

*/ inline ListOnPremisesInstancesResult& WithInstanceNames(const Aws::Vector& value) { SetInstanceNames(value); return *this;} /** *

The list of matching on-premises instance names.

*/ inline ListOnPremisesInstancesResult& WithInstanceNames(Aws::Vector&& value) { SetInstanceNames(std::move(value)); return *this;} /** *

The list of matching on-premises instance names.

*/ inline ListOnPremisesInstancesResult& AddInstanceNames(const Aws::String& value) { m_instanceNames.push_back(value); return *this; } /** *

The list of matching on-premises instance names.

*/ inline ListOnPremisesInstancesResult& AddInstanceNames(Aws::String&& value) { m_instanceNames.push_back(std::move(value)); return *this; } /** *

The list of matching on-premises instance names.

*/ inline ListOnPremisesInstancesResult& AddInstanceNames(const char* value) { m_instanceNames.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 list on-premises instances call to return the * next set of on-premises instances 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 list on-premises instances call to return the * next set of on-premises instances 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 list on-premises instances call to return the * next set of on-premises instances 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 list on-premises instances call to return the * next set of on-premises instances 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 list on-premises instances call to return the * next set of on-premises instances in the list.

*/ inline ListOnPremisesInstancesResult& 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 list on-premises instances call to return the * next set of on-premises instances in the list.

*/ inline ListOnPremisesInstancesResult& 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 list on-premises instances call to return the * next set of on-premises instances in the list.

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