Class ApiTlsPolicyTrait
java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.aws.apigateway.traits.ApiTlsPolicyTrait
- All Implemented Interfaces:
FromSourceLocation,ToNode,ToShapeId,Trait,ToSmithyBuilder<ApiTlsPolicyTrait>
public final class ApiTlsPolicyTrait
extends AbstractTrait
implements ToSmithyBuilder<ApiTlsPolicyTrait>
Defines the TLS policy and endpoint access mode for an API Gateway REST API.
This trait maps to the x-amazon-apigateway-security-policy and
x-amazon-apigateway-endpoint-access-mode OpenAPI extensions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiTlsPolicyTrait.Builderbuilder()Creates a builder for the trait.protected ObjectNodeThe result of toNode is used for hashCodes and equality.Gets the endpoint access mode for the API.Gets the security policy for the API.Take this object and create a builder that contains all of the current property values of this object.Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.smithy.model.traits.Trait
isSynthetic
-
Field Details
-
ID
-
-
Method Details
-
builder
Creates a builder for the trait.- Returns:
- Returns the created builder.
-
getSecurityPolicy
Gets the security policy for the API.- Returns:
- Returns the security policy string.
-
getEndpointAccessMode
Gets the endpoint access mode for the API.- Returns:
- Returns the optional endpoint access mode.
-
createNode
Description copied from class:AbstractTraitThe result of toNode is used for hashCodes and equality. Subclasses must implement createNode to turn the trait into a Node. This is then cached for subsequent retrievals.- Specified by:
createNodein classAbstractTrait- Returns:
- Returns the trait as a node.
-
toBuilder
Description copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<ApiTlsPolicyTrait>- Returns:
- a builder for type T
-