Class IncludeAuth
- java.lang.Object
-
- software.amazon.smithy.build.transforms.IncludeAuth
-
- All Implemented Interfaces:
ProjectionTransformer
public final class IncludeAuth extends java.lang.Object implements ProjectionTransformer
Removes authentication schemes from "auth" traits and from the "auth" property of protocols that do not match one of the given arguments (a list of authentication schemes).
-
-
Constructor Summary
Constructors Constructor Description IncludeAuth()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.BiFunction<software.amazon.smithy.model.transform.ModelTransformer,software.amazon.smithy.model.Model,software.amazon.smithy.model.Model>
createTransformer(java.util.List<java.lang.String> arguments)
Creates a function that transforms a model using the providedModelTransformer
.java.util.List<java.lang.String>
getAliases()
Returns a list of aliases that the transformer also answers to.java.lang.String
getName()
Gets the name of the transformer.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:ProjectionTransformer
Gets the name of the transformer.- Specified by:
getName
in interfaceProjectionTransformer
- Returns:
- Returns the name (e.g., "traits").
-
getAliases
public java.util.List<java.lang.String> getAliases()
Description copied from interface:ProjectionTransformer
Returns a list of aliases that the transformer also answers to.- Specified by:
getAliases
in interfaceProjectionTransformer
- Returns:
- True if this transformer is responsible for the given name.
-
createTransformer
public java.util.function.BiFunction<software.amazon.smithy.model.transform.ModelTransformer,software.amazon.smithy.model.Model,software.amazon.smithy.model.Model> createTransformer(java.util.List<java.lang.String> arguments)
Description copied from interface:ProjectionTransformer
Creates a function that transforms a model using the providedModelTransformer
.- Specified by:
createTransformer
in interfaceProjectionTransformer
- Parameters:
arguments
- Arguments used to create the ModelTransformer.- Returns:
- Returns the created transformer.
-
-