Class AuthSchemeCodegenKnowledgeIndex
- java.lang.Object
-
- software.amazon.awssdk.codegen.poet.auth.scheme.AuthSchemeCodegenKnowledgeIndex
-
public final class AuthSchemeCodegenKnowledgeIndex extends Object
Knowledge index to get access to the configured service auth schemes and operations overrides. This index is optimized for code generation of switch statements therefore the data is grouped by operations that share the same auth schemes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forEachOperationsOverridesGroup(BiConsumer<List<String>,List<AuthSchemeCodegenMetadata>> consumer)
Traverses each group of operations with the same set of auth schemes.boolean
hasPerOperationAuthSchemesOverrides()
Returns true if there are auth scheme overrides per operation.static AuthSchemeCodegenKnowledgeIndex
of(IntermediateModel intermediateModel)
Creates a newAuthSchemeCodegenKnowledgeIndex
using the givenintermediateModel
..List<AuthSchemeCodegenMetadata>
serviceDefaultAuthSchemes()
Returns the service defaults auth schemes.
-
-
-
Method Detail
-
of
public static AuthSchemeCodegenKnowledgeIndex of(IntermediateModel intermediateModel)
Creates a newAuthSchemeCodegenKnowledgeIndex
using the givenintermediateModel
..
-
serviceDefaultAuthSchemes
public List<AuthSchemeCodegenMetadata> serviceDefaultAuthSchemes()
Returns the service defaults auth schemes. These can be overridden by operation.- Returns:
- the service defaults auth schemes.
-
hasPerOperationAuthSchemesOverrides
public boolean hasPerOperationAuthSchemesOverrides()
Returns true if there are auth scheme overrides per operation.- Returns:
- true if there are auth scheme overrides per operation
-
forEachOperationsOverridesGroup
public void forEachOperationsOverridesGroup(BiConsumer<List<String>,List<AuthSchemeCodegenMetadata>> consumer)
Traverses each group of operations with the same set of auth schemes.- Parameters:
consumer
- The consumer to call for each group of operations with the same set of auth schemes.
-
-