AgentOptions Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. AgentOptions
- com.
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 Agent |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Agent |
fromJson(JsonReader jsonReader)
Reads an instance of Agent |
| long |
hugepagesCount()
Get the hugepages |
|
Hugepages |
hugepagesSize()
Get the hugepages |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Agent |
withHugepagesCount(long hugepagesCount)
Set the hugepages |
|
Agent |
withHugepagesSize(HugepagesSize hugepagesSize)
Set the hugepages |
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:
Returns:
Throws:
hugepagesCount
public long hugepagesCount()
Get the hugepagesCount property: The number of hugepages to allocate.
Returns:
hugepagesSize
public HugepagesSize hugepagesSize()
Get the hugepagesSize property: The size of the hugepages to allocate.
Returns:
toJson
validate
public void validate()
Validates the instance.
withHugepagesCount
public AgentOptions withHugepagesCount(long hugepagesCount)
Set the hugepagesCount property: The number of hugepages to allocate.
Parameters:
Returns:
withHugepagesSize
public AgentOptions withHugepagesSize(HugepagesSize hugepagesSize)
Set the hugepagesSize property: The size of the hugepages to allocate.
Parameters:
Returns: