@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableOAuth2CustomParameter extends Object implements OAuth2CustomParameter
OAuth2CustomParameter.
Use the builder to create immutable instances:
ImmutableOAuth2CustomParameter.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableOAuth2CustomParameter.Builder
Builds instances of type
ImmutableOAuth2CustomParameter. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableOAuth2CustomParameter.Builder |
builder()
Creates a builder for
ImmutableOAuth2CustomParameter. |
com.google.common.collect.ImmutableList<String> |
connectorSuppliedValues()
Values provided by connector which can be used as input for this AuthParameter.
|
static ImmutableOAuth2CustomParameter |
copyOf(OAuth2CustomParameter instance)
Creates an immutable copy of a
OAuth2CustomParameter value. |
String |
description()
Description of the custom Oauth2 parameter.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableOAuth2CustomParameter that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
key, required, type, label, description, sensitiveField, connectorSuppliedValues. |
String |
key()
Unique identifier for custom Oauth2 parameter.
|
String |
label()
Label of the custom Oauth2 parameter.
|
boolean |
required()
Specifies if this Oauth2 parameter is required or not.
|
Boolean |
sensitiveField()
Specifies if this field data is sensitive/Critical that shouldn't be stored as plain text.
|
String |
toString()
Prints the immutable value
OAuth2CustomParameter with attribute values. |
OAuth2CustomPropType |
type()
Specifies if this Oauth2 parameter is related to Token Url or Auth Url
|
ImmutableOAuth2CustomParameter |
withConnectorSuppliedValues(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
connectorSuppliedValues. |
ImmutableOAuth2CustomParameter |
withConnectorSuppliedValues(String... elements)
Copy the current immutable object with elements that replace the content of
connectorSuppliedValues. |
ImmutableOAuth2CustomParameter |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutableOAuth2CustomParameter |
withKey(String value)
Copy the current immutable object by setting a value for the
key attribute. |
ImmutableOAuth2CustomParameter |
withLabel(String value)
Copy the current immutable object by setting a value for the
label attribute. |
ImmutableOAuth2CustomParameter |
withRequired(boolean value)
Copy the current immutable object by setting a value for the
required attribute. |
ImmutableOAuth2CustomParameter |
withSensitiveField(Boolean value)
Copy the current immutable object by setting a value for the
sensitiveField attribute. |
ImmutableOAuth2CustomParameter |
withType(OAuth2CustomPropType value)
Copy the current immutable object by setting a value for the
type attribute. |
public String key()
key in interface OAuth2CustomParameterpublic boolean required()
required in interface OAuth2CustomParameterpublic OAuth2CustomPropType type()
type in interface OAuth2CustomParameterpublic String label()
label in interface OAuth2CustomParameterpublic String description()
description in interface OAuth2CustomParameter@Nullable public Boolean sensitiveField()
sensitiveField in interface OAuth2CustomParameter@Nullable public com.google.common.collect.ImmutableList<String> connectorSuppliedValues()
connectorSuppliedValues in interface OAuth2CustomParameterpublic final ImmutableOAuth2CustomParameter withKey(String value)
key attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for keythis objectpublic final ImmutableOAuth2CustomParameter withRequired(boolean value)
required attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for requiredthis objectpublic final ImmutableOAuth2CustomParameter withType(OAuth2CustomPropType value)
type attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic final ImmutableOAuth2CustomParameter withLabel(String value)
label attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for labelthis objectpublic final ImmutableOAuth2CustomParameter withDescription(String value)
description attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for descriptionthis objectpublic final ImmutableOAuth2CustomParameter withSensitiveField(@Nullable Boolean value)
sensitiveField attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for sensitiveField (can be null)this objectpublic final ImmutableOAuth2CustomParameter withConnectorSuppliedValues(@Nullable String... elements)
connectorSuppliedValues.elements - The elements to setthis objectpublic final ImmutableOAuth2CustomParameter withConnectorSuppliedValues(@Nullable Iterable<String> elements)
connectorSuppliedValues.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of connectorSuppliedValues elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableOAuth2CustomParameter that have equal attribute values.public int hashCode()
key, required, type, label, description, sensitiveField, connectorSuppliedValues.public String toString()
OAuth2CustomParameter with attribute values.public static ImmutableOAuth2CustomParameter copyOf(OAuth2CustomParameter instance)
OAuth2CustomParameter value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableOAuth2CustomParameter.Builder builder()
ImmutableOAuth2CustomParameter.
ImmutableOAuth2CustomParameter.builder()
.key(String) // required key
.required(boolean) // required required
.type(com.amazonaws.appflow.custom.connector.model.connectorconfiguration.auth.OAuth2CustomPropType) // required type
.label(String) // required label
.description(String) // required description
.sensitiveField(Boolean | null) // nullable sensitiveField
.connectorSuppliedValues(List<String> | null) // nullable connectorSuppliedValues
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.