Class AuthSchemeCodegenMetadataExt
java.lang.Object
software.amazon.awssdk.codegen.poet.auth.scheme.AuthSchemeCodegenMetadataExt
Extension and utility methods for the
AuthSchemeCodegenMetadata
class.-
Method Summary
Modifier and TypeMethodDescriptionstatic com.squareup.javapoet.CodeBlock
codegenNewAuthOption
(AuthSchemeCodegenMetadata metadata, AuthSchemeSpecUtils authSchemeSpecUtils) Renders the AuthSchemeCodegenMetadata as to create a newAuthSchemeOption
using the configured values.static com.squareup.javapoet.CodeBlock
codegenSignerProperties
(AuthSchemeSpecUtils authSchemeSpecUtils, List<software.amazon.awssdk.codegen.poet.auth.scheme.AuthSchemeCodegenMetadata.SignerPropertyValueProvider> properties) Renders a chain of calls toAuthSchemeOption.Builder.putSignerProperty(SignerProperty, Object)
for each of the given properties.static com.squareup.javapoet.CodeBlock
codegenSignerPropertiesIfAbsent
(AuthSchemeSpecUtils authSchemeSpecUtils, List<software.amazon.awssdk.codegen.poet.auth.scheme.AuthSchemeCodegenMetadata.SignerPropertyValueProvider> properties) Renders a chain of calls toAuthSchemeOption.Builder.putSignerPropertyIfAbsent(SignerProperty, Object)
for each of the given properties.static AuthSchemeCodegenMetadata
fromAuthType
(AuthType type) Creates a new auth scheme codegen metadata instance using the defaults for the givenAuthType
defaults.static AuthSchemeCodegenMetadata
fromConstants
(SigV4SignerDefaults constants) Transforms aSigV4SignerDefaults
instance to anAuthSchemeCodegenMetadata
instance.
-
Method Details
-
fromAuthType
Creates a new auth scheme codegen metadata instance using the defaults for the givenAuthType
defaults. -
fromConstants
Transforms aSigV4SignerDefaults
instance to anAuthSchemeCodegenMetadata
instance. -
codegenNewAuthOption
public static com.squareup.javapoet.CodeBlock codegenNewAuthOption(AuthSchemeCodegenMetadata metadata, AuthSchemeSpecUtils authSchemeSpecUtils) Renders the AuthSchemeCodegenMetadata as to create a newAuthSchemeOption
using the configured values. -
codegenSignerProperties
public static com.squareup.javapoet.CodeBlock codegenSignerProperties(AuthSchemeSpecUtils authSchemeSpecUtils, List<software.amazon.awssdk.codegen.poet.auth.scheme.AuthSchemeCodegenMetadata.SignerPropertyValueProvider> properties) Renders a chain of calls toAuthSchemeOption.Builder.putSignerProperty(SignerProperty, Object)
for each of the given properties. -
codegenSignerPropertiesIfAbsent
public static com.squareup.javapoet.CodeBlock codegenSignerPropertiesIfAbsent(AuthSchemeSpecUtils authSchemeSpecUtils, List<software.amazon.awssdk.codegen.poet.auth.scheme.AuthSchemeCodegenMetadata.SignerPropertyValueProvider> properties) Renders a chain of calls toAuthSchemeOption.Builder.putSignerPropertyIfAbsent(SignerProperty, Object)
for each of the given properties.
-