Interface Api.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Api.Builder,
,Api> SdkBuilder<Api.Builder,
,Api> SdkPojo
- Enclosing class:
Api
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) for theApi
.TheApi
ID.The date and time that theApi
was created.The DNS records for the API.default Api.Builder
eventConfig
(Consumer<EventConfig.Builder> eventConfig) The Event API configuration.eventConfig
(EventConfig eventConfig) The Event API configuration.The name of theApi
.ownerContact
(String ownerContact) The owner contact information for theApi
Sets the value of the Tags property for this object.wafWebAclArn
(String wafWebAclArn) The Amazon Resource Name (ARN) of the WAF web access control list (web ACL) associated with thisApi
, if one exists.xrayEnabled
(Boolean xrayEnabled) A flag indicating whether to use X-Ray tracing for thisApi
.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
apiId
The
Api
ID.- Parameters:
apiId
- TheApi
ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the
Api
.- Parameters:
name
- The name of theApi
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerContact
The owner contact information for the
Api
- Parameters:
ownerContact
- The owner contact information for theApi
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object.- Parameters:
tags
- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dns
The DNS records for the API. This will include an HTTP and a real-time endpoint.
- Parameters:
dns
- The DNS records for the API. This will include an HTTP and a real-time endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiArn
The Amazon Resource Name (ARN) for the
Api
.- Parameters:
apiArn
- The Amazon Resource Name (ARN) for theApi
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
created
The date and time that the
Api
was created.- Parameters:
created
- The date and time that theApi
was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
xrayEnabled
A flag indicating whether to use X-Ray tracing for this
Api
.- Parameters:
xrayEnabled
- A flag indicating whether to use X-Ray tracing for thisApi
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wafWebAclArn
The Amazon Resource Name (ARN) of the WAF web access control list (web ACL) associated with this
Api
, if one exists.- Parameters:
wafWebAclArn
- The Amazon Resource Name (ARN) of the WAF web access control list (web ACL) associated with thisApi
, if one exists.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventConfig
The Event API configuration. This includes the default authorization configuration for connecting, publishing, and subscribing to an Event API.
- Parameters:
eventConfig
- The Event API configuration. This includes the default authorization configuration for connecting, publishing, and subscribing to an Event API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventConfig
The Event API configuration. This includes the default authorization configuration for connecting, publishing, and subscribing to an Event API.
This is a convenience method that creates an instance of theEventConfig.Builder
avoiding the need to create one manually viaEventConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeventConfig(EventConfig)
.- Parameters:
eventConfig
- a consumer that will call methods onEventConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-