Class AuthSchemeCodegenMetadataExt
- java.lang.Object
-
- software.amazon.awssdk.codegen.poet.auth.scheme.AuthSchemeCodegenMetadataExt
-
public final class AuthSchemeCodegenMetadataExt extends Object
Extension and utility methods for theAuthSchemeCodegenMetadata
class.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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(AuthTrait authTrait)
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 Detail
-
fromAuthType
public static AuthSchemeCodegenMetadata fromAuthType(AuthTrait authTrait)
Creates a new auth scheme codegen metadata instance using the defaults for the givenAuthType
defaults.
-
fromConstants
public static AuthSchemeCodegenMetadata fromConstants(SigV4SignerDefaults constants)
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.
-
-