Class OsProfile


  • public final class OsProfile
    extends Object
    Defines the resource properties.
    • Constructor Detail

      • OsProfile

        public OsProfile()
    • Method Detail

      • adminPassword

        public String adminPassword()
        Get the adminPassword property: Admin password of the virtual machine.
        Returns:
        the adminPassword value.
      • withAdminPassword

        public OsProfile withAdminPassword​(String adminPassword)
        Set the adminPassword property: Admin password of the virtual machine.
        Parameters:
        adminPassword - the adminPassword value to set.
        Returns:
        the OsProfile object itself.
      • computerName

        public String computerName()
        Get the computerName property: Gets or sets computer name.
        Returns:
        the computerName value.
      • withComputerName

        public OsProfile withComputerName​(String computerName)
        Set the computerName property: Gets or sets computer name.
        Parameters:
        computerName - the computerName value to set.
        Returns:
        the OsProfile object itself.
      • osType

        public OsType osType()
        Get the osType property: Gets or sets the type of the os.
        Returns:
        the osType value.
      • osName

        public String osName()
        Get the osName property: Gets or sets os name.
        Returns:
        the osName value.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.