/**
* 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 OpsWorks
{
namespace Model
{
/**
* Contains the response to a DescribeInstances
* request.
See Also:
AWS
* API Reference
*/
class DescribeInstancesResult
{
public:
AWS_OPSWORKS_API DescribeInstancesResult();
AWS_OPSWORKS_API DescribeInstancesResult(const Aws::AmazonWebServiceResult& result);
AWS_OPSWORKS_API DescribeInstancesResult& operator=(const Aws::AmazonWebServiceResult& result);
/**
* An array of Instance
objects that describe the instances.
*/
inline const Aws::Vector& GetInstances() const{ return m_instances; }
/**
* An array of Instance
objects that describe the instances.
*/
inline void SetInstances(const Aws::Vector& value) { m_instances = value; }
/**
* An array of Instance
objects that describe the instances.
*/
inline void SetInstances(Aws::Vector&& value) { m_instances = std::move(value); }
/**
* An array of Instance
objects that describe the instances.
*/
inline DescribeInstancesResult& WithInstances(const Aws::Vector& value) { SetInstances(value); return *this;}
/**
* An array of Instance
objects that describe the instances.
*/
inline DescribeInstancesResult& WithInstances(Aws::Vector&& value) { SetInstances(std::move(value)); return *this;}
/**
* An array of Instance
objects that describe the instances.
*/
inline DescribeInstancesResult& AddInstances(const Instance& value) { m_instances.push_back(value); return *this; }
/**
* An array of Instance
objects that describe the instances.
*/
inline DescribeInstancesResult& AddInstances(Instance&& value) { m_instances.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 DescribeInstancesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
inline DescribeInstancesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
inline DescribeInstancesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
private:
Aws::Vector m_instances;
Aws::String m_requestId;
};
} // namespace Model
} // namespace OpsWorks
} // namespace Aws