Package io.github.cdklabs.projen.gitlab
Class Link.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.gitlab.Link.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Linkbuild()Builds the configured instance.Link.Builderfilepath(String filepath)Sets the value ofLink.getFilepath()Link.BuilderlinkType(LinkType linkType)Sets the value ofLink.getLinkType()Link.Buildername(String name)Sets the value ofLink.getName()Link.Builderurl(String url)Sets the value ofLink.getUrl()
-
-
-
Method Detail
-
name
@Stability(Experimental) public Link.Builder name(String name)
Sets the value ofLink.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 ofLink.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 ofLink.getFilepath()- Parameters:
filepath- The redirect link to the url.- Returns:
this
-
linkType
@Stability(Experimental) public Link.Builder linkType(LinkType linkType)
Sets the value ofLink.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:
buildin interfacesoftware.amazon.jsii.Builder<Link>- Returns:
- a new instance of
Link - Throws:
NullPointerException- if any required attribute was not provided
-
-