Partager via


ResourceTypeAliases Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.ResourceTypeAliases

Implements

public final class ResourceTypeAliases
implements JsonSerializable<ResourceTypeAliases>

The resource type aliases definition.

Constructor Summary

Constructor Description
ResourceTypeAliases()

Creates an instance of ResourceTypeAliases class.

Method Summary

Modifier and Type Method and Description
List<Alias> aliases()

Get the aliases property: The aliases for property names.

static ResourceTypeAliases fromJson(JsonReader jsonReader)

Reads an instance of ResourceTypeAliases from the JsonReader.

String resourceType()

Get the resourceType property: The resource type name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceTypeAliases withAliases(List<Alias> aliases)

Set the aliases property: The aliases for property names.

ResourceTypeAliases withResourceType(String resourceType)

Set the resourceType property: The resource type name.

Methods inherited from java.lang.Object

Constructor Details

ResourceTypeAliases

public ResourceTypeAliases()

Creates an instance of ResourceTypeAliases class.

Method Details

aliases

public List aliases()

Get the aliases property: The aliases for property names.

Returns:

the aliases value.

fromJson

public static ResourceTypeAliases fromJson(JsonReader jsonReader)

Reads an instance of ResourceTypeAliases from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resourceType

public String resourceType()

Get the resourceType property: The resource type name.

Returns:

the resourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAliases

public ResourceTypeAliases withAliases(List aliases)

Set the aliases property: The aliases for property names.

Parameters:

aliases - the aliases value to set.

Returns:

the ResourceTypeAliases object itself.

withResourceType

public ResourceTypeAliases withResourceType(String resourceType)

Set the resourceType property: The resource type name.

Parameters:

resourceType - the resourceType value to set.

Returns:

the ResourceTypeAliases object itself.

Applies to