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 Details

    • ContainerServiceLinuxProfile

      public ContainerServiceLinuxProfile()
      Creates an instance of ContainerServiceLinuxProfile class.
  • Method Details

    • adminUsername

      public String adminUsername()
      Get the adminUsername property: The administrator username to use for Linux VMs.
      Returns:
      the adminUsername value.
    • withAdminUsername

      public ContainerServiceLinuxProfile withAdminUsername(String adminUsername)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.