/** * 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 volume.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the volume target.

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

The Amazon Resource Name (ARN) of the volume target.

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

The Amazon Resource Name (ARN) of the volume target.

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

The Amazon Resource Name (ARN) of the volume target.

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

The Amazon Resource Name (ARN) of the volume target.

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

The Amazon Resource Name (ARN) of the volume target.

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

The Amazon Resource Name (ARN) of the volume target.

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

The Amazon Resource Name (ARN) of the volume target.

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

The network interface identifier.

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

The network interface identifier.

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

The network interface identifier.

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

The network interface identifier.

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

The network interface identifier.

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

The network interface identifier.

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

The network interface identifier.

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

The network interface identifier.

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

The port used to communicate with iSCSI targets.

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

The port used to communicate with iSCSI targets.

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

The port used to communicate with iSCSI targets.

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

The port used to communicate with iSCSI targets.

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

The logical disk number.

*/ inline int GetLunNumber() const{ return m_lunNumber; } /** *

The logical disk number.

*/ inline bool LunNumberHasBeenSet() const { return m_lunNumberHasBeenSet; } /** *

The logical disk number.

*/ inline void SetLunNumber(int value) { m_lunNumberHasBeenSet = true; m_lunNumber = value; } /** *

The logical disk number.

*/ inline VolumeiSCSIAttributes& WithLunNumber(int value) { SetLunNumber(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 VolumeiSCSIAttributes& 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; int m_lunNumber; bool m_lunNumberHasBeenSet = false; bool m_chapEnabled; bool m_chapEnabledHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws