Class ServerForCreate


  • public final class ServerForCreate
    extends Object
    Represents a server to be created.
    • Constructor Detail

      • ServerForCreate

        public ServerForCreate()
    • Method Detail

      • identity

        public ResourceIdentity identity()
        Get the identity property: The Azure Active Directory identity of the server.
        Returns:
        the identity value.
      • withIdentity

        public ServerForCreate withIdentity​(ResourceIdentity identity)
        Set the identity property: The Azure Active Directory identity of the server.
        Parameters:
        identity - the identity value to set.
        Returns:
        the ServerForCreate object itself.
      • sku

        public Sku sku()
        Get the sku property: The SKU (pricing tier) of the server.
        Returns:
        the sku value.
      • withSku

        public ServerForCreate withSku​(Sku sku)
        Set the sku property: The SKU (pricing tier) of the server.
        Parameters:
        sku - the sku value to set.
        Returns:
        the ServerForCreate object itself.
      • properties

        public ServerPropertiesForCreate properties()
        Get the properties property: Properties of the server.
        Returns:
        the properties value.
      • withProperties

        public ServerForCreate withProperties​(ServerPropertiesForCreate properties)
        Set the properties property: Properties of the server.
        Parameters:
        properties - the properties value to set.
        Returns:
        the ServerForCreate object itself.
      • location

        public String location()
        Get the location property: The location the resource resides in.
        Returns:
        the location value.
      • withLocation

        public ServerForCreate withLocation​(String location)
        Set the location property: The location the resource resides in.
        Parameters:
        location - the location value to set.
        Returns:
        the ServerForCreate object itself.
      • tags

        public Map<String,​String> tags()
        Get the tags property: Application-specific metadata in the form of key-value pairs.
        Returns:
        the tags value.
      • withTags

        public ServerForCreate withTags​(Map<String,​String> tags)
        Set the tags property: Application-specific metadata in the form of key-value pairs.
        Parameters:
        tags - the tags value to set.
        Returns:
        the ServerForCreate object itself.
      • validate

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