Share via


NetworkProperties Class

public final class NetworkProperties
extends NetworkConnectionUpdateProperties

Network properties.

Constructor Summary

Constructor Description
NetworkProperties()

Creates an instance of NetworkProperties class.

Method Summary

Modifier and Type Method and Description
DomainJoinType domainJoinType()

Get the domainJoinType property: AAD Join type.

static NetworkProperties fromJson(JsonReader jsonReader)

Reads an instance of NetworkProperties from the JsonReader.

HealthCheckStatus healthCheckStatus()

Get the healthCheckStatus property: Overall health status of the network connection.

String networkingResourceGroupName()

Get the networkingResourceGroupName property: The name for resource group where NICs will be placed.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkProperties withDomainJoinType(DomainJoinType domainJoinType)

Set the domainJoinType property: AAD Join type.

NetworkProperties withDomainName(String domainName)

Set the domainName property: Active Directory domain name.

NetworkProperties withDomainPassword(String domainPassword)

Set the domainPassword property: The password for the account used to join domain.

NetworkProperties withDomainUsername(String domainUsername)

Set the domainUsername property: The username of an Active Directory account (user or service account) that has permissions to create computer objects in Active Directory.

NetworkProperties withNetworkingResourceGroupName(String networkingResourceGroupName)

Set the networkingResourceGroupName property: The name for resource group where NICs will be placed.

NetworkProperties withOrganizationUnit(String organizationUnit)

Set the organizationUnit property: Active Directory domain Organization Unit (OU).

NetworkProperties withSubnetId(String subnetId)

Set the subnetId property: The subnet to attach Virtual Machines to.

Methods inherited from NetworkConnectionUpdateProperties

Methods inherited from java.lang.Object

Constructor Details

NetworkProperties

public NetworkProperties()

Creates an instance of NetworkProperties class.

Method Details

domainJoinType

public DomainJoinType domainJoinType()

Get the domainJoinType property: AAD Join type.

Returns:

the domainJoinType value.

fromJson

public static NetworkProperties fromJson(JsonReader jsonReader)

Reads an instance of NetworkProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

healthCheckStatus

public HealthCheckStatus healthCheckStatus()

Get the healthCheckStatus property: Overall health status of the network connection. Health checks are run on creation, update, and periodically to validate the network connection.

Returns:

the healthCheckStatus value.

networkingResourceGroupName

public String networkingResourceGroupName()

Get the networkingResourceGroupName property: The name for resource group where NICs will be placed.

Returns:

the networkingResourceGroupName value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NetworkProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

NetworkProperties.validate()

withDomainJoinType

public NetworkProperties withDomainJoinType(DomainJoinType domainJoinType)

Set the domainJoinType property: AAD Join type.

Parameters:

domainJoinType - the domainJoinType value to set.

Returns:

the NetworkProperties object itself.

withDomainName

public NetworkProperties withDomainName(String domainName)

Set the domainName property: Active Directory domain name.

Overrides:

NetworkProperties.withDomainName(String domainName)

Parameters:

domainName

withDomainPassword

public NetworkProperties withDomainPassword(String domainPassword)

Set the domainPassword property: The password for the account used to join domain.

Overrides:

NetworkProperties.withDomainPassword(String domainPassword)

Parameters:

domainPassword

withDomainUsername

public NetworkProperties withDomainUsername(String domainUsername)

Set the domainUsername property: The username of an Active Directory account (user or service account) that has permissions to create computer objects in Active Directory. Required format: admin@contoso.com.

Overrides:

NetworkProperties.withDomainUsername(String domainUsername)

Parameters:

domainUsername

withNetworkingResourceGroupName

public NetworkProperties withNetworkingResourceGroupName(String networkingResourceGroupName)

Set the networkingResourceGroupName property: The name for resource group where NICs will be placed.

Parameters:

networkingResourceGroupName - the networkingResourceGroupName value to set.

Returns:

the NetworkProperties object itself.

withOrganizationUnit

public NetworkProperties withOrganizationUnit(String organizationUnit)

Set the organizationUnit property: Active Directory domain Organization Unit (OU).

Overrides:

NetworkProperties.withOrganizationUnit(String organizationUnit)

Parameters:

organizationUnit

withSubnetId

public NetworkProperties withSubnetId(String subnetId)

Set the subnetId property: The subnet to attach Virtual Machines to.

Overrides:

NetworkProperties.withSubnetId(String subnetId)

Parameters:

subnetId

Applies to