SeedNode Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.SeedNode

Implements

public final class SeedNode
implements JsonSerializable<SeedNode>

The SeedNode model.

Constructor Summary

Constructor Description
SeedNode()

Creates an instance of SeedNode class.

Method Summary

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

Reads an instance of SeedNode from the JsonReader.

String ipAddress()

Get the ipAddress property: IP address of this seed node.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SeedNode withIpAddress(String ipAddress)

Set the ipAddress property: IP address of this seed node.

Methods inherited from java.lang.Object

Constructor Details

SeedNode

public SeedNode()

Creates an instance of SeedNode class.

Method Details

fromJson

public static SeedNode fromJson(JsonReader jsonReader)

Reads an instance of SeedNode from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ipAddress

public String ipAddress()

Get the ipAddress property: IP address of this seed node.

Returns:

the ipAddress value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIpAddress

public SeedNode withIpAddress(String ipAddress)

Set the ipAddress property: IP address of this seed node.

Parameters:

ipAddress - the ipAddress value to set.

Returns:

the SeedNode object itself.

Applies to