Class CfnProject.SourceAuthProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.SourceAuthProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.SourceAuthProperty>
- Enclosing interface:
CfnProject.SourceAuthProperty
@Stability(Stable)
public static final class CfnProject.SourceAuthProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.SourceAuthProperty>
A builder for
CfnProject.SourceAuthProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnProject.SourceAuthProperty.getResource()
Sets the value ofCfnProject.SourceAuthProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnProject.SourceAuthProperty.getType()
- Parameters:
type
- The authorization type to use. The only valid value isOAUTH
, which represents the OAuth authorization type. This parameter is required.This data type is used by the AWS CodeBuild console only.
- Returns:
this
-
resource
Sets the value ofCfnProject.SourceAuthProperty.getResource()
- Parameters:
resource
- The resource value that applies to the specified authorization type.This data type is used by the AWS CodeBuild console only.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProject.SourceAuthProperty>
- Returns:
- a new instance of
CfnProject.SourceAuthProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-