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.CodeBlockcodegenNewAuthOption(AuthSchemeCodegenMetadata metadata, AuthSchemeSpecUtils authSchemeSpecUtils) Renders the AuthSchemeCodegenMetadata as to create a newAuthSchemeOptionusing the configured values.static com.squareup.javapoet.CodeBlockcodegenSignerProperties(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.CodeBlockcodegenSignerPropertiesIfAbsent(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 AuthSchemeCodegenMetadatafromAuthType(AuthTrait authTrait) Creates a new auth scheme codegen metadata instance using the defaults for the givenAuthTypedefaults.static AuthSchemeCodegenMetadatafromConstants(SigV4SignerDefaults constants) Transforms aSigV4SignerDefaultsinstance to anAuthSchemeCodegenMetadatainstance.
-
Method Details
-
fromAuthType
Creates a new auth scheme codegen metadata instance using the defaults for the givenAuthTypedefaults. -
fromConstants
Transforms aSigV4SignerDefaultsinstance to anAuthSchemeCodegenMetadatainstance. -
codegenNewAuthOption
public static com.squareup.javapoet.CodeBlock codegenNewAuthOption(AuthSchemeCodegenMetadata metadata, AuthSchemeSpecUtils authSchemeSpecUtils) Renders the AuthSchemeCodegenMetadata as to create a newAuthSchemeOptionusing 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.
-