Class CfnFunctionPropsMixin.AuthProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sam.CfnFunctionPropsMixin.AuthProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionPropsMixin.AuthProperty>
- Enclosing interface:
CfnFunctionPropsMixin.AuthProperty
@Stability(Stable)
public static final class CfnFunctionPropsMixin.AuthProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionPropsMixin.AuthProperty>
A builder for
CfnFunctionPropsMixin.AuthProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKeyRequired(Boolean apiKeyRequired) Sets the value ofCfnFunctionPropsMixin.AuthProperty.getApiKeyRequired()apiKeyRequired(IResolvable apiKeyRequired) Sets the value ofCfnFunctionPropsMixin.AuthProperty.getApiKeyRequired()authorizationScopes(List<String> authorizationScopes) Sets the value ofCfnFunctionPropsMixin.AuthProperty.getAuthorizationScopes()authorizer(String authorizer) Sets the value ofCfnFunctionPropsMixin.AuthProperty.getAuthorizer()build()Builds the configured instance.resourcePolicy(CfnFunctionPropsMixin.AuthResourcePolicyProperty resourcePolicy) Sets the value ofCfnFunctionPropsMixin.AuthProperty.getResourcePolicy()resourcePolicy(IResolvable resourcePolicy) Sets the value ofCfnFunctionPropsMixin.AuthProperty.getResourcePolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKeyRequired
@Stability(Stable) public CfnFunctionPropsMixin.AuthProperty.Builder apiKeyRequired(Boolean apiKeyRequired) Sets the value ofCfnFunctionPropsMixin.AuthProperty.getApiKeyRequired()- Parameters:
apiKeyRequired- the value to be set.- Returns:
this
-
apiKeyRequired
@Stability(Stable) public CfnFunctionPropsMixin.AuthProperty.Builder apiKeyRequired(IResolvable apiKeyRequired) Sets the value ofCfnFunctionPropsMixin.AuthProperty.getApiKeyRequired()- Parameters:
apiKeyRequired- the value to be set.- Returns:
this
-
authorizationScopes
@Stability(Stable) public CfnFunctionPropsMixin.AuthProperty.Builder authorizationScopes(List<String> authorizationScopes) Sets the value ofCfnFunctionPropsMixin.AuthProperty.getAuthorizationScopes()- Parameters:
authorizationScopes- the value to be set.- Returns:
this
-
authorizer
Sets the value ofCfnFunctionPropsMixin.AuthProperty.getAuthorizer()- Parameters:
authorizer- the value to be set.- Returns:
this
-
resourcePolicy
@Stability(Stable) public CfnFunctionPropsMixin.AuthProperty.Builder resourcePolicy(IResolvable resourcePolicy) Sets the value ofCfnFunctionPropsMixin.AuthProperty.getResourcePolicy()- Parameters:
resourcePolicy- the value to be set.- Returns:
this
-
resourcePolicy
@Stability(Stable) public CfnFunctionPropsMixin.AuthProperty.Builder resourcePolicy(CfnFunctionPropsMixin.AuthResourcePolicyProperty resourcePolicy) Sets the value ofCfnFunctionPropsMixin.AuthProperty.getResourcePolicy()- Parameters:
resourcePolicy- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionPropsMixin.AuthProperty>- Returns:
- a new instance of
CfnFunctionPropsMixin.AuthProperty - Throws:
NullPointerException- if any required attribute was not provided
-