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