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

Lists iSCSI information about a VTL device.

See Also:

AWS * API Reference

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

Specifies the unique Amazon Resource Name (ARN) that encodes the iSCSI * qualified name(iqn) of a tape drive or media changer target.

*/ inline const Aws::String& GetTargetARN() const{ return m_targetARN; } /** *

Specifies the unique Amazon Resource Name (ARN) that encodes the iSCSI * qualified name(iqn) of a tape drive or media changer target.

*/ inline bool TargetARNHasBeenSet() const { return m_targetARNHasBeenSet; } /** *

Specifies the unique Amazon Resource Name (ARN) that encodes the iSCSI * qualified name(iqn) of a tape drive or media changer target.

*/ inline void SetTargetARN(const Aws::String& value) { m_targetARNHasBeenSet = true; m_targetARN = value; } /** *

Specifies the unique Amazon Resource Name (ARN) that encodes the iSCSI * qualified name(iqn) of a tape drive or media changer target.

*/ inline void SetTargetARN(Aws::String&& value) { m_targetARNHasBeenSet = true; m_targetARN = std::move(value); } /** *

Specifies the unique Amazon Resource Name (ARN) that encodes the iSCSI * qualified name(iqn) of a tape drive or media changer target.

*/ inline void SetTargetARN(const char* value) { m_targetARNHasBeenSet = true; m_targetARN.assign(value); } /** *

Specifies the unique Amazon Resource Name (ARN) that encodes the iSCSI * qualified name(iqn) of a tape drive or media changer target.

*/ inline DeviceiSCSIAttributes& WithTargetARN(const Aws::String& value) { SetTargetARN(value); return *this;} /** *

Specifies the unique Amazon Resource Name (ARN) that encodes the iSCSI * qualified name(iqn) of a tape drive or media changer target.

*/ inline DeviceiSCSIAttributes& WithTargetARN(Aws::String&& value) { SetTargetARN(std::move(value)); return *this;} /** *

Specifies the unique Amazon Resource Name (ARN) that encodes the iSCSI * qualified name(iqn) of a tape drive or media changer target.

*/ inline DeviceiSCSIAttributes& WithTargetARN(const char* value) { SetTargetARN(value); return *this;} /** *

The network interface identifier of the VTL device.

*/ inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; } /** *

The network interface identifier of the VTL device.

*/ inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; } /** *

The network interface identifier of the VTL device.

*/ inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; } /** *

The network interface identifier of the VTL device.

*/ inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); } /** *

The network interface identifier of the VTL device.

*/ inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); } /** *

The network interface identifier of the VTL device.

*/ inline DeviceiSCSIAttributes& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *

The network interface identifier of the VTL device.

*/ inline DeviceiSCSIAttributes& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *

The network interface identifier of the VTL device.

*/ inline DeviceiSCSIAttributes& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} /** *

The port used to communicate with iSCSI VTL device targets.

*/ inline int GetNetworkInterfacePort() const{ return m_networkInterfacePort; } /** *

The port used to communicate with iSCSI VTL device targets.

*/ inline bool NetworkInterfacePortHasBeenSet() const { return m_networkInterfacePortHasBeenSet; } /** *

The port used to communicate with iSCSI VTL device targets.

*/ inline void SetNetworkInterfacePort(int value) { m_networkInterfacePortHasBeenSet = true; m_networkInterfacePort = value; } /** *

The port used to communicate with iSCSI VTL device targets.

*/ inline DeviceiSCSIAttributes& WithNetworkInterfacePort(int value) { SetNetworkInterfacePort(value); return *this;} /** *

Indicates whether mutual CHAP is enabled for the iSCSI target.

*/ inline bool GetChapEnabled() const{ return m_chapEnabled; } /** *

Indicates whether mutual CHAP is enabled for the iSCSI target.

*/ inline bool ChapEnabledHasBeenSet() const { return m_chapEnabledHasBeenSet; } /** *

Indicates whether mutual CHAP is enabled for the iSCSI target.

*/ inline void SetChapEnabled(bool value) { m_chapEnabledHasBeenSet = true; m_chapEnabled = value; } /** *

Indicates whether mutual CHAP is enabled for the iSCSI target.

*/ inline DeviceiSCSIAttributes& WithChapEnabled(bool value) { SetChapEnabled(value); return *this;} private: Aws::String m_targetARN; bool m_targetARNHasBeenSet = false; Aws::String m_networkInterfaceId; bool m_networkInterfaceIdHasBeenSet = false; int m_networkInterfacePort; bool m_networkInterfacePortHasBeenSet = false; bool m_chapEnabled; bool m_chapEnabledHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws