Class VirtualMachineSecrets

java.lang.Object
com.azure.resourcemanager.machinelearning.fluent.models.ComputeSecretsInner
com.azure.resourcemanager.machinelearning.models.VirtualMachineSecrets
All Implemented Interfaces:
com.azure.json.JsonSerializable<ComputeSecretsInner>

public final class VirtualMachineSecrets extends ComputeSecretsInner
Secrets related to a Machine Learning compute based on AKS.
  • Constructor Details

    • VirtualMachineSecrets

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

    • computeType

      public ComputeType computeType()
      Get the computeType property: The type of compute.
      Overrides:
      computeType in class ComputeSecretsInner
      Returns:
      the computeType value.
    • administratorAccount

      public VirtualMachineSshCredentials administratorAccount()
      Get the administratorAccount property: Admin credentials for virtual machine.
      Returns:
      the administratorAccount value.
    • withAdministratorAccount

      public VirtualMachineSecrets withAdministratorAccount(VirtualMachineSshCredentials administratorAccount)
      Set the administratorAccount property: Admin credentials for virtual machine.
      Parameters:
      administratorAccount - the administratorAccount value to set.
      Returns:
      the VirtualMachineSecrets object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ComputeSecretsInner
      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<ComputeSecretsInner>
      Overrides:
      toJson in class ComputeSecretsInner
      Throws:
      IOException
    • fromJson

      public static VirtualMachineSecrets fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VirtualMachineSecrets from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VirtualMachineSecrets if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the VirtualMachineSecrets.