@NotThreadSafe public static final class ImmutableOAuth2CustomParameter.Builder extends Object
ImmutableOAuth2CustomParameter.
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 ImmutableOAuth2CustomParameter.Builder from(OAuth2CustomParameter instance)
OAuth2CustomParameter 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 ImmutableOAuth2CustomParameter.Builder key(String key)
key attribute.key - The value for keythis builder for use in a chained invocationpublic final ImmutableOAuth2CustomParameter.Builder required(boolean required)
required attribute.required - The value for requiredthis builder for use in a chained invocationpublic final ImmutableOAuth2CustomParameter.Builder type(OAuth2CustomPropType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final ImmutableOAuth2CustomParameter.Builder label(String label)
label attribute.label - The value for labelthis builder for use in a chained invocationpublic final ImmutableOAuth2CustomParameter.Builder description(String description)
description attribute.description - The value for descriptionthis builder for use in a chained invocationpublic final ImmutableOAuth2CustomParameter.Builder sensitiveField(@Nullable Boolean sensitiveField)
sensitiveField attribute.sensitiveField - The value for sensitiveField (can be null)this builder for use in a chained invocationpublic final ImmutableOAuth2CustomParameter.Builder addConnectorSuppliedValues(String element)
connectorSuppliedValues list.element - A connectorSuppliedValues elementthis builder for use in a chained invocationpublic final ImmutableOAuth2CustomParameter.Builder addConnectorSuppliedValues(String... elements)
connectorSuppliedValues list.elements - An array of connectorSuppliedValues elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2CustomParameter.Builder connectorSuppliedValues(@Nullable Iterable<String> elements)
connectorSuppliedValues list.elements - An iterable of connectorSuppliedValues elementsthis builder for use in a chained invocationpublic final ImmutableOAuth2CustomParameter.Builder addAllConnectorSuppliedValues(Iterable<String> elements)
connectorSuppliedValues list.elements - An iterable of connectorSuppliedValues elementsthis builder for use in a chained invocationpublic ImmutableOAuth2CustomParameter build()
ImmutableOAuth2CustomParameter.IllegalStateException - if any required attributes are missingCopyright © 2021–2022 Amazon Web Services. All rights reserved.