IscsiTargetInner Class

public final class IscsiTargetInner
extends ProxyResource

Response for iSCSI Target requests.

Constructor Summary

Constructor Description
IscsiTargetInner()

Creates an instance of IscsiTargetInner 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 IscsiTargetInner fromJson(JsonReader jsonReader)

Reads an instance of IscsiTargetInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

List<IscsiLun> luns()

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

String managedBy()

Get the managedBy property: Azure resource id.

List<String> managedByExtended()

Get the managedByExtended property: List of Azure resource ids that manage this resource.

String name()

Get the name property: The name of the resource.

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.

SystemMetadata systemData()

Get the systemData property: Resource metadata required by ARM RPC.

String targetIqn()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

IscsiTargetInner withAclMode(IscsiTargetAclMode aclMode)

Set the aclMode property: Mode for Target connectivity.

IscsiTargetInner withEndpoints(List<String> endpoints)

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

IscsiTargetInner withLuns(List<IscsiLun> luns)

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

IscsiTargetInner withPort(Integer port)

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

IscsiTargetInner withStaticAcls(List<Acl> staticAcls)

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

IscsiTargetInner withStatus(OperationalStatus status)

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

IscsiTargetInner withTargetIqn(String targetIqn)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

IscsiTargetInner

public IscsiTargetInner()

Creates an instance of IscsiTargetInner 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 IscsiTargetInner fromJson(JsonReader jsonReader)

Reads an instance of IscsiTargetInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IscsiTargetInner 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.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

IscsiTargetInner.id()

Returns:

the id value.

luns

public List luns()

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

Returns:

the luns value.

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.

managedByExtended

public List managedByExtended()

Get the managedByExtended property: List of Azure resource ids that manage this resource.

Returns:

the managedByExtended value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

IscsiTargetInner.name()

Returns:

the name 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.

systemData

public SystemMetadata systemData()

Get the systemData property: Resource metadata required by ARM RPC.

Returns:

the systemData 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)

Overrides:

IscsiTargetInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

IscsiTargetInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAclMode

public IscsiTargetInner withAclMode(IscsiTargetAclMode aclMode)

Set the aclMode property: Mode for Target connectivity.

Parameters:

aclMode - the aclMode value to set.

Returns:

the IscsiTargetInner object itself.

withEndpoints

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

withLuns

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

withPort

public IscsiTargetInner withPort(Integer port)

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

Parameters:

port - the port value to set.

Returns:

the IscsiTargetInner object itself.

withStaticAcls

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

withStatus

public IscsiTargetInner withStatus(OperationalStatus status)

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

Parameters:

status - the status value to set.

Returns:

the IscsiTargetInner object itself.

withTargetIqn

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

Applies to

Azure SDK for Java

Preview