Class Storage


  • public final class Storage
    extends Object
    Storage Profile properties of a server.
    • Constructor Detail

      • Storage

        public Storage()
    • Method Detail

      • storageSizeGB

        public Integer storageSizeGB()
        Get the storageSizeGB property: Max storage size allowed for a server.
        Returns:
        the storageSizeGB value.
      • withStorageSizeGB

        public Storage withStorageSizeGB​(Integer storageSizeGB)
        Set the storageSizeGB property: Max storage size allowed for a server.
        Parameters:
        storageSizeGB - the storageSizeGB value to set.
        Returns:
        the Storage object itself.
      • iops

        public Integer iops()
        Get the iops property: Storage IOPS for a server.
        Returns:
        the iops value.
      • withIops

        public Storage withIops​(Integer iops)
        Set the iops property: Storage IOPS for a server.
        Parameters:
        iops - the iops value to set.
        Returns:
        the Storage object itself.
      • autoGrow

        public EnableStatusEnum autoGrow()
        Get the autoGrow property: Enable Storage Auto Grow or not.
        Returns:
        the autoGrow value.
      • withAutoGrow

        public Storage withAutoGrow​(EnableStatusEnum autoGrow)
        Set the autoGrow property: Enable Storage Auto Grow or not.
        Parameters:
        autoGrow - the autoGrow value to set.
        Returns:
        the Storage object itself.
      • storageSku

        public String storageSku()
        Get the storageSku property: The sku name of the server storage.
        Returns:
        the storageSku value.
      • validate

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