IscsiTargetProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.storagepool.fluent.models.IscsiTargetProperties

Implements

public final class IscsiTargetProperties
implements JsonSerializable<IscsiTargetProperties>

Response properties for iSCSI Target operations.

Constructor Summary

Constructor Description
IscsiTargetProperties()

Creates an instance of IscsiTargetProperties class.

Method Summary

Modifier and Type Method and Description
IscsiTargetAclMode aclMode()

Get the aclMode property: Mode for Target connectivity.

List<String> endpoints()

Get the endpoints property: List of private IPv4 addresses to connect to the iSCSI Target.

static IscsiTargetProperties fromJson(JsonReader jsonReader)

Reads an instance of IscsiTargetProperties from the JsonReader.

List<IscsiLun> luns()

Get the luns property: List of LUNs to be exposed through iSCSI Target.

Integer port()

Get the port property: The port used by iSCSI Target portal group.

ProvisioningStates provisioningState()

Get the provisioningState property: State of the operation on the resource.

List<String> sessions()

Get the sessions property: List of identifiers for active sessions on the iSCSI target.

List<Acl> staticAcls()

Get the staticAcls property: Access Control List (ACL) for an iSCSI Target; defines LUN masking policy.

OperationalStatus status()

Get the status property: Operational status of the iSCSI Target.

String targetIqn()

Get the targetIqn property: iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IscsiTargetProperties withAclMode(IscsiTargetAclMode aclMode)

Set the aclMode property: Mode for Target connectivity.

IscsiTargetProperties withEndpoints(List<String> endpoints)

Set the endpoints property: List of private IPv4 addresses to connect to the iSCSI Target.

IscsiTargetProperties withLuns(List<IscsiLun> luns)

Set the luns property: List of LUNs to be exposed through iSCSI Target.

IscsiTargetProperties withPort(Integer port)

Set the port property: The port used by iSCSI Target portal group.

IscsiTargetProperties withStaticAcls(List<Acl> staticAcls)

Set the staticAcls property: Access Control List (ACL) for an iSCSI Target; defines LUN masking policy.

IscsiTargetProperties withStatus(OperationalStatus status)

Set the status property: Operational status of the iSCSI Target.

IscsiTargetProperties withTargetIqn(String targetIqn)

Set the targetIqn property: iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".

Methods inherited from java.lang.Object

Constructor Details

IscsiTargetProperties

public IscsiTargetProperties()

Creates an instance of IscsiTargetProperties class.

Method Details

aclMode

public IscsiTargetAclMode aclMode()

Get the aclMode property: Mode for Target connectivity.

Returns:

the aclMode value.

endpoints

public List endpoints()

Get the endpoints property: List of private IPv4 addresses to connect to the iSCSI Target.

Returns:

the endpoints value.

fromJson

public static IscsiTargetProperties fromJson(JsonReader jsonReader)

Reads an instance of IscsiTargetProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IscsiTargetProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

luns

public List luns()

Get the luns property: List of LUNs to be exposed through iSCSI Target.

Returns:

the luns value.

port

public Integer port()

Get the port property: The port used by iSCSI Target portal group.

Returns:

the port value.

provisioningState

public ProvisioningStates provisioningState()

Get the provisioningState property: State of the operation on the resource.

Returns:

the provisioningState value.

sessions

public List sessions()

Get the sessions property: List of identifiers for active sessions on the iSCSI target.

Returns:

the sessions value.

staticAcls

public List staticAcls()

Get the staticAcls property: Access Control List (ACL) for an iSCSI Target; defines LUN masking policy.

Returns:

the staticAcls value.

status

public OperationalStatus status()

Get the status property: Operational status of the iSCSI Target.

Returns:

the status value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAclMode

public IscsiTargetProperties withAclMode(IscsiTargetAclMode aclMode)

Set the aclMode property: Mode for Target connectivity.

Parameters:

aclMode - the aclMode value to set.

Returns:

the IscsiTargetProperties object itself.

withEndpoints

public IscsiTargetProperties withEndpoints(List endpoints)

Set the endpoints property: List of private IPv4 addresses to connect to the iSCSI Target.

Parameters:

endpoints - the endpoints value to set.

Returns:

the IscsiTargetProperties object itself.

withLuns

public IscsiTargetProperties withLuns(List luns)

Set the luns property: List of LUNs to be exposed through iSCSI Target.

Parameters:

luns - the luns value to set.

Returns:

the IscsiTargetProperties object itself.

withPort

public IscsiTargetProperties withPort(Integer port)

Set the port property: The port used by iSCSI Target portal group.

Parameters:

port - the port value to set.

Returns:

the IscsiTargetProperties object itself.

withStaticAcls

public IscsiTargetProperties withStaticAcls(List 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 IscsiTargetProperties object itself.

withStatus

public IscsiTargetProperties withStatus(OperationalStatus status)

Set the status property: Operational status of the iSCSI Target.

Parameters:

status - the status value to set.

Returns:

the IscsiTargetProperties object itself.

withTargetIqn

public IscsiTargetProperties 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 IscsiTargetProperties object itself.

Applies to

Azure SDK for Java

Preview