AgentOptions Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.AgentOptions

Implements

public final class AgentOptions
implements JsonSerializable<AgentOptions>

AgentOptions are configurations that will be applied to each agent in an agent pool.

Constructor Summary

Constructor Description
AgentOptions()

Creates an instance of AgentOptions class.

Method Summary

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

Reads an instance of AgentOptions from the JsonReader.

long hugepagesCount()

Get the hugepagesCount property: The number of hugepages to allocate.

HugepagesSize hugepagesSize()

Get the hugepagesSize property: The size of the hugepages to allocate.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AgentOptions withHugepagesCount(long hugepagesCount)

Set the hugepagesCount property: The number of hugepages to allocate.

AgentOptions withHugepagesSize(HugepagesSize hugepagesSize)

Set the hugepagesSize property: The size of the hugepages to allocate.

Methods inherited from java.lang.Object

Constructor Details

AgentOptions

public AgentOptions()

Creates an instance of AgentOptions class.

Method Details

fromJson

public static AgentOptions fromJson(JsonReader jsonReader)

Reads an instance of AgentOptions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hugepagesCount

public long hugepagesCount()

Get the hugepagesCount property: The number of hugepages to allocate.

Returns:

the hugepagesCount value.

hugepagesSize

public HugepagesSize hugepagesSize()

Get the hugepagesSize property: The size of the hugepages to allocate.

Returns:

the hugepagesSize value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHugepagesCount

public AgentOptions withHugepagesCount(long hugepagesCount)

Set the hugepagesCount property: The number of hugepages to allocate.

Parameters:

hugepagesCount - the hugepagesCount value to set.

Returns:

the AgentOptions object itself.

withHugepagesSize

public AgentOptions withHugepagesSize(HugepagesSize hugepagesSize)

Set the hugepagesSize property: The size of the hugepages to allocate.

Parameters:

hugepagesSize - the hugepagesSize value to set.

Returns:

the AgentOptions object itself.

Applies to