ExternalSubnet Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.ExternalSubnet

public final class ExternalSubnet

Subnet information as returned by the Microsoft.Network API.

Constructor Summary

Constructor Description
ExternalSubnet()

Creates an instance of ExternalSubnet class.

Method Summary

Modifier and Type Method and Description
String id()

Get the id property: Gets or sets the identifier.

String name()

Get the name property: Gets or sets the name.

void validate()

Validates the instance.

ExternalSubnet withId(String id)

Set the id property: Gets or sets the identifier.

ExternalSubnet withName(String name)

Set the name property: Gets or sets the name.

Methods inherited from java.lang.Object

Constructor Details

ExternalSubnet

public ExternalSubnet()

Creates an instance of ExternalSubnet class.

Method Details

id

public String id()

Get the id property: Gets or sets the identifier.

Returns:

the id value.

name

public String name()

Get the name property: Gets or sets the name.

Returns:

the name value.

validate

public void validate()

Validates the instance.

withId

public ExternalSubnet withId(String id)

Set the id property: Gets or sets the identifier.

Parameters:

id - the id value to set.

Returns:

the ExternalSubnet object itself.

withName

public ExternalSubnet withName(String name)

Set the name property: Gets or sets the name.

Parameters:

name - the name value to set.

Returns:

the ExternalSubnet object itself.

Applies to