/**
* 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 DescribeLayers
request.
See
* Also:
AWS
* API Reference
*/
class DescribeLayersResult
{
public:
AWS_OPSWORKS_API DescribeLayersResult();
AWS_OPSWORKS_API DescribeLayersResult(const Aws::AmazonWebServiceResult& result);
AWS_OPSWORKS_API DescribeLayersResult& operator=(const Aws::AmazonWebServiceResult& result);
/**
* An array of Layer
objects that describe the layers.
*/
inline const Aws::Vector& GetLayers() const{ return m_layers; }
/**
* An array of Layer
objects that describe the layers.
*/
inline void SetLayers(const Aws::Vector& value) { m_layers = value; }
/**
* An array of Layer
objects that describe the layers.
*/
inline void SetLayers(Aws::Vector&& value) { m_layers = std::move(value); }
/**
* An array of Layer
objects that describe the layers.
*/
inline DescribeLayersResult& WithLayers(const Aws::Vector& value) { SetLayers(value); return *this;}
/**
* An array of Layer
objects that describe the layers.
*/
inline DescribeLayersResult& WithLayers(Aws::Vector&& value) { SetLayers(std::move(value)); return *this;}
/**
* An array of Layer
objects that describe the layers.
*/
inline DescribeLayersResult& AddLayers(const Layer& value) { m_layers.push_back(value); return *this; }
/**
* An array of Layer
objects that describe the layers.
*/
inline DescribeLayersResult& AddLayers(Layer&& value) { m_layers.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 DescribeLayersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
inline DescribeLayersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
inline DescribeLayersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
private:
Aws::Vector m_layers;
Aws::String m_requestId;
};
} // namespace Model
} // namespace OpsWorks
} // namespace Aws