/** * 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 GreengrassV2 { namespace Model { class ResolveComponentCandidatesResult { public: AWS_GREENGRASSV2_API ResolveComponentCandidatesResult(); AWS_GREENGRASSV2_API ResolveComponentCandidatesResult(const Aws::AmazonWebServiceResult& result); AWS_GREENGRASSV2_API ResolveComponentCandidatesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of components that meet the requirements that you specify in the * request. This list includes each component's recipe that you can use to install * the component.

*/ inline const Aws::Vector& GetResolvedComponentVersions() const{ return m_resolvedComponentVersions; } /** *

A list of components that meet the requirements that you specify in the * request. This list includes each component's recipe that you can use to install * the component.

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

A list of components that meet the requirements that you specify in the * request. This list includes each component's recipe that you can use to install * the component.

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

A list of components that meet the requirements that you specify in the * request. This list includes each component's recipe that you can use to install * the component.

*/ inline ResolveComponentCandidatesResult& WithResolvedComponentVersions(const Aws::Vector& value) { SetResolvedComponentVersions(value); return *this;} /** *

A list of components that meet the requirements that you specify in the * request. This list includes each component's recipe that you can use to install * the component.

*/ inline ResolveComponentCandidatesResult& WithResolvedComponentVersions(Aws::Vector&& value) { SetResolvedComponentVersions(std::move(value)); return *this;} /** *

A list of components that meet the requirements that you specify in the * request. This list includes each component's recipe that you can use to install * the component.

*/ inline ResolveComponentCandidatesResult& AddResolvedComponentVersions(const ResolvedComponentVersion& value) { m_resolvedComponentVersions.push_back(value); return *this; } /** *

A list of components that meet the requirements that you specify in the * request. This list includes each component's recipe that you can use to install * the component.

*/ inline ResolveComponentCandidatesResult& AddResolvedComponentVersions(ResolvedComponentVersion&& value) { m_resolvedComponentVersions.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 ResolveComponentCandidatesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ResolveComponentCandidatesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ResolveComponentCandidatesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_resolvedComponentVersions; Aws::String m_requestId; }; } // namespace Model } // namespace GreengrassV2 } // namespace Aws