Class EventApiProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.EventApiProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventApiProps>
- Enclosing interface:
EventApiProps
@Stability(Stable)
public static final class EventApiProps.Builder
extends Object
implements software.amazon.jsii.Builder<EventApiProps>
A builder for
EventApiProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofEventApiProps.getApiName()authorizationConfig(EventApiAuthConfig authorizationConfig) Sets the value ofEventApiProps.getAuthorizationConfig()build()Builds the configured instance.domainName(AppSyncDomainOptions domainName) Sets the value ofEventApiProps.getDomainName()logConfig(AppSyncLogConfig logConfig) Sets the value ofEventApiProps.getLogConfig()ownerContact(String ownerContact) Sets the value ofEventApiProps.getOwnerContact()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiName
Sets the value ofEventApiProps.getApiName()- Parameters:
apiName- the name of the Event API. This parameter is required.- Returns:
this
-
authorizationConfig
@Stability(Stable) public EventApiProps.Builder authorizationConfig(EventApiAuthConfig authorizationConfig) Sets the value ofEventApiProps.getAuthorizationConfig()- Parameters:
authorizationConfig- Optional authorization configuration.- Returns:
this
-
domainName
Sets the value ofEventApiProps.getDomainName()- Parameters:
domainName- The domain name configuration for the Event API. The Route 53 hosted zone and CName DNS record must be configured in addition to this setting to enable custom domain URL- Returns:
this
-
logConfig
Sets the value ofEventApiProps.getLogConfig()- Parameters:
logConfig- Logging configuration for this api.- Returns:
this
-
ownerContact
Sets the value ofEventApiProps.getOwnerContact()- Parameters:
ownerContact- The owner contact information for an API resource. This field accepts any string input with a length of 0 - 256 characters.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EventApiProps>- Returns:
- a new instance of
EventApiProps - Throws:
NullPointerException- if any required attribute was not provided
-