Class CorsTrait.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<CorsTrait,CorsTrait.Builder>
software.amazon.smithy.model.traits.CorsTrait.Builder
- All Implemented Interfaces:
SmithyBuilder<CorsTrait>
- Enclosing class:
- CorsTrait
public static final class CorsTrait.Builder
extends AbstractTraitBuilder<CorsTrait,CorsTrait.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionadditionalAllowedHeaders
(Set<String> additionalAllowedHeaders) additionalExposedHeaders
(Set<String> additionalExposedHeaders) build()
Creates an immutable object that is created from the properties that have been set on the builder.maxAge
(int maxAge) Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
Method Details
-
origin
-
maxAge
-
additionalAllowedHeaders
-
additionalExposedHeaders
-
build
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-