Package io.github.cdklabs.projen.github
Class GitIdentity.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.GitIdentity.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitIdentity>
- Enclosing interface:
- GitIdentity
@Stability(Experimental) public static final class GitIdentity.Builder extends Object implements software.amazon.jsii.Builder<GitIdentity>
A builder forGitIdentity
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitIdentitybuild()Builds the configured instance.GitIdentity.Builderemail(String email)Sets the value ofGitIdentity.getEmail()GitIdentity.Buildername(String name)Sets the value ofGitIdentity.getName()
-
-
-
Method Detail
-
email
@Stability(Experimental) public GitIdentity.Builder email(String email)
Sets the value ofGitIdentity.getEmail()- Parameters:
email- The email address of the git user. This parameter is required.- Returns:
this
-
name
@Stability(Experimental) public GitIdentity.Builder name(String name)
Sets the value ofGitIdentity.getName()- Parameters:
name- The name of the user. This parameter is required.- Returns:
this
-
build
@Stability(Experimental) public GitIdentity build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GitIdentity>- Returns:
- a new instance of
GitIdentity - Throws:
NullPointerException- if any required attribute was not provided
-
-