Share via


NetworkConnectionInner Class

public final class NetworkConnectionInner
extends Resource

Network related settings.

Constructor Summary

Constructor Description
NetworkConnectionInner()

Creates an instance of NetworkConnectionInner class.

Method Summary

Modifier and Type Method and Description
DomainJoinType domainJoinType()

Get the domainJoinType property: AAD Join type.

String domainName()

Get the domainName property: Active Directory domain name.

String domainPassword()

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

String domainUsername()

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

static NetworkConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of NetworkConnectionInner from the JsonReader.

HealthCheckStatus healthCheckStatus()

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

String id()

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

String name()

Get the name property: The name of the resource.

String networkingResourceGroupName()

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

String organizationUnit()

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

ProvisioningState provisioningState()

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

String subnetId()

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

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

NetworkConnectionInner withDomainJoinType(DomainJoinType domainJoinType)

Set the domainJoinType property: AAD Join type.

NetworkConnectionInner withDomainName(String domainName)

Set the domainName property: Active Directory domain name.

NetworkConnectionInner withDomainPassword(String domainPassword)

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

NetworkConnectionInner 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.

NetworkConnectionInner withLocation(String location)
NetworkConnectionInner withNetworkingResourceGroupName(String networkingResourceGroupName)

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

NetworkConnectionInner withOrganizationUnit(String organizationUnit)

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

NetworkConnectionInner withSubnetId(String subnetId)

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

NetworkConnectionInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

NetworkConnectionInner

public NetworkConnectionInner()

Creates an instance of NetworkConnectionInner class.

Method Details

domainJoinType

public DomainJoinType domainJoinType()

Get the domainJoinType property: AAD Join type.

Returns:

the domainJoinType value.

domainName

public String domainName()

Get the domainName property: Active Directory domain name.

Returns:

the domainName value.

domainPassword

public String domainPassword()

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

Returns:

the domainPassword value.

domainUsername

public String domainUsername()

Get 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.

Returns:

the domainUsername value.

fromJson

public static NetworkConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of NetworkConnectionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

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

Overrides:

NetworkConnectionInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

NetworkConnectionInner.name()

Returns:

the name value.

networkingResourceGroupName

public String networkingResourceGroupName()

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

Returns:

the networkingResourceGroupName value.

organizationUnit

public String organizationUnit()

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

Returns:

the organizationUnit value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

subnetId

public String subnetId()

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

Returns:

the subnetId value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NetworkConnectionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

NetworkConnectionInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDomainJoinType

public NetworkConnectionInner withDomainJoinType(DomainJoinType domainJoinType)

Set the domainJoinType property: AAD Join type.

Parameters:

domainJoinType - the domainJoinType value to set.

Returns:

the NetworkConnectionInner object itself.

withDomainName

public NetworkConnectionInner withDomainName(String domainName)

Set the domainName property: Active Directory domain name.

Parameters:

domainName - the domainName value to set.

Returns:

the NetworkConnectionInner object itself.

withDomainPassword

public NetworkConnectionInner withDomainPassword(String domainPassword)

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

Parameters:

domainPassword - the domainPassword value to set.

Returns:

the NetworkConnectionInner object itself.

withDomainUsername

public NetworkConnectionInner 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.

Parameters:

domainUsername - the domainUsername value to set.

Returns:

the NetworkConnectionInner object itself.

withLocation

public NetworkConnectionInner withLocation(String location)

Overrides:

NetworkConnectionInner.withLocation(String location)

Parameters:

location

withNetworkingResourceGroupName

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

withOrganizationUnit

public NetworkConnectionInner withOrganizationUnit(String organizationUnit)

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

Parameters:

organizationUnit - the organizationUnit value to set.

Returns:

the NetworkConnectionInner object itself.

withSubnetId

public NetworkConnectionInner withSubnetId(String subnetId)

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

Parameters:

subnetId - the subnetId value to set.

Returns:

the NetworkConnectionInner object itself.

withTags

public NetworkConnectionInner withTags(Map<String,String> tags)

Overrides:

NetworkConnectionInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to