/** * 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 { /** *

An object that represents the service or services on the Snow Family device * that your transferred data will be exported from or imported into. Amazon Web * Services Snow Family supports Amazon S3 and NFS (Network File * System).

See Also:

AWS * API Reference

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

Specifies the name of the service on the Snow Family device that your * transferred data will be exported from or imported into.

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

Specifies the name of the service on the Snow Family device that your * transferred data will be exported from or imported into.

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

Specifies the name of the service on the Snow Family device that your * transferred data will be exported from or imported into.

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

Specifies the name of the service on the Snow Family device that your * transferred data will be exported from or imported into.

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

Specifies the name of the service on the Snow Family device that your * transferred data will be exported from or imported into.

*/ inline TargetOnDeviceService& WithServiceName(const DeviceServiceName& value) { SetServiceName(value); return *this;} /** *

Specifies the name of the service on the Snow Family device that your * transferred data will be exported from or imported into.

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

Specifies whether the data is being imported or exported. You can import or * export the data, or use it locally on the device.

*/ inline const TransferOption& GetTransferOption() const{ return m_transferOption; } /** *

Specifies whether the data is being imported or exported. You can import or * export the data, or use it locally on the device.

*/ inline bool TransferOptionHasBeenSet() const { return m_transferOptionHasBeenSet; } /** *

Specifies whether the data is being imported or exported. You can import or * export the data, or use it locally on the device.

*/ inline void SetTransferOption(const TransferOption& value) { m_transferOptionHasBeenSet = true; m_transferOption = value; } /** *

Specifies whether the data is being imported or exported. You can import or * export the data, or use it locally on the device.

*/ inline void SetTransferOption(TransferOption&& value) { m_transferOptionHasBeenSet = true; m_transferOption = std::move(value); } /** *

Specifies whether the data is being imported or exported. You can import or * export the data, or use it locally on the device.

*/ inline TargetOnDeviceService& WithTransferOption(const TransferOption& value) { SetTransferOption(value); return *this;} /** *

Specifies whether the data is being imported or exported. You can import or * export the data, or use it locally on the device.

*/ inline TargetOnDeviceService& WithTransferOption(TransferOption&& value) { SetTransferOption(std::move(value)); return *this;} private: DeviceServiceName m_serviceName; bool m_serviceNameHasBeenSet = false; TransferOption m_transferOption; bool m_transferOptionHasBeenSet = false; }; } // namespace Model } // namespace Snowball } // namespace Aws