Class EventApiAuthConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.EventApiAuthConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventApiAuthConfig>
- Enclosing interface:
EventApiAuthConfig
@Stability(Stable)
public static final class EventApiAuthConfig.Builder
extends Object
implements software.amazon.jsii.Builder<EventApiAuthConfig>
A builder for
EventApiAuthConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthProviders(List<? extends AppSyncAuthProvider> authProviders) Sets the value ofEventApiAuthConfig.getAuthProviders()build()Builds the configured instance.connectionAuthModeTypes(List<? extends AppSyncAuthorizationType> connectionAuthModeTypes) Sets the value ofEventApiAuthConfig.getConnectionAuthModeTypes()defaultPublishAuthModeTypes(List<? extends AppSyncAuthorizationType> defaultPublishAuthModeTypes) Sets the value ofEventApiAuthConfig.getDefaultPublishAuthModeTypes()defaultSubscribeAuthModeTypes(List<? extends AppSyncAuthorizationType> defaultSubscribeAuthModeTypes) Sets the value ofEventApiAuthConfig.getDefaultSubscribeAuthModeTypes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authProviders
@Stability(Stable) public EventApiAuthConfig.Builder authProviders(List<? extends AppSyncAuthProvider> authProviders) Sets the value ofEventApiAuthConfig.getAuthProviders()- Parameters:
authProviders- Auth providers for use in connection, publish, and subscribe operations.- Returns:
this
-
connectionAuthModeTypes
@Stability(Stable) public EventApiAuthConfig.Builder connectionAuthModeTypes(List<? extends AppSyncAuthorizationType> connectionAuthModeTypes) Sets the value ofEventApiAuthConfig.getConnectionAuthModeTypes()- Parameters:
connectionAuthModeTypes- Connection auth modes.- Returns:
this
-
defaultPublishAuthModeTypes
@Stability(Stable) public EventApiAuthConfig.Builder defaultPublishAuthModeTypes(List<? extends AppSyncAuthorizationType> defaultPublishAuthModeTypes) Sets the value ofEventApiAuthConfig.getDefaultPublishAuthModeTypes()- Parameters:
defaultPublishAuthModeTypes- Default publish auth modes.- Returns:
this
-
defaultSubscribeAuthModeTypes
@Stability(Stable) public EventApiAuthConfig.Builder defaultSubscribeAuthModeTypes(List<? extends AppSyncAuthorizationType> defaultSubscribeAuthModeTypes) Sets the value ofEventApiAuthConfig.getDefaultSubscribeAuthModeTypes()- Parameters:
defaultSubscribeAuthModeTypes- Default subscribe auth modes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EventApiAuthConfig>- Returns:
- a new instance of
EventApiAuthConfig - Throws:
NullPointerException- if any required attribute was not provided
-