Class ApiDefinitionConfig.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.ApiDefinitionConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiDefinitionConfig>
- Enclosing interface:
ApiDefinitionConfig
@Stability(Stable)
public static final class ApiDefinitionConfig.Builder
extends Object
implements software.amazon.jsii.Builder<ApiDefinitionConfig>
A builder for
ApiDefinitionConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.inlineDefinition
(Object inlineDefinition) Sets the value ofApiDefinitionConfig.getInlineDefinition()
s3Location
(ApiDefinitionS3Location s3Location) Sets the value ofApiDefinitionConfig.getS3Location()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inlineDefinition
Sets the value ofApiDefinitionConfig.getInlineDefinition()
- Parameters:
inlineDefinition
- Inline specification (mutually exclusive withs3Location
).- Returns:
this
-
s3Location
@Stability(Stable) public ApiDefinitionConfig.Builder s3Location(ApiDefinitionS3Location s3Location) Sets the value ofApiDefinitionConfig.getS3Location()
- Parameters:
s3Location
- The location of the specification in S3 (mutually exclusive withinlineDefinition
).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApiDefinitionConfig>
- Returns:
- a new instance of
ApiDefinitionConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-