Package io.github.cdklabs.projen.github
Class DependabotRegistry.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.DependabotRegistry.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DependabotRegistry>
- Enclosing interface:
- DependabotRegistry
@Stability(Experimental) public static final class DependabotRegistry.Builder extends Object implements software.amazon.jsii.Builder<DependabotRegistry>
A builder forDependabotRegistry
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependabotRegistrybuild()Builds the configured instance.DependabotRegistry.Builderkey(String key)Sets the value ofDependabotRegistry.getKey()DependabotRegistry.Builderorganization(String organization)Sets the value ofDependabotRegistry.getOrganization()DependabotRegistry.Builderpassword(String password)Sets the value ofDependabotRegistry.getPassword()DependabotRegistry.BuilderreplacesBase(Boolean replacesBase)Sets the value ofDependabotRegistry.getReplacesBase()DependabotRegistry.Buildertoken(String token)Sets the value ofDependabotRegistry.getToken()DependabotRegistry.Buildertype(DependabotRegistryType type)Sets the value ofDependabotRegistry.getType()DependabotRegistry.Builderurl(String url)Sets the value ofDependabotRegistry.getUrl()DependabotRegistry.Builderusername(String username)Sets the value ofDependabotRegistry.getUsername()
-
-
-
Method Detail
-
type
@Stability(Experimental) public DependabotRegistry.Builder type(DependabotRegistryType type)
Sets the value ofDependabotRegistry.getType()- Parameters:
type- Registry type e.g. 'npm-registry' or 'docker-registry'. This parameter is required.- Returns:
this
-
url
@Stability(Experimental) public DependabotRegistry.Builder url(String url)
Sets the value ofDependabotRegistry.getUrl()- Parameters:
url- Url for the registry e.g. 'https://npm.pkg.github.com' or 'registry.hub.docker.com'. This parameter is required.- Returns:
this
-
key
@Stability(Experimental) public DependabotRegistry.Builder key(String key)
Sets the value ofDependabotRegistry.getKey()- Parameters:
key- A reference to a Dependabot secret containing an access key for this registry.- Returns:
this
-
organization
@Stability(Experimental) public DependabotRegistry.Builder organization(String organization)
Sets the value ofDependabotRegistry.getOrganization()- Parameters:
organization- Used with the hex-organization registry type.- Returns:
this
-
password
@Stability(Experimental) public DependabotRegistry.Builder password(String password)
Sets the value ofDependabotRegistry.getPassword()- Parameters:
password- A reference to a Dependabot secret containing the password for the specified user.- Returns:
this
-
replacesBase
@Stability(Experimental) public DependabotRegistry.Builder replacesBase(Boolean replacesBase)
Sets the value ofDependabotRegistry.getReplacesBase()- Parameters:
replacesBase- For registries with type: python-index, if the boolean value is true, pip esolves dependencies by using the specified URL rather than the base URL of the Python Package Index (by default https://pypi.org/simple).- Returns:
this
-
token
@Stability(Experimental) public DependabotRegistry.Builder token(String token)
Sets the value ofDependabotRegistry.getToken()- Parameters:
token- Secret token for dependabot access e.g. '${{ secrets.DEPENDABOT_PACKAGE_TOKEN }}'.- Returns:
this
-
username
@Stability(Experimental) public DependabotRegistry.Builder username(String username)
Sets the value ofDependabotRegistry.getUsername()- Parameters:
username- The username that Dependabot uses to access the registry.- Returns:
this
-
build
@Stability(Experimental) public DependabotRegistry build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DependabotRegistry>- Returns:
- a new instance of
DependabotRegistry - Throws:
NullPointerException- if any required attribute was not provided
-
-