@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 final ImmutableOAuth2Defaults.Builder oAuth2ContentType(OAuth2ContentType oAuth2ContentType)
oAuth2ContentType attribute.
If not set, this attribute will have a default value as returned by the initializer of oAuth2ContentType.
oAuth2ContentType - The value for oAuth2ContentTypethis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder oAuth2MethodType(OAuth2MethodType oAuth2MethodType)
oAuth2MethodType attribute.
If not set, this attribute will have a default value as returned by the initializer of oAuth2MethodType.
oAuth2MethodType - The value for oAuth2MethodTypethis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addOauth2CustomProperties(OAuth2CustomParameter element)
oauth2CustomProperties list.element - A oauth2CustomProperties elementthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addOauth2CustomProperties(OAuth2CustomParameter... elements)
oauth2CustomProperties list.elements - An array of oauth2CustomProperties elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder oauth2CustomProperties(@Nullable Iterable<? extends OAuth2CustomParameter> elements)
oauth2CustomProperties list.elements - An iterable of oauth2CustomProperties elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addAllOauth2CustomProperties(Iterable<? extends OAuth2CustomParameter> elements)
oauth2CustomProperties list.elements - An iterable of oauth2CustomProperties elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2Defaults.Builder addBasicAuthHeader(boolean addBasicAuthHeader)
addBasicAuthHeader attribute.
If not set, this attribute will have a default value as returned by the initializer of addBasicAuthHeader.
addBasicAuthHeader - The value for addBasicAuthHeaderthis 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.