TopLevelDomainInner Class

public final class TopLevelDomainInner
extends ProxyOnlyResource

A top level domain object.

Constructor Summary

Constructor Description
TopLevelDomainInner()

Creates an instance of TopLevelDomainInner class.

Method Summary

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

Reads an instance of TopLevelDomainInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

Boolean privacy()

Get the privacy property: If true, then the top level domain supports domain privacy; otherwise, false.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

TopLevelDomainInner withKind(String kind)

Set the kind property: Kind of resource.

TopLevelDomainInner withPrivacy(Boolean privacy)

Set the privacy property: If true, then the top level domain supports domain privacy; otherwise, false.

Methods inherited from ProxyOnlyResource

Methods inherited from java.lang.Object

Constructor Details

TopLevelDomainInner

public TopLevelDomainInner()

Creates an instance of TopLevelDomainInner class.

Method Details

fromJson

public static TopLevelDomainInner fromJson(JsonReader jsonReader)

Reads an instance of TopLevelDomainInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TopLevelDomainInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

TopLevelDomainInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

TopLevelDomainInner.name()

Returns:

the name value.

privacy

public Boolean privacy()

Get the privacy property: If true, then the top level domain supports domain privacy; otherwise, false.

Returns:

the privacy value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TopLevelDomainInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

TopLevelDomainInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

TopLevelDomainInner.validate()

withKind

public TopLevelDomainInner withKind(String kind)

Set the kind property: Kind of resource.

Overrides:

TopLevelDomainInner.withKind(String kind)

Parameters:

kind

withPrivacy

public TopLevelDomainInner withPrivacy(Boolean privacy)

Set the privacy property: If true, then the top level domain supports domain privacy; otherwise, false.

Parameters:

privacy - the privacy value to set.

Returns:

the TopLevelDomainInner object itself.

Applies to