Class EventApiAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.EventApiAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventApiAttributes>
- Enclosing interface:
EventApiAttributes
@Stability(Stable)
public static final class EventApiAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<EventApiAttributes>
A builder for
EventApiAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofEventApiAttributes.getApiArn()Sets the value ofEventApiAttributes.getApiId()Sets the value ofEventApiAttributes.getApiName()authProviderTypes(List<? extends AppSyncAuthorizationType> authProviderTypes) Sets the value ofEventApiAttributes.getAuthProviderTypes()build()Builds the configured instance.Sets the value ofEventApiAttributes.getHttpDns()realtimeDns(String realtimeDns) Sets the value ofEventApiAttributes.getRealtimeDns()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofEventApiAttributes.getApiId()- Parameters:
apiId- an unique AWS AppSync Event API identifier i.e. 'lxz775lwdrgcndgz3nurvac7oa'. This parameter is required.- Returns:
this
-
httpDns
Sets the value ofEventApiAttributes.getHttpDns()- Parameters:
httpDns- the domain name of the Api's HTTP endpoint. This parameter is required.- Returns:
this
-
realtimeDns
Sets the value ofEventApiAttributes.getRealtimeDns()- Parameters:
realtimeDns- the domain name of the Api's real-time endpoint. This parameter is required.- Returns:
this
-
apiArn
Sets the value ofEventApiAttributes.getApiArn()- Parameters:
apiArn- the ARN of the Event API.- Returns:
this
-
apiName
Sets the value ofEventApiAttributes.getApiName()- Parameters:
apiName- the name of the Event API.- Returns:
this
-
authProviderTypes
@Stability(Stable) public EventApiAttributes.Builder authProviderTypes(List<? extends AppSyncAuthorizationType> authProviderTypes) Sets the value ofEventApiAttributes.getAuthProviderTypes()- Parameters:
authProviderTypes- The Authorization Types for this Event Api.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EventApiAttributes>- Returns:
- a new instance of
EventApiAttributes - Throws:
NullPointerException- if any required attribute was not provided
-