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

The name and version of the service dependant on the requested * service.

See Also:

AWS * API Reference

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

The name of the dependent service.

*/ inline const ServiceName& GetServiceName() const{ return m_serviceName; } /** *

The name of the dependent service.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the dependent service.

*/ inline void SetServiceName(const ServiceName& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the dependent service.

*/ inline void SetServiceName(ServiceName&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the dependent service.

*/ inline DependentService& WithServiceName(const ServiceName& value) { SetServiceName(value); return *this;} /** *

The name of the dependent service.

*/ inline DependentService& WithServiceName(ServiceName&& value) { SetServiceName(std::move(value)); return *this;} /** *

The version of the dependent service.

*/ inline const ServiceVersion& GetServiceVersion() const{ return m_serviceVersion; } /** *

The version of the dependent service.

*/ inline bool ServiceVersionHasBeenSet() const { return m_serviceVersionHasBeenSet; } /** *

The version of the dependent service.

*/ inline void SetServiceVersion(const ServiceVersion& value) { m_serviceVersionHasBeenSet = true; m_serviceVersion = value; } /** *

The version of the dependent service.

*/ inline void SetServiceVersion(ServiceVersion&& value) { m_serviceVersionHasBeenSet = true; m_serviceVersion = std::move(value); } /** *

The version of the dependent service.

*/ inline DependentService& WithServiceVersion(const ServiceVersion& value) { SetServiceVersion(value); return *this;} /** *

The version of the dependent service.

*/ inline DependentService& WithServiceVersion(ServiceVersion&& value) { SetServiceVersion(std::move(value)); return *this;} private: ServiceName m_serviceName; bool m_serviceNameHasBeenSet = false; ServiceVersion m_serviceVersion; bool m_serviceVersionHasBeenSet = false; }; } // namespace Model } // namespace Snowball } // namespace Aws