Поделиться через


NetworkConnectionUpdateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.fluent.models.NetworkConnectionUpdateProperties

Implements

public class NetworkConnectionUpdateProperties
implements JsonSerializable<NetworkConnectionUpdateProperties>

Properties of network connection. These properties can be updated after the resource has been created.

Constructor Summary

Constructor Description
NetworkConnectionUpdateProperties()

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

Reads an instance of NetworkConnectionUpdateProperties 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.

NetworkConnectionUpdateProperties withDomainName(String domainName)

Set the domainName property: Active Directory domain name.

NetworkConnectionUpdateProperties withDomainPassword(String domainPassword)

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

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

NetworkConnectionUpdateProperties withOrganizationUnit(String organizationUnit)

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

NetworkConnectionUpdateProperties withSubnetId(String subnetId)

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

Methods inherited from java.lang.Object

Constructor Details

NetworkConnectionUpdateProperties

public NetworkConnectionUpdateProperties()

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

Reads an instance of NetworkConnectionUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDomainName

public NetworkConnectionUpdateProperties withDomainName(String domainName)

Set the domainName property: Active Directory domain name.

Parameters:

domainName - the domainName value to set.

Returns:

the NetworkConnectionUpdateProperties object itself.

withDomainPassword

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

withDomainUsername

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

withOrganizationUnit

public NetworkConnectionUpdateProperties withOrganizationUnit(String organizationUnit)

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

Parameters:

organizationUnit - the organizationUnit value to set.

Returns:

the NetworkConnectionUpdateProperties object itself.

withSubnetId

public NetworkConnectionUpdateProperties withSubnetId(String subnetId)

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

Parameters:

subnetId - the subnetId value to set.

Returns:

the NetworkConnectionUpdateProperties object itself.

Applies to