CustomizationHostname Class

  • java.lang.Object
    • com.azure.resourcemanager.vmwarecloudsimple.models.CustomizationHostname

Implements

public final class CustomizationHostname
implements JsonSerializable<CustomizationHostname>

Host name model.

Constructor Summary

Constructor Description
CustomizationHostname()

Creates an instance of CustomizationHostname class.

Method Summary

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

Reads an instance of CustomizationHostname from the JsonReader.

String name()

Get the name property: Hostname.

JsonWriter toJson(JsonWriter jsonWriter)
CustomizationHostnameType type()

Get the type property: Type of host name.

void validate()

Validates the instance.

CustomizationHostname withName(String name)

Set the name property: Hostname.

CustomizationHostname withType(CustomizationHostnameType type)

Set the type property: Type of host name.

Methods inherited from java.lang.Object

Constructor Details

CustomizationHostname

public CustomizationHostname()

Creates an instance of CustomizationHostname class.

Method Details

fromJson

public static CustomizationHostname fromJson(JsonReader jsonReader)

Reads an instance of CustomizationHostname from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Hostname.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public CustomizationHostnameType type()

Get the type property: Type of host name.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public CustomizationHostname withName(String name)

Set the name property: Hostname.

Parameters:

name - the name value to set.

Returns:

the CustomizationHostname object itself.

withType

public CustomizationHostname withType(CustomizationHostnameType type)

Set the type property: Type of host name.

Parameters:

type - the type value to set.

Returns:

the CustomizationHostname object itself.

Applies to