Class IscsiTargetCreate

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.storagepool.models.IscsiTargetCreate

public final class IscsiTargetCreate extends com.azure.core.management.ProxyResource
Payload for iSCSI Target create or update requests.
  • Constructor Details

    • IscsiTargetCreate

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

    • managedBy

      public String managedBy()
      Get the managedBy property: Azure resource id. Indicates if this resource is managed by another Azure resource.
      Returns:
      the managedBy value.
    • withManagedBy

      public IscsiTargetCreate withManagedBy(String managedBy)
      Set the managedBy property: Azure resource id. Indicates if this resource is managed by another Azure resource.
      Parameters:
      managedBy - the managedBy value to set.
      Returns:
      the IscsiTargetCreate object itself.
    • managedByExtended

      public List<String> managedByExtended()
      Get the managedByExtended property: List of Azure resource ids that manage this resource.
      Returns:
      the managedByExtended value.
    • withManagedByExtended

      public IscsiTargetCreate withManagedByExtended(List<String> managedByExtended)
      Set the managedByExtended property: List of Azure resource ids that manage this resource.
      Parameters:
      managedByExtended - the managedByExtended value to set.
      Returns:
      the IscsiTargetCreate object itself.
    • aclMode

      public IscsiTargetAclMode aclMode()
      Get the aclMode property: Mode for Target connectivity.
      Returns:
      the aclMode value.
    • withAclMode

      public IscsiTargetCreate withAclMode(IscsiTargetAclMode aclMode)
      Set the aclMode property: Mode for Target connectivity.
      Parameters:
      aclMode - the aclMode value to set.
      Returns:
      the IscsiTargetCreate object itself.
    • 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.
    • withTargetIqn

      public IscsiTargetCreate withTargetIqn(String targetIqn)
      Set the targetIqn property: iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
      Parameters:
      targetIqn - the targetIqn value to set.
      Returns:
      the IscsiTargetCreate object itself.
    • staticAcls

      public List<Acl> staticAcls()
      Get the staticAcls property: Access Control List (ACL) for an iSCSI Target; defines LUN masking policy.
      Returns:
      the staticAcls value.
    • withStaticAcls

      public IscsiTargetCreate withStaticAcls(List<Acl> staticAcls)
      Set the staticAcls property: Access Control List (ACL) for an iSCSI Target; defines LUN masking policy.
      Parameters:
      staticAcls - the staticAcls value to set.
      Returns:
      the IscsiTargetCreate object itself.
    • luns

      public List<IscsiLun> luns()
      Get the luns property: List of LUNs to be exposed through iSCSI Target.
      Returns:
      the luns value.
    • withLuns

      public IscsiTargetCreate withLuns(List<IscsiLun> luns)
      Set the luns property: List of LUNs to be exposed through iSCSI Target.
      Parameters:
      luns - the luns value to set.
      Returns:
      the IscsiTargetCreate object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.