/** * 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 DescribeStacks request.

See * Also:

AWS * API Reference

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

An array of Stack objects that describe the stacks.

*/ inline const Aws::Vector& GetStacks() const{ return m_stacks; } /** *

An array of Stack objects that describe the stacks.

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

An array of Stack objects that describe the stacks.

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

An array of Stack objects that describe the stacks.

*/ inline DescribeStacksResult& WithStacks(const Aws::Vector& value) { SetStacks(value); return *this;} /** *

An array of Stack objects that describe the stacks.

*/ inline DescribeStacksResult& WithStacks(Aws::Vector&& value) { SetStacks(std::move(value)); return *this;} /** *

An array of Stack objects that describe the stacks.

*/ inline DescribeStacksResult& AddStacks(const Stack& value) { m_stacks.push_back(value); return *this; } /** *

An array of Stack objects that describe the stacks.

*/ inline DescribeStacksResult& AddStacks(Stack&& value) { m_stacks.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 DescribeStacksResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeStacksResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeStacksResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_stacks; Aws::String m_requestId; }; } // namespace Model } // namespace OpsWorks } // namespace Aws