Class CfnService.BearerTokenDetailsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnService.BearerTokenDetailsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.BearerTokenDetailsProperty>
- Enclosing interface:
CfnService.BearerTokenDetailsProperty
@Stability(Stable)
public static final class CfnService.BearerTokenDetailsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.BearerTokenDetailsProperty>
A builder for
CfnService.BearerTokenDetailsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizationHeader(String authorizationHeader) Sets the value ofCfnService.BearerTokenDetailsProperty.getAuthorizationHeader()build()Builds the configured instance.Sets the value ofCfnService.BearerTokenDetailsProperty.getTokenName()tokenValue(String tokenValue) Sets the value ofCfnService.BearerTokenDetailsProperty.getTokenValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tokenName
Sets the value ofCfnService.BearerTokenDetailsProperty.getTokenName()- Parameters:
tokenName- User friendly bearer token name. This parameter is required.- Returns:
this
-
tokenValue
@Stability(Stable) public CfnService.BearerTokenDetailsProperty.Builder tokenValue(String tokenValue) Sets the value ofCfnService.BearerTokenDetailsProperty.getTokenValue()- Parameters:
tokenValue- Bearer token value. This parameter is required.- Returns:
this
-
authorizationHeader
@Stability(Stable) public CfnService.BearerTokenDetailsProperty.Builder authorizationHeader(String authorizationHeader) Sets the value ofCfnService.BearerTokenDetailsProperty.getAuthorizationHeader()- Parameters:
authorizationHeader- HTTP header name to send the bearer token.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.BearerTokenDetailsProperty>- Returns:
- a new instance of
CfnService.BearerTokenDetailsProperty - Throws:
NullPointerException- if any required attribute was not provided
-