Class IscsiTargetInfo
java.lang.Object
com.azure.resourcemanager.elasticsan.models.IscsiTargetInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IscsiTargetInfo>
public final class IscsiTargetInfo
extends Object
implements com.azure.json.JsonSerializable<IscsiTargetInfo>
Iscsi target information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IscsiTargetInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IscsiTargetInfo from the JsonReader.Get the provisioningState property: State of the operation on the resource.status()Get the status property: Operational status of the iSCSI Target.Get the targetIqn property: iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".Get the targetPortalHostname property: iSCSI Target Portal Host Name.Get the targetPortalPort property: iSCSI Target Portal Port.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withStatus(OperationalStatus status) Set the status property: Operational status of the iSCSI Target.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
IscsiTargetInfo
public IscsiTargetInfo()Creates an instance of IscsiTargetInfo class.
-
-
Method Details
-
targetIqn
Get the targetIqn property: iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".- Returns:
- the targetIqn value.
-
targetPortalHostname
Get the targetPortalHostname property: iSCSI Target Portal Host Name.- Returns:
- the targetPortalHostname value.
-
targetPortalPort
Get the targetPortalPort property: iSCSI Target Portal Port.- Returns:
- the targetPortalPort value.
-
provisioningState
Get the provisioningState property: State of the operation on the resource.- Returns:
- the provisioningState value.
-
status
Get the status property: Operational status of the iSCSI Target.- Returns:
- the status value.
-
withStatus
Set the status property: Operational status of the iSCSI Target.- Parameters:
status- the status value to set.- Returns:
- the IscsiTargetInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<IscsiTargetInfo>- Throws:
IOException
-
fromJson
Reads an instance of IscsiTargetInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IscsiTargetInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the IscsiTargetInfo.
-