@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableAuthParameter extends Object implements AuthParameter
AuthParameter.
Use the builder to create immutable instances:
ImmutableAuthParameter.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableAuthParameter.Builder
Builds instances of type
ImmutableAuthParameter. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableAuthParameter.Builder |
builder()
Creates a builder for
ImmutableAuthParameter. |
com.google.common.collect.ImmutableList<String> |
connectorSuppliedValues()
Values provided by connector which can be used as input for this AuthParameter.
|
static ImmutableAuthParameter |
copyOf(AuthParameter instance)
Creates an immutable copy of a
AuthParameter value. |
String |
description()
Description of the Auth Parameter.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableAuthParameter that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
key, required, label, description, sensitiveField, connectorSuppliedValues. |
String |
key()
Unique identifier for AuthParameter.
|
String |
label()
Label of the Auth Parameter.
|
boolean |
required()
Specifies if this AuthParameter 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
AuthParameter with attribute values. |
ImmutableAuthParameter |
withConnectorSuppliedValues(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
connectorSuppliedValues. |
ImmutableAuthParameter |
withConnectorSuppliedValues(String... elements)
Copy the current immutable object with elements that replace the content of
connectorSuppliedValues. |
ImmutableAuthParameter |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutableAuthParameter |
withKey(String value)
Copy the current immutable object by setting a value for the
key attribute. |
ImmutableAuthParameter |
withLabel(String value)
Copy the current immutable object by setting a value for the
label attribute. |
ImmutableAuthParameter |
withRequired(boolean value)
Copy the current immutable object by setting a value for the
required attribute. |
ImmutableAuthParameter |
withSensitiveField(Boolean value)
Copy the current immutable object by setting a value for the
sensitiveField attribute. |
public String key()
key in interface AuthParameterpublic boolean required()
required in interface AuthParameterpublic String label()
label in interface AuthParameterpublic String description()
description in interface AuthParameter@Nullable public Boolean sensitiveField()
sensitiveField in interface AuthParameter@Nullable public com.google.common.collect.ImmutableList<String> connectorSuppliedValues()
connectorSuppliedValues in interface AuthParameterpublic final ImmutableAuthParameter 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 ImmutableAuthParameter 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 ImmutableAuthParameter 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 ImmutableAuthParameter 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 ImmutableAuthParameter 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 ImmutableAuthParameter withConnectorSuppliedValues(@Nullable String... elements)
connectorSuppliedValues.elements - The elements to setthis objectpublic final ImmutableAuthParameter 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)
ImmutableAuthParameter that have equal attribute values.public int hashCode()
key, required, label, description, sensitiveField, connectorSuppliedValues.public String toString()
AuthParameter with attribute values.public static ImmutableAuthParameter copyOf(AuthParameter instance)
AuthParameter 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 ImmutableAuthParameter.Builder builder()
ImmutableAuthParameter.
ImmutableAuthParameter.builder()
.key(String) // required key
.required(boolean) // required required
.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.