Class OrchestratorProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.OrchestratorProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OrchestratorProfile>
public final class OrchestratorProfile
extends Object
implements com.azure.json.JsonSerializable<OrchestratorProfile>
Contains information about orchestrator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OrchestratorProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OrchestratorProfile from the JsonReader.Get the isPreview property: Whether Kubernetes version is currently in preview.Get the orchestratorType property: Orchestrator type.Get the orchestratorVersion property: Orchestrator version (major, minor, patch).com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIsPreview(Boolean isPreview) Set the isPreview property: Whether Kubernetes version is currently in preview.withOrchestratorType(String orchestratorType) Set the orchestratorType property: Orchestrator type.withOrchestratorVersion(String orchestratorVersion) Set the orchestratorVersion property: Orchestrator version (major, minor, patch).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OrchestratorProfile
public OrchestratorProfile()Creates an instance of OrchestratorProfile class.
-
-
Method Details
-
orchestratorType
Get the orchestratorType property: Orchestrator type.- Returns:
- the orchestratorType value.
-
withOrchestratorType
Set the orchestratorType property: Orchestrator type.- Parameters:
orchestratorType- the orchestratorType value to set.- Returns:
- the OrchestratorProfile object itself.
-
orchestratorVersion
Get the orchestratorVersion property: Orchestrator version (major, minor, patch).- Returns:
- the orchestratorVersion value.
-
withOrchestratorVersion
Set the orchestratorVersion property: Orchestrator version (major, minor, patch).- Parameters:
orchestratorVersion- the orchestratorVersion value to set.- Returns:
- the OrchestratorProfile object itself.
-
isPreview
Get the isPreview property: Whether Kubernetes version is currently in preview.- Returns:
- the isPreview value.
-
withIsPreview
Set the isPreview property: Whether Kubernetes version is currently in preview.- Parameters:
isPreview- the isPreview value to set.- Returns:
- the OrchestratorProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OrchestratorProfile>- Throws:
IOException
-
fromJson
Reads an instance of OrchestratorProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OrchestratorProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the OrchestratorProfile.
-