/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace GreengrassV2 { namespace Model { /** */ class ResolveComponentCandidatesRequest : public GreengrassV2Request { public: AWS_GREENGRASSV2_API ResolveComponentCandidatesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ResolveComponentCandidates"; } AWS_GREENGRASSV2_API Aws::String SerializePayload() const override; /** *

The platform to use to resolve compatible components.

*/ inline const ComponentPlatform& GetPlatform() const{ return m_platform; } /** *

The platform to use to resolve compatible components.

*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *

The platform to use to resolve compatible components.

*/ inline void SetPlatform(const ComponentPlatform& value) { m_platformHasBeenSet = true; m_platform = value; } /** *

The platform to use to resolve compatible components.

*/ inline void SetPlatform(ComponentPlatform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *

The platform to use to resolve compatible components.

*/ inline ResolveComponentCandidatesRequest& WithPlatform(const ComponentPlatform& value) { SetPlatform(value); return *this;} /** *

The platform to use to resolve compatible components.

*/ inline ResolveComponentCandidatesRequest& WithPlatform(ComponentPlatform&& value) { SetPlatform(std::move(value)); return *this;} /** *

The list of components to resolve.

*/ inline const Aws::Vector& GetComponentCandidates() const{ return m_componentCandidates; } /** *

The list of components to resolve.

*/ inline bool ComponentCandidatesHasBeenSet() const { return m_componentCandidatesHasBeenSet; } /** *

The list of components to resolve.

*/ inline void SetComponentCandidates(const Aws::Vector& value) { m_componentCandidatesHasBeenSet = true; m_componentCandidates = value; } /** *

The list of components to resolve.

*/ inline void SetComponentCandidates(Aws::Vector&& value) { m_componentCandidatesHasBeenSet = true; m_componentCandidates = std::move(value); } /** *

The list of components to resolve.

*/ inline ResolveComponentCandidatesRequest& WithComponentCandidates(const Aws::Vector& value) { SetComponentCandidates(value); return *this;} /** *

The list of components to resolve.

*/ inline ResolveComponentCandidatesRequest& WithComponentCandidates(Aws::Vector&& value) { SetComponentCandidates(std::move(value)); return *this;} /** *

The list of components to resolve.

*/ inline ResolveComponentCandidatesRequest& AddComponentCandidates(const ComponentCandidate& value) { m_componentCandidatesHasBeenSet = true; m_componentCandidates.push_back(value); return *this; } /** *

The list of components to resolve.

*/ inline ResolveComponentCandidatesRequest& AddComponentCandidates(ComponentCandidate&& value) { m_componentCandidatesHasBeenSet = true; m_componentCandidates.push_back(std::move(value)); return *this; } private: ComponentPlatform m_platform; bool m_platformHasBeenSet = false; Aws::Vector m_componentCandidates; bool m_componentCandidatesHasBeenSet = false; }; } // namespace Model } // namespace GreengrassV2 } // namespace Aws