Class Link.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<Link>
    Enclosing interface:
    Link

    @Stability(Experimental)
    public static final class Link.Builder
    extends Object
    implements software.amazon.jsii.Builder<Link>
    A builder for Link
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Experimental)
        public Link.Builder name​(String name)
        Sets the value of Link.getName()
        Parameters:
        name - The name of the link. This parameter is required.
        Returns:
        this
      • url

        @Stability(Experimental)
        public Link.Builder url​(String url)
        Sets the value of Link.getUrl()
        Parameters:
        url - The URL to download a file. This parameter is required.
        Returns:
        this
      • filepath

        @Stability(Experimental)
        public Link.Builder filepath​(String filepath)
        Sets the value of Link.getFilepath()
        Parameters:
        filepath - The redirect link to the url.
        Returns:
        this
      • linkType

        @Stability(Experimental)
        public Link.Builder linkType​(LinkType linkType)
        Sets the value of Link.getLinkType()
        Parameters:
        linkType - The content kind of what users can download via url.
        Returns:
        this
      • build

        @Stability(Experimental)
        public Link build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<Link>
        Returns:
        a new instance of Link
        Throws:
        NullPointerException - if any required attribute was not provided