AvailableServiceAliasInner Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.AvailableServiceAliasInner

Implements

public final class AvailableServiceAliasInner
implements JsonSerializable<AvailableServiceAliasInner>

The available service alias.

Constructor Summary

Constructor Description
AvailableServiceAliasInner()

Creates an instance of AvailableServiceAliasInner class.

Method Summary

Modifier and Type Method and Description
static AvailableServiceAliasInner fromJson(JsonReader jsonReader)

Reads an instance of AvailableServiceAliasInner from the JsonReader.

String id()

Get the id property: The ID of the service alias.

String name()

Get the name property: The name of the service alias.

String resourceName()

Get the resourceName property: The resource name of the service alias.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

AvailableServiceAliasInner withId(String id)

Set the id property: The ID of the service alias.

AvailableServiceAliasInner withName(String name)

Set the name property: The name of the service alias.

AvailableServiceAliasInner withResourceName(String resourceName)

Set the resourceName property: The resource name of the service alias.

AvailableServiceAliasInner withType(String type)

Set the type property: The type of the resource.

Methods inherited from java.lang.Object

Constructor Details

AvailableServiceAliasInner

public AvailableServiceAliasInner()

Creates an instance of AvailableServiceAliasInner class.

Method Details

fromJson

public static AvailableServiceAliasInner fromJson(JsonReader jsonReader)

Reads an instance of AvailableServiceAliasInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The ID of the service alias.

Returns:

the id value.

name

public String name()

Get the name property: The name of the service alias.

Returns:

the name value.

resourceName

public String resourceName()

Get the resourceName property: The resource name of the service alias.

Returns:

the resourceName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public AvailableServiceAliasInner withId(String id)

Set the id property: The ID of the service alias.

Parameters:

id - the id value to set.

Returns:

the AvailableServiceAliasInner object itself.

withName

public AvailableServiceAliasInner withName(String name)

Set the name property: The name of the service alias.

Parameters:

name - the name value to set.

Returns:

the AvailableServiceAliasInner object itself.

withResourceName

public AvailableServiceAliasInner withResourceName(String resourceName)

Set the resourceName property: The resource name of the service alias.

Parameters:

resourceName - the resourceName value to set.

Returns:

the AvailableServiceAliasInner object itself.

withType

public AvailableServiceAliasInner withType(String type)

Set the type property: The type of the resource.

Parameters:

type - the type value to set.

Returns:

the AvailableServiceAliasInner object itself.

Applies to