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