Class Target


  • public final class Target
    extends Object
    The target of the event.
    • Constructor Detail

      • Target

        public Target()
    • Method Detail

      • mediaType

        public String mediaType()
        Get the mediaType property: The MIME type of the referenced object.
        Returns:
        the mediaType value.
      • withMediaType

        public Target withMediaType​(String mediaType)
        Set the mediaType property: The MIME type of the referenced object.
        Parameters:
        mediaType - the mediaType value to set.
        Returns:
        the Target object itself.
      • size

        public Long size()
        Get the size property: The number of bytes of the content. Same as Length field.
        Returns:
        the size value.
      • withSize

        public Target withSize​(Long size)
        Set the size property: The number of bytes of the content. Same as Length field.
        Parameters:
        size - the size value to set.
        Returns:
        the Target object itself.
      • digest

        public String digest()
        Get the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification.
        Returns:
        the digest value.
      • withDigest

        public Target withDigest​(String digest)
        Set the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification.
        Parameters:
        digest - the digest value to set.
        Returns:
        the Target object itself.
      • length

        public Long length()
        Get the length property: The number of bytes of the content. Same as Size field.
        Returns:
        the length value.
      • withLength

        public Target withLength​(Long length)
        Set the length property: The number of bytes of the content. Same as Size field.
        Parameters:
        length - the length value to set.
        Returns:
        the Target object itself.
      • repository

        public String repository()
        Get the repository property: The repository name.
        Returns:
        the repository value.
      • withRepository

        public Target withRepository​(String repository)
        Set the repository property: The repository name.
        Parameters:
        repository - the repository value to set.
        Returns:
        the Target object itself.
      • url

        public String url()
        Get the url property: The direct URL to the content.
        Returns:
        the url value.
      • withUrl

        public Target withUrl​(String url)
        Set the url property: The direct URL to the content.
        Parameters:
        url - the url value to set.
        Returns:
        the Target object itself.
      • tag

        public String tag()
        Get the tag property: The tag name.
        Returns:
        the tag value.
      • withTag

        public Target withTag​(String tag)
        Set the tag property: The tag name.
        Parameters:
        tag - the tag value to set.
        Returns:
        the Target object itself.
      • name

        public String name()
        Get the name property: The name of the artifact.
        Returns:
        the name value.
      • withName

        public Target withName​(String name)
        Set the name property: The name of the artifact.
        Parameters:
        name - the name value to set.
        Returns:
        the Target object itself.
      • version

        public String version()
        Get the version property: The version of the artifact.
        Returns:
        the version value.
      • withVersion

        public Target withVersion​(String version)
        Set the version property: The version of the artifact.
        Parameters:
        version - the version value to set.
        Returns:
        the Target object itself.
      • validate

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