@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableConnectorContext extends Object implements ConnectorContext
ConnectorContext.
Use the builder to create immutable instances:
ImmutableConnectorContext.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableConnectorContext.Builder
Builds instances of type
ImmutableConnectorContext. |
| Modifier and Type | Method and Description |
|---|---|
String |
apiVersion()
API version to use.
|
static ImmutableConnectorContext.Builder |
builder()
Creates a builder for
ImmutableConnectorContext. |
String |
connectorProfileLabel()
Connector profile name to use for logging.
|
com.google.common.collect.ImmutableMap<String,String> |
connectorRuntimeSettings()
Connector settings required for API call.
|
static ImmutableConnectorContext |
copyOf(ConnectorContext instance)
Creates an immutable copy of a
ConnectorContext value. |
Credentials |
credentials()
Credentials which will be used to make API call.
|
EntityDefinition |
entityDefinition()
Entity definition in compressed form.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableConnectorContext that have equal attribute values. |
String |
executionId()
Execution Id to use for logging.
|
String |
flowName()
Flow name to use for logging.
|
int |
hashCode()
Computes a hash code from attributes:
connectorRuntimeSettings, credentials, apiVersion, flowName, executionId, connectorProfileLabel, entityDefinition. |
String |
toString()
Prints the immutable value
ConnectorContext with attribute values. |
ImmutableConnectorContext |
withApiVersion(String value)
Copy the current immutable object by setting a value for the
apiVersion attribute. |
ImmutableConnectorContext |
withConnectorProfileLabel(String value)
Copy the current immutable object by setting a value for the
connectorProfileLabel attribute. |
ImmutableConnectorContext |
withConnectorRuntimeSettings(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
connectorRuntimeSettings map with the specified map. |
ImmutableConnectorContext |
withCredentials(Credentials value)
Copy the current immutable object by setting a value for the
credentials attribute. |
ImmutableConnectorContext |
withEntityDefinition(EntityDefinition value)
Copy the current immutable object by setting a value for the
entityDefinition attribute. |
ImmutableConnectorContext |
withExecutionId(String value)
Copy the current immutable object by setting a value for the
executionId attribute. |
ImmutableConnectorContext |
withFlowName(String value)
Copy the current immutable object by setting a value for the
flowName attribute. |
@Nullable public com.google.common.collect.ImmutableMap<String,String> connectorRuntimeSettings()
connectorRuntimeSettings in interface ConnectorContext@Nullable public Credentials credentials()
credentials in interface ConnectorContextpublic String apiVersion()
apiVersion in interface ConnectorContext@Nullable public String flowName()
flowName in interface ConnectorContext@Nullable public String executionId()
executionId in interface ConnectorContext@Nullable public String connectorProfileLabel()
connectorProfileLabel in interface ConnectorContext@Nullable public EntityDefinition entityDefinition()
entityDefinition in interface ConnectorContextpublic final ImmutableConnectorContext withConnectorRuntimeSettings(@Nullable Map<String,? extends String> entries)
connectorRuntimeSettings map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the connectorRuntimeSettings mapthis objectpublic final ImmutableConnectorContext withCredentials(@Nullable Credentials value)
credentials attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for credentials (can be null)this objectpublic final ImmutableConnectorContext withApiVersion(String value)
apiVersion attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for apiVersionthis objectpublic final ImmutableConnectorContext withFlowName(@Nullable String value)
flowName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for flowName (can be null)this objectpublic final ImmutableConnectorContext withExecutionId(@Nullable String value)
executionId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for executionId (can be null)this objectpublic final ImmutableConnectorContext withConnectorProfileLabel(@Nullable String value)
connectorProfileLabel attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for connectorProfileLabel (can be null)this objectpublic final ImmutableConnectorContext withEntityDefinition(@Nullable EntityDefinition value)
entityDefinition attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for entityDefinition (can be null)this objectpublic boolean equals(@Nullable Object another)
ImmutableConnectorContext that have equal attribute values.public int hashCode()
connectorRuntimeSettings, credentials, apiVersion, flowName, executionId, connectorProfileLabel, entityDefinition.public String toString()
ConnectorContext with attribute values.public static ImmutableConnectorContext copyOf(ConnectorContext instance)
ConnectorContext 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 ImmutableConnectorContext.Builder builder()
ImmutableConnectorContext.
ImmutableConnectorContext.builder()
.connectorRuntimeSettings(Map<String, String> | null) // nullable connectorRuntimeSettings
.credentials(com.amazonaws.appflow.custom.connector.model.credentials.Credentials | null) // nullable credentials
.apiVersion(String) // required apiVersion
.flowName(String | null) // nullable flowName
.executionId(String | null) // nullable executionId
.connectorProfileLabel(String | null) // nullable connectorProfileLabel
.entityDefinition(com.amazonaws.appflow.custom.connector.model.metadata.EntityDefinition | null) // nullable entityDefinition
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.