@NotThreadSafe public static final class ImmutableAuthenticationConfig.Builder extends Object
ImmutableAuthenticationConfig.
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.
public final ImmutableAuthenticationConfig.Builder from(AuthenticationConfig instance)
AuthenticationConfig 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 ImmutableAuthenticationConfig.Builder isBasicAuthSupported(@Nullable Boolean isBasicAuthSupported)
isBasicAuthSupported attribute.isBasicAuthSupported - The value for isBasicAuthSupported (can be null)this builder for use in a chained invocationpublic final ImmutableAuthenticationConfig.Builder isApiKeyAuthSupported(@Nullable Boolean isApiKeyAuthSupported)
isApiKeyAuthSupported attribute.isApiKeyAuthSupported - The value for isApiKeyAuthSupported (can be null)this builder for use in a chained invocationpublic final ImmutableAuthenticationConfig.Builder isOAuth2Supported(@Nullable Boolean isOAuth2Supported)
isOAuth2Supported attribute.isOAuth2Supported - The value for isOAuth2Supported (can be null)this builder for use in a chained invocationpublic final ImmutableAuthenticationConfig.Builder isCustomAuthSupported(@Nullable Boolean isCustomAuthSupported)
isCustomAuthSupported attribute.isCustomAuthSupported - The value for isCustomAuthSupported (can be null)this builder for use in a chained invocationpublic final ImmutableAuthenticationConfig.Builder oAuth2Defaults(@Nullable OAuth2Defaults oAuth2Defaults)
oAuth2Defaults attribute.oAuth2Defaults - The value for oAuth2Defaults (can be null)this builder for use in a chained invocationpublic final ImmutableAuthenticationConfig.Builder addCustomAuthConfig(CustomAuthConfig element)
customAuthConfig list.element - A customAuthConfig elementthis builder for use in a chained invocationpublic final ImmutableAuthenticationConfig.Builder addCustomAuthConfig(CustomAuthConfig... elements)
customAuthConfig list.elements - An array of customAuthConfig elementsthis builder for use in a chained invocationpublic final ImmutableAuthenticationConfig.Builder customAuthConfig(@Nullable Iterable<? extends CustomAuthConfig> elements)
customAuthConfig list.elements - An iterable of customAuthConfig elementsthis builder for use in a chained invocationpublic final ImmutableAuthenticationConfig.Builder addAllCustomAuthConfig(Iterable<? extends CustomAuthConfig> elements)
customAuthConfig list.elements - An iterable of customAuthConfig elementsthis builder for use in a chained invocationpublic ImmutableAuthenticationConfig build()
ImmutableAuthenticationConfig.IllegalStateException - if any required attributes are missingCopyright © 2021–2022 Amazon Web Services. All rights reserved.