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 Details

    • IscsiTargetInfo

      public IscsiTargetInfo()
      Creates an instance of IscsiTargetInfo class.
  • Method Details

    • targetIqn

      public String targetIqn()
      Get the targetIqn property: iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
      Returns:
      the targetIqn value.
    • targetPortalHostname

      public String targetPortalHostname()
      Get the targetPortalHostname property: iSCSI Target Portal Host Name.
      Returns:
      the targetPortalHostname value.
    • targetPortalPort

      public Integer targetPortalPort()
      Get the targetPortalPort property: iSCSI Target Portal Port.
      Returns:
      the targetPortalPort value.
    • provisioningState

      public ProvisioningStates provisioningState()
      Get the provisioningState property: State of the operation on the resource.
      Returns:
      the provisioningState value.
    • status

      public OperationalStatus status()
      Get the status property: Operational status of the iSCSI Target.
      Returns:
      the status value.
    • withStatus

      public IscsiTargetInfo withStatus(OperationalStatus status)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<IscsiTargetInfo>
      Throws:
      IOException
    • fromJson

      public static IscsiTargetInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.