NetworkConnectionUpdate Class

public final class NetworkConnectionUpdate
extends TrackedResourceUpdate

The network connection properties for partial update. Properties not provided in the update request will not be changed.

Constructor Summary

Constructor Description
NetworkConnectionUpdate()

Creates an instance of NetworkConnectionUpdate class.

Method Summary

Modifier and Type Method and Description
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 NetworkConnectionUpdate fromJson(JsonReader jsonReader)

Reads an instance of NetworkConnectionUpdate from the JsonReader.

String organizationUnit()

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

String subnetId()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkConnectionUpdate withDomainName(String domainName)

Set the domainName property: Active Directory domain name.

NetworkConnectionUpdate withDomainPassword(String domainPassword)

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

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

NetworkConnectionUpdate withLocation(String location)

Set the location property: The geo-location where the resource lives.

NetworkConnectionUpdate withOrganizationUnit(String organizationUnit)

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

NetworkConnectionUpdate withSubnetId(String subnetId)

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

NetworkConnectionUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from TrackedResourceUpdate

Methods inherited from java.lang.Object

Constructor Details

NetworkConnectionUpdate

public NetworkConnectionUpdate()

Creates an instance of NetworkConnectionUpdate class.

Method Details

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 NetworkConnectionUpdate fromJson(JsonReader jsonReader)

Reads an instance of NetworkConnectionUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the NetworkConnectionUpdate.

organizationUnit

public String organizationUnit()

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

Returns:

the organizationUnit value.

subnetId

public String subnetId()

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

Returns:

the subnetId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NetworkConnectionUpdate.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

NetworkConnectionUpdate.validate()

withDomainName

public NetworkConnectionUpdate withDomainName(String domainName)

Set the domainName property: Active Directory domain name.

Parameters:

domainName - the domainName value to set.

Returns:

the NetworkConnectionUpdate object itself.

withDomainPassword

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

withDomainUsername

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

withLocation

public NetworkConnectionUpdate withLocation(String location)

Set the location property: The geo-location where the resource lives.

Overrides:

NetworkConnectionUpdate.withLocation(String location)

Parameters:

location

withOrganizationUnit

public NetworkConnectionUpdate withOrganizationUnit(String organizationUnit)

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

Parameters:

organizationUnit - the organizationUnit value to set.

Returns:

the NetworkConnectionUpdate object itself.

withSubnetId

public NetworkConnectionUpdate withSubnetId(String subnetId)

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

Parameters:

subnetId - the subnetId value to set.

Returns:

the NetworkConnectionUpdate object itself.

withTags

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

Set the tags property: Resource tags.

Overrides:

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

Parameters:

tags

Applies to