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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CorsTrait.Builder
additionalAllowedHeaders(java.util.Set<java.lang.String> additionalAllowedHeaders)
CorsTrait.Builder
additionalExposedHeaders(java.util.Set<java.lang.String> additionalExposedHeaders)
CorsTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.CorsTrait.Builder
maxAge(int maxAge)
CorsTrait.Builder
origin(java.lang.String origin)
-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
origin
public CorsTrait.Builder origin(java.lang.String origin)
-
maxAge
public CorsTrait.Builder maxAge(int maxAge)
-
additionalAllowedHeaders
public CorsTrait.Builder additionalAllowedHeaders(java.util.Set<java.lang.String> additionalAllowedHeaders)
-
additionalExposedHeaders
public CorsTrait.Builder additionalExposedHeaders(java.util.Set<java.lang.String> additionalExposedHeaders)
-
build
public CorsTrait 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
-
-