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

Represents the output of a BatchGetOnPremisesInstances * operation.

See Also:

AWS * API Reference

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

Information about the on-premises instances.

*/ inline const Aws::Vector& GetInstanceInfos() const{ return m_instanceInfos; } /** *

Information about the on-premises instances.

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

Information about the on-premises instances.

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

Information about the on-premises instances.

*/ inline BatchGetOnPremisesInstancesResult& WithInstanceInfos(const Aws::Vector& value) { SetInstanceInfos(value); return *this;} /** *

Information about the on-premises instances.

*/ inline BatchGetOnPremisesInstancesResult& WithInstanceInfos(Aws::Vector&& value) { SetInstanceInfos(std::move(value)); return *this;} /** *

Information about the on-premises instances.

*/ inline BatchGetOnPremisesInstancesResult& AddInstanceInfos(const InstanceInfo& value) { m_instanceInfos.push_back(value); return *this; } /** *

Information about the on-premises instances.

*/ inline BatchGetOnPremisesInstancesResult& AddInstanceInfos(InstanceInfo&& value) { m_instanceInfos.push_back(std::move(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 BatchGetOnPremisesInstancesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetOnPremisesInstancesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetOnPremisesInstancesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_instanceInfos; Aws::String m_requestId; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws