/** * 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 GroundStation { namespace Model { /** *

Version information for agent components.

See Also:

AWS * API Reference

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

Component type.

*/ inline const Aws::String& GetComponentType() const{ return m_componentType; } /** *

Component type.

*/ inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; } /** *

Component type.

*/ inline void SetComponentType(const Aws::String& value) { m_componentTypeHasBeenSet = true; m_componentType = value; } /** *

Component type.

*/ inline void SetComponentType(Aws::String&& value) { m_componentTypeHasBeenSet = true; m_componentType = std::move(value); } /** *

Component type.

*/ inline void SetComponentType(const char* value) { m_componentTypeHasBeenSet = true; m_componentType.assign(value); } /** *

Component type.

*/ inline ComponentVersion& WithComponentType(const Aws::String& value) { SetComponentType(value); return *this;} /** *

Component type.

*/ inline ComponentVersion& WithComponentType(Aws::String&& value) { SetComponentType(std::move(value)); return *this;} /** *

Component type.

*/ inline ComponentVersion& WithComponentType(const char* value) { SetComponentType(value); return *this;} /** *

List of versions.

*/ inline const Aws::Vector& GetVersions() const{ return m_versions; } /** *

List of versions.

*/ inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; } /** *

List of versions.

*/ inline void SetVersions(const Aws::Vector& value) { m_versionsHasBeenSet = true; m_versions = value; } /** *

List of versions.

*/ inline void SetVersions(Aws::Vector&& value) { m_versionsHasBeenSet = true; m_versions = std::move(value); } /** *

List of versions.

*/ inline ComponentVersion& WithVersions(const Aws::Vector& value) { SetVersions(value); return *this;} /** *

List of versions.

*/ inline ComponentVersion& WithVersions(Aws::Vector&& value) { SetVersions(std::move(value)); return *this;} /** *

List of versions.

*/ inline ComponentVersion& AddVersions(const Aws::String& value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; } /** *

List of versions.

*/ inline ComponentVersion& AddVersions(Aws::String&& value) { m_versionsHasBeenSet = true; m_versions.push_back(std::move(value)); return *this; } /** *

List of versions.

*/ inline ComponentVersion& AddVersions(const char* value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; } private: Aws::String m_componentType; bool m_componentTypeHasBeenSet = false; Aws::Vector m_versions; bool m_versionsHasBeenSet = false; }; } // namespace Model } // namespace GroundStation } // namespace Aws