Class CfnProject.BuildStatusConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.BuildStatusConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.BuildStatusConfigProperty>
- Enclosing interface:
CfnProject.BuildStatusConfigProperty
@Stability(Stable)
public static final class CfnProject.BuildStatusConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.BuildStatusConfigProperty>
A builder for
CfnProject.BuildStatusConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnProject.BuildStatusConfigProperty.getContext()Sets the value ofCfnProject.BuildStatusConfigProperty.getTargetUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
context
Sets the value ofCfnProject.BuildStatusConfigProperty.getContext()- Parameters:
context- Specifies the context of the build status CodeBuild sends to the source provider. The usage of this parameter depends on the source provider.- Bitbucket - This parameter is used for the
nameparameter in the Bitbucket commit status. For more information, see build in the Bitbucket API documentation. - GitHub/GitHub Enterprise Server - This parameter is used for the
contextparameter in the GitHub commit status. For more information, see Create a commit status in the GitHub developer guide.
- Bitbucket - This parameter is used for the
- Returns:
this
-
targetUrl
Sets the value ofCfnProject.BuildStatusConfigProperty.getTargetUrl()- Parameters:
targetUrl- Specifies the target url of the build status CodeBuild sends to the source provider. The usage of this parameter depends on the source provider.- Bitbucket - This parameter is used for the
urlparameter in the Bitbucket commit status. For more information, see build in the Bitbucket API documentation. - GitHub/GitHub Enterprise Server - This parameter is used for the
target_urlparameter in the GitHub commit status. For more information, see Create a commit status in the GitHub developer guide.
- Bitbucket - This parameter is used for the
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProject.BuildStatusConfigProperty>- Returns:
- a new instance of
CfnProject.BuildStatusConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-