@NotThreadSafe public static final class ImmutableConnectorContext.Builder extends Object
ImmutableConnectorContext.
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 ImmutableConnectorContext.Builder from(ConnectorContext instance)
ConnectorContext 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 ImmutableConnectorContext.Builder putConnectorRuntimeSettings(String key, String value)
connectorRuntimeSettings map.key - The key in the connectorRuntimeSettings mapvalue - The associated value in the connectorRuntimeSettings mapthis builder for use in a chained invocationpublic final ImmutableConnectorContext.Builder putConnectorRuntimeSettings(Map.Entry<String,? extends String> entry)
connectorRuntimeSettings map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ImmutableConnectorContext.Builder connectorRuntimeSettings(@Nullable Map<String,? extends String> entries)
connectorRuntimeSettings map. Nulls are not permitted as keys or values, but parameter itself can be nullentries - The entries that will be added to the connectorRuntimeSettings mapthis builder for use in a chained invocationpublic final ImmutableConnectorContext.Builder putAllConnectorRuntimeSettings(Map<String,? extends String> entries)
connectorRuntimeSettings map. Nulls are not permittedentries - The entries that will be added to the connectorRuntimeSettings mapthis builder for use in a chained invocationpublic final ImmutableConnectorContext.Builder credentials(@Nullable Credentials credentials)
credentials attribute.credentials - The value for credentials (can be null)this builder for use in a chained invocationpublic final ImmutableConnectorContext.Builder apiVersion(String apiVersion)
apiVersion attribute.apiVersion - The value for apiVersionthis builder for use in a chained invocationpublic final ImmutableConnectorContext.Builder flowName(@Nullable String flowName)
flowName attribute.flowName - The value for flowName (can be null)this builder for use in a chained invocationpublic final ImmutableConnectorContext.Builder executionId(@Nullable String executionId)
executionId attribute.executionId - The value for executionId (can be null)this builder for use in a chained invocationpublic final ImmutableConnectorContext.Builder connectorProfileLabel(@Nullable String connectorProfileLabel)
connectorProfileLabel attribute.connectorProfileLabel - The value for connectorProfileLabel (can be null)this builder for use in a chained invocationpublic final ImmutableConnectorContext.Builder entityDefinition(@Nullable EntityDefinition entityDefinition)
entityDefinition attribute.entityDefinition - The value for entityDefinition (can be null)this builder for use in a chained invocationpublic ImmutableConnectorContext build()
ImmutableConnectorContext.IllegalStateException - if any required attributes are missingCopyright © 2021–2022 Amazon Web Services. All rights reserved.