Class ContainerServiceLinuxProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.ContainerServiceLinuxProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerServiceLinuxProfile>
public final class ContainerServiceLinuxProfile
extends Object
implements com.azure.json.JsonSerializable<ContainerServiceLinuxProfile>
Profile for Linux VMs in the container service cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerServiceLinuxProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the adminUsername property: The administrator username to use for Linux VMs.static ContainerServiceLinuxProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerServiceLinuxProfile from the JsonReader.ssh()Get the ssh property: The SSH configuration for Linux-based VMs running on Azure.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdminUsername(String adminUsername) Set the adminUsername property: The administrator username to use for Linux VMs.Set the ssh property: The SSH configuration for Linux-based VMs running on Azure.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
-
ContainerServiceLinuxProfile
public ContainerServiceLinuxProfile()Creates an instance of ContainerServiceLinuxProfile class.
-
-
Method Details
-
adminUsername
Get the adminUsername property: The administrator username to use for Linux VMs.- Returns:
- the adminUsername value.
-
withAdminUsername
Set the adminUsername property: The administrator username to use for Linux VMs.- Parameters:
adminUsername- the adminUsername value to set.- Returns:
- the ContainerServiceLinuxProfile object itself.
-
ssh
Get the ssh property: The SSH configuration for Linux-based VMs running on Azure.- Returns:
- the ssh value.
-
withSsh
Set the ssh property: The SSH configuration for Linux-based VMs running on Azure.- Parameters:
ssh- the ssh value to set.- Returns:
- the ContainerServiceLinuxProfile 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<ContainerServiceLinuxProfile>- Throws:
IOException
-
fromJson
public static ContainerServiceLinuxProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContainerServiceLinuxProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerServiceLinuxProfile 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 ContainerServiceLinuxProfile.
-