@NotThreadSafe public static final class ImmutableCustomAuthConfig.Builder extends Object
ImmutableCustomAuthConfig.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableCustomAuthConfig.Builder |
addAllAuthParameters(Iterable<? extends AuthParameter> elements)
Adds elements to
authParameters list. |
ImmutableCustomAuthConfig.Builder |
addAuthParameters(AuthParameter... elements)
Adds elements to
authParameters list. |
ImmutableCustomAuthConfig.Builder |
addAuthParameters(AuthParameter element)
Adds one element to
authParameters list. |
ImmutableCustomAuthConfig.Builder |
authenticationType(String authenticationType)
Initializes the value for the
authenticationType attribute. |
ImmutableCustomAuthConfig.Builder |
authParameters(Iterable<? extends AuthParameter> elements)
Sets or replaces all elements for
authParameters list. |
ImmutableCustomAuthConfig |
build()
Builds a new
ImmutableCustomAuthConfig. |
ImmutableCustomAuthConfig.Builder |
from(CustomAuthConfig instance)
Fill a builder with attribute values from the provided
CustomAuthConfig instance. |
public final ImmutableCustomAuthConfig.Builder from(CustomAuthConfig instance)
CustomAuthConfig instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableCustomAuthConfig.Builder authenticationType(String authenticationType)
authenticationType attribute.authenticationType - The value for authenticationTypethis builder for use in a chained invocationpublic final ImmutableCustomAuthConfig.Builder addAuthParameters(AuthParameter element)
authParameters list.element - A authParameters elementthis builder for use in a chained invocationpublic final ImmutableCustomAuthConfig.Builder addAuthParameters(AuthParameter... elements)
authParameters list.elements - An array of authParameters elementsthis builder for use in a chained invocationpublic final ImmutableCustomAuthConfig.Builder authParameters(Iterable<? extends AuthParameter> elements)
authParameters list.elements - An iterable of authParameters elementsthis builder for use in a chained invocationpublic final ImmutableCustomAuthConfig.Builder addAllAuthParameters(Iterable<? extends AuthParameter> elements)
authParameters list.elements - An iterable of authParameters elementsthis builder for use in a chained invocationpublic ImmutableCustomAuthConfig build()
ImmutableCustomAuthConfig.IllegalStateException - if any required attributes are missingCopyright © 2021–2022 Amazon Web Services. All rights reserved.