@NotThreadSafe public static final class ImmutableOAuth2Defaults.Builder extends Object
ImmutableOAuth2Defaults.
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 ImmutableOAuth2Defaults.Builder from(OAuth2Defaults instance)
OAuth2Defaults 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 ImmutableOAuth2Defaults.Builder addOAuthScopes(String element)
oAuthScopes list.element - A oAuthScopes elementthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addOAuthScopes(String... elements)
oAuthScopes list.elements - An array of oAuthScopes elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder oAuthScopes(@Nullable Iterable<String> elements)
oAuthScopes list.elements - An iterable of oAuthScopes elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addAllOAuthScopes(Iterable<String> elements)
oAuthScopes list.elements - An iterable of oAuthScopes elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addTokenURL(String element)
tokenURL list.element - A tokenURL elementthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addTokenURL(String... elements)
tokenURL list.elements - An array of tokenURL elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder tokenURL(Iterable<String> elements)
tokenURL list.elements - An iterable of tokenURL elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addAllTokenURL(Iterable<String> elements)
tokenURL list.elements - An iterable of tokenURL elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addAuthURL(String element)
authURL list.element - A authURL elementthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addAuthURL(String... elements)
authURL list.elements - An array of authURL elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder authURL(@Nullable Iterable<String> elements)
authURL list.elements - An iterable of authURL elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addAllAuthURL(Iterable<String> elements)
authURL list.elements - An iterable of authURL elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addOAuth2GrantTypesSupported(OAuth2GrantType element)
oAuth2GrantTypesSupported list.element - A oAuth2GrantTypesSupported elementthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addOAuth2GrantTypesSupported(OAuth2GrantType... elements)
oAuth2GrantTypesSupported list.elements - An array of oAuth2GrantTypesSupported elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder oAuth2GrantTypesSupported(Iterable<? extends OAuth2GrantType> elements)
oAuth2GrantTypesSupported list.elements - An iterable of oAuth2GrantTypesSupported elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addAllOAuth2GrantTypesSupported(Iterable<? extends OAuth2GrantType> elements)
oAuth2GrantTypesSupported list.elements - An iterable of oAuth2GrantTypesSupported elementsthis builder for use in a chained invocationpublic ImmutableOAuth2Defaults build()
ImmutableOAuth2Defaults.IllegalStateException - if any required attributes are missingCopyright © 2021–2022 Amazon Web Services. All rights reserved.