/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GreengrassV2 { namespace Model { /** *

Contains information about a component.

See Also:

AWS * API Reference

*/ class Component { public: AWS_GREENGRASSV2_API Component(); AWS_GREENGRASSV2_API Component(Aws::Utils::Json::JsonView jsonValue); AWS_GREENGRASSV2_API Component& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN * of the component version.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN * of the component version.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN * of the component version.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN * of the component version.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN * of the component version.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN * of the component version.

*/ inline Component& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN * of the component version.

*/ inline Component& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN * of the component version.

*/ inline Component& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the component.

*/ inline const Aws::String& GetComponentName() const{ return m_componentName; } /** *

The name of the component.

*/ inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; } /** *

The name of the component.

*/ inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; } /** *

The name of the component.

*/ inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); } /** *

The name of the component.

*/ inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); } /** *

The name of the component.

*/ inline Component& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} /** *

The name of the component.

*/ inline Component& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} /** *

The name of the component.

*/ inline Component& WithComponentName(const char* value) { SetComponentName(value); return *this;} /** *

The latest version of the component and its details.

*/ inline const ComponentLatestVersion& GetLatestVersion() const{ return m_latestVersion; } /** *

The latest version of the component and its details.

*/ inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; } /** *

The latest version of the component and its details.

*/ inline void SetLatestVersion(const ComponentLatestVersion& value) { m_latestVersionHasBeenSet = true; m_latestVersion = value; } /** *

The latest version of the component and its details.

*/ inline void SetLatestVersion(ComponentLatestVersion&& value) { m_latestVersionHasBeenSet = true; m_latestVersion = std::move(value); } /** *

The latest version of the component and its details.

*/ inline Component& WithLatestVersion(const ComponentLatestVersion& value) { SetLatestVersion(value); return *this;} /** *

The latest version of the component and its details.

*/ inline Component& WithLatestVersion(ComponentLatestVersion&& value) { SetLatestVersion(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_componentName; bool m_componentNameHasBeenSet = false; ComponentLatestVersion m_latestVersion; bool m_latestVersionHasBeenSet = false; }; } // namespace Model } // namespace GreengrassV2 } // namespace Aws