All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.entityresolution.model.GetMatchingWorkflowResponse Maven / Gradle / Ivy

/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.entityresolution.model;

import java.time.Instant;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.traits.MapTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructMap;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 */
@Generated("software.amazon.awssdk:codegen")
public final class GetMatchingWorkflowResponse extends EntityResolutionResponse implements
        ToCopyableBuilder {
    private static final SdkField CREATED_AT_FIELD = SdkField. builder(MarshallingType.INSTANT)
            .memberName("createdAt").getter(getter(GetMatchingWorkflowResponse::createdAt)).setter(setter(Builder::createdAt))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("createdAt").build()).build();

    private static final SdkField DESCRIPTION_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("description").getter(getter(GetMatchingWorkflowResponse::description))
            .setter(setter(Builder::description))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("description").build()).build();

    private static final SdkField INCREMENTAL_RUN_CONFIG_FIELD = SdkField
            . builder(MarshallingType.SDK_POJO).memberName("incrementalRunConfig")
            .getter(getter(GetMatchingWorkflowResponse::incrementalRunConfig)).setter(setter(Builder::incrementalRunConfig))
            .constructor(IncrementalRunConfig::builder)
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("incrementalRunConfig").build())
            .build();

    private static final SdkField> INPUT_SOURCE_CONFIG_FIELD = SdkField
            .> builder(MarshallingType.LIST)
            .memberName("inputSourceConfig")
            .getter(getter(GetMatchingWorkflowResponse::inputSourceConfig))
            .setter(setter(Builder::inputSourceConfig))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("inputSourceConfig").build(),
                    ListTrait
                            .builder()
                            .memberLocationName(null)
                            .memberFieldInfo(
                                    SdkField. builder(MarshallingType.SDK_POJO)
                                            .constructor(InputSource::builder)
                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
                                                    .locationName("member").build()).build()).build()).build();

    private static final SdkField> OUTPUT_SOURCE_CONFIG_FIELD = SdkField
            .> builder(MarshallingType.LIST)
            .memberName("outputSourceConfig")
            .getter(getter(GetMatchingWorkflowResponse::outputSourceConfig))
            .setter(setter(Builder::outputSourceConfig))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("outputSourceConfig").build(),
                    ListTrait
                            .builder()
                            .memberLocationName(null)
                            .memberFieldInfo(
                                    SdkField. builder(MarshallingType.SDK_POJO)
                                            .constructor(OutputSource::builder)
                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
                                                    .locationName("member").build()).build()).build()).build();

    private static final SdkField RESOLUTION_TECHNIQUES_FIELD = SdkField
            . builder(MarshallingType.SDK_POJO).memberName("resolutionTechniques")
            .getter(getter(GetMatchingWorkflowResponse::resolutionTechniques)).setter(setter(Builder::resolutionTechniques))
            .constructor(ResolutionTechniques::builder)
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("resolutionTechniques").build())
            .build();

    private static final SdkField ROLE_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("roleArn").getter(getter(GetMatchingWorkflowResponse::roleArn)).setter(setter(Builder::roleArn))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("roleArn").build()).build();

    private static final SdkField> TAGS_FIELD = SdkField
            .> builder(MarshallingType.MAP)
            .memberName("tags")
            .getter(getter(GetMatchingWorkflowResponse::tags))
            .setter(setter(Builder::tags))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("tags").build(),
                    MapTrait.builder()
                            .keyLocationName("key")
                            .valueLocationName("value")
                            .valueFieldInfo(
                                    SdkField. builder(MarshallingType.STRING)
                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
                                                    .locationName("value").build()).build()).build()).build();

    private static final SdkField UPDATED_AT_FIELD = SdkField. builder(MarshallingType.INSTANT)
            .memberName("updatedAt").getter(getter(GetMatchingWorkflowResponse::updatedAt)).setter(setter(Builder::updatedAt))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("updatedAt").build()).build();

    private static final SdkField WORKFLOW_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("workflowArn").getter(getter(GetMatchingWorkflowResponse::workflowArn))
            .setter(setter(Builder::workflowArn))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("workflowArn").build()).build();

    private static final SdkField WORKFLOW_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("workflowName").getter(getter(GetMatchingWorkflowResponse::workflowName))
            .setter(setter(Builder::workflowName))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("workflowName").build()).build();

    private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CREATED_AT_FIELD,
            DESCRIPTION_FIELD, INCREMENTAL_RUN_CONFIG_FIELD, INPUT_SOURCE_CONFIG_FIELD, OUTPUT_SOURCE_CONFIG_FIELD,
            RESOLUTION_TECHNIQUES_FIELD, ROLE_ARN_FIELD, TAGS_FIELD, UPDATED_AT_FIELD, WORKFLOW_ARN_FIELD, WORKFLOW_NAME_FIELD));

    private static final Map> SDK_NAME_TO_FIELD = memberNameToFieldInitializer();

    private final Instant createdAt;

    private final String description;

    private final IncrementalRunConfig incrementalRunConfig;

    private final List inputSourceConfig;

    private final List outputSourceConfig;

    private final ResolutionTechniques resolutionTechniques;

    private final String roleArn;

    private final Map tags;

    private final Instant updatedAt;

    private final String workflowArn;

    private final String workflowName;

    private GetMatchingWorkflowResponse(BuilderImpl builder) {
        super(builder);
        this.createdAt = builder.createdAt;
        this.description = builder.description;
        this.incrementalRunConfig = builder.incrementalRunConfig;
        this.inputSourceConfig = builder.inputSourceConfig;
        this.outputSourceConfig = builder.outputSourceConfig;
        this.resolutionTechniques = builder.resolutionTechniques;
        this.roleArn = builder.roleArn;
        this.tags = builder.tags;
        this.updatedAt = builder.updatedAt;
        this.workflowArn = builder.workflowArn;
        this.workflowName = builder.workflowName;
    }

    /**
     * 

* The timestamp of when the workflow was created. *

* * @return The timestamp of when the workflow was created. */ public final Instant createdAt() { return createdAt; } /** *

* A description of the workflow. *

* * @return A description of the workflow. */ public final String description() { return description; } /** *

* An object which defines an incremental run type and has only incrementalRunType as a field. *

* * @return An object which defines an incremental run type and has only incrementalRunType as a field. */ public final IncrementalRunConfig incrementalRunConfig() { return incrementalRunConfig; } /** * For responses, this returns true if the service returned a value for the InputSourceConfig property. This DOES * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). * This is useful because the SDK will never return a null collection or map, but you may need to differentiate * between the service returning nothing (or null) and the service returning an empty collection or map. For * requests, this returns true if a value for the property was specified in the request builder, and false if a * value was not specified. */ public final boolean hasInputSourceConfig() { return inputSourceConfig != null && !(inputSourceConfig instanceof SdkAutoConstructList); } /** *

* A list of InputSource objects, which have the fields InputSourceARN and * SchemaName. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* This method will never return null. If you would like to know whether the service returned this field (so that * you can differentiate between null and empty), you can use the {@link #hasInputSourceConfig} method. *

* * @return A list of InputSource objects, which have the fields InputSourceARN and * SchemaName. */ public final List inputSourceConfig() { return inputSourceConfig; } /** * For responses, this returns true if the service returned a value for the OutputSourceConfig property. This DOES * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). * This is useful because the SDK will never return a null collection or map, but you may need to differentiate * between the service returning nothing (or null) and the service returning an empty collection or map. For * requests, this returns true if a value for the property was specified in the request builder, and false if a * value was not specified. */ public final boolean hasOutputSourceConfig() { return outputSourceConfig != null && !(outputSourceConfig instanceof SdkAutoConstructList); } /** *

* A list of OutputSource objects, each of which contains fields OutputS3Path, * ApplyNormalization, and Output. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* This method will never return null. If you would like to know whether the service returned this field (so that * you can differentiate between null and empty), you can use the {@link #hasOutputSourceConfig} method. *

* * @return A list of OutputSource objects, each of which contains fields OutputS3Path, * ApplyNormalization, and Output. */ public final List outputSourceConfig() { return outputSourceConfig; } /** *

* An object which defines the resolutionType and the ruleBasedProperties. *

* * @return An object which defines the resolutionType and the ruleBasedProperties. */ public final ResolutionTechniques resolutionTechniques() { return resolutionTechniques; } /** *

* The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to access Amazon Web Services * resources on your behalf. *

* * @return The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to access Amazon Web * Services resources on your behalf. */ public final String roleArn() { return roleArn; } /** * For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that * the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful * because the SDK will never return a null collection or map, but you may need to differentiate between the service * returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true * if a value for the property was specified in the request builder, and false if a value was not specified. */ public final boolean hasTags() { return tags != null && !(tags instanceof SdkAutoConstructMap); } /** *

* The tags used to organize, track, or control access for this resource. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* This method will never return null. If you would like to know whether the service returned this field (so that * you can differentiate between null and empty), you can use the {@link #hasTags} method. *

* * @return The tags used to organize, track, or control access for this resource. */ public final Map tags() { return tags; } /** *

* The timestamp of when the workflow was last updated. *

* * @return The timestamp of when the workflow was last updated. */ public final Instant updatedAt() { return updatedAt; } /** *

* The ARN (Amazon Resource Name) that Entity Resolution generated for the MatchingWorkflow. *

* * @return The ARN (Amazon Resource Name) that Entity Resolution generated for the MatchingWorkflow. */ public final String workflowArn() { return workflowArn; } /** *

* The name of the workflow. *

* * @return The name of the workflow. */ public final String workflowName() { return workflowName; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + super.hashCode(); hashCode = 31 * hashCode + Objects.hashCode(createdAt()); hashCode = 31 * hashCode + Objects.hashCode(description()); hashCode = 31 * hashCode + Objects.hashCode(incrementalRunConfig()); hashCode = 31 * hashCode + Objects.hashCode(hasInputSourceConfig() ? inputSourceConfig() : null); hashCode = 31 * hashCode + Objects.hashCode(hasOutputSourceConfig() ? outputSourceConfig() : null); hashCode = 31 * hashCode + Objects.hashCode(resolutionTechniques()); hashCode = 31 * hashCode + Objects.hashCode(roleArn()); hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null); hashCode = 31 * hashCode + Objects.hashCode(updatedAt()); hashCode = 31 * hashCode + Objects.hashCode(workflowArn()); hashCode = 31 * hashCode + Objects.hashCode(workflowName()); return hashCode; } @Override public final boolean equals(Object obj) { return super.equals(obj) && equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof GetMatchingWorkflowResponse)) { return false; } GetMatchingWorkflowResponse other = (GetMatchingWorkflowResponse) obj; return Objects.equals(createdAt(), other.createdAt()) && Objects.equals(description(), other.description()) && Objects.equals(incrementalRunConfig(), other.incrementalRunConfig()) && hasInputSourceConfig() == other.hasInputSourceConfig() && Objects.equals(inputSourceConfig(), other.inputSourceConfig()) && hasOutputSourceConfig() == other.hasOutputSourceConfig() && Objects.equals(outputSourceConfig(), other.outputSourceConfig()) && Objects.equals(resolutionTechniques(), other.resolutionTechniques()) && Objects.equals(roleArn(), other.roleArn()) && hasTags() == other.hasTags() && Objects.equals(tags(), other.tags()) && Objects.equals(updatedAt(), other.updatedAt()) && Objects.equals(workflowArn(), other.workflowArn()) && Objects.equals(workflowName(), other.workflowName()); } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public final String toString() { return ToString.builder("GetMatchingWorkflowResponse").add("CreatedAt", createdAt()).add("Description", description()) .add("IncrementalRunConfig", incrementalRunConfig()) .add("InputSourceConfig", hasInputSourceConfig() ? inputSourceConfig() : null) .add("OutputSourceConfig", hasOutputSourceConfig() ? outputSourceConfig() : null) .add("ResolutionTechniques", resolutionTechniques()).add("RoleArn", roleArn()) .add("Tags", hasTags() ? tags() : null).add("UpdatedAt", updatedAt()).add("WorkflowArn", workflowArn()) .add("WorkflowName", workflowName()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "createdAt": return Optional.ofNullable(clazz.cast(createdAt())); case "description": return Optional.ofNullable(clazz.cast(description())); case "incrementalRunConfig": return Optional.ofNullable(clazz.cast(incrementalRunConfig())); case "inputSourceConfig": return Optional.ofNullable(clazz.cast(inputSourceConfig())); case "outputSourceConfig": return Optional.ofNullable(clazz.cast(outputSourceConfig())); case "resolutionTechniques": return Optional.ofNullable(clazz.cast(resolutionTechniques())); case "roleArn": return Optional.ofNullable(clazz.cast(roleArn())); case "tags": return Optional.ofNullable(clazz.cast(tags())); case "updatedAt": return Optional.ofNullable(clazz.cast(updatedAt())); case "workflowArn": return Optional.ofNullable(clazz.cast(workflowArn())); case "workflowName": return Optional.ofNullable(clazz.cast(workflowName())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } @Override public final Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } private static Map> memberNameToFieldInitializer() { Map> map = new HashMap<>(); map.put("createdAt", CREATED_AT_FIELD); map.put("description", DESCRIPTION_FIELD); map.put("incrementalRunConfig", INCREMENTAL_RUN_CONFIG_FIELD); map.put("inputSourceConfig", INPUT_SOURCE_CONFIG_FIELD); map.put("outputSourceConfig", OUTPUT_SOURCE_CONFIG_FIELD); map.put("resolutionTechniques", RESOLUTION_TECHNIQUES_FIELD); map.put("roleArn", ROLE_ARN_FIELD); map.put("tags", TAGS_FIELD); map.put("updatedAt", UPDATED_AT_FIELD); map.put("workflowArn", WORKFLOW_ARN_FIELD); map.put("workflowName", WORKFLOW_NAME_FIELD); return Collections.unmodifiableMap(map); } private static Function getter(Function g) { return obj -> g.apply((GetMatchingWorkflowResponse) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends EntityResolutionResponse.Builder, SdkPojo, CopyableBuilder { /** *

* The timestamp of when the workflow was created. *

* * @param createdAt * The timestamp of when the workflow was created. * @return Returns a reference to this object so that method calls can be chained together. */ Builder createdAt(Instant createdAt); /** *

* A description of the workflow. *

* * @param description * A description of the workflow. * @return Returns a reference to this object so that method calls can be chained together. */ Builder description(String description); /** *

* An object which defines an incremental run type and has only incrementalRunType as a field. *

* * @param incrementalRunConfig * An object which defines an incremental run type and has only incrementalRunType as a * field. * @return Returns a reference to this object so that method calls can be chained together. */ Builder incrementalRunConfig(IncrementalRunConfig incrementalRunConfig); /** *

* An object which defines an incremental run type and has only incrementalRunType as a field. *

* This is a convenience method that creates an instance of the {@link IncrementalRunConfig.Builder} avoiding * the need to create one manually via {@link IncrementalRunConfig#builder()}. * *

* When the {@link Consumer} completes, {@link IncrementalRunConfig.Builder#build()} is called immediately and * its result is passed to {@link #incrementalRunConfig(IncrementalRunConfig)}. * * @param incrementalRunConfig * a consumer that will call methods on {@link IncrementalRunConfig.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #incrementalRunConfig(IncrementalRunConfig) */ default Builder incrementalRunConfig(Consumer incrementalRunConfig) { return incrementalRunConfig(IncrementalRunConfig.builder().applyMutation(incrementalRunConfig).build()); } /** *

* A list of InputSource objects, which have the fields InputSourceARN and * SchemaName. *

* * @param inputSourceConfig * A list of InputSource objects, which have the fields InputSourceARN and * SchemaName. * @return Returns a reference to this object so that method calls can be chained together. */ Builder inputSourceConfig(Collection inputSourceConfig); /** *

* A list of InputSource objects, which have the fields InputSourceARN and * SchemaName. *

* * @param inputSourceConfig * A list of InputSource objects, which have the fields InputSourceARN and * SchemaName. * @return Returns a reference to this object so that method calls can be chained together. */ Builder inputSourceConfig(InputSource... inputSourceConfig); /** *

* A list of InputSource objects, which have the fields InputSourceARN and * SchemaName. *

* This is a convenience method that creates an instance of the * {@link software.amazon.awssdk.services.entityresolution.model.InputSource.Builder} avoiding the need to * create one manually via {@link software.amazon.awssdk.services.entityresolution.model.InputSource#builder()}. * *

* When the {@link Consumer} completes, * {@link software.amazon.awssdk.services.entityresolution.model.InputSource.Builder#build()} is called * immediately and its result is passed to {@link #inputSourceConfig(List)}. * * @param inputSourceConfig * a consumer that will call methods on * {@link software.amazon.awssdk.services.entityresolution.model.InputSource.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #inputSourceConfig(java.util.Collection) */ Builder inputSourceConfig(Consumer... inputSourceConfig); /** *

* A list of OutputSource objects, each of which contains fields OutputS3Path, * ApplyNormalization, and Output. *

* * @param outputSourceConfig * A list of OutputSource objects, each of which contains fields OutputS3Path, * ApplyNormalization, and Output. * @return Returns a reference to this object so that method calls can be chained together. */ Builder outputSourceConfig(Collection outputSourceConfig); /** *

* A list of OutputSource objects, each of which contains fields OutputS3Path, * ApplyNormalization, and Output. *

* * @param outputSourceConfig * A list of OutputSource objects, each of which contains fields OutputS3Path, * ApplyNormalization, and Output. * @return Returns a reference to this object so that method calls can be chained together. */ Builder outputSourceConfig(OutputSource... outputSourceConfig); /** *

* A list of OutputSource objects, each of which contains fields OutputS3Path, * ApplyNormalization, and Output. *

* This is a convenience method that creates an instance of the * {@link software.amazon.awssdk.services.entityresolution.model.OutputSource.Builder} avoiding the need to * create one manually via {@link software.amazon.awssdk.services.entityresolution.model.OutputSource#builder()} * . * *

* When the {@link Consumer} completes, * {@link software.amazon.awssdk.services.entityresolution.model.OutputSource.Builder#build()} is called * immediately and its result is passed to {@link #outputSourceConfig(List)}. * * @param outputSourceConfig * a consumer that will call methods on * {@link software.amazon.awssdk.services.entityresolution.model.OutputSource.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #outputSourceConfig(java.util.Collection) */ Builder outputSourceConfig(Consumer... outputSourceConfig); /** *

* An object which defines the resolutionType and the ruleBasedProperties. *

* * @param resolutionTechniques * An object which defines the resolutionType and the ruleBasedProperties. * @return Returns a reference to this object so that method calls can be chained together. */ Builder resolutionTechniques(ResolutionTechniques resolutionTechniques); /** *

* An object which defines the resolutionType and the ruleBasedProperties. *

* This is a convenience method that creates an instance of the {@link ResolutionTechniques.Builder} avoiding * the need to create one manually via {@link ResolutionTechniques#builder()}. * *

* When the {@link Consumer} completes, {@link ResolutionTechniques.Builder#build()} is called immediately and * its result is passed to {@link #resolutionTechniques(ResolutionTechniques)}. * * @param resolutionTechniques * a consumer that will call methods on {@link ResolutionTechniques.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #resolutionTechniques(ResolutionTechniques) */ default Builder resolutionTechniques(Consumer resolutionTechniques) { return resolutionTechniques(ResolutionTechniques.builder().applyMutation(resolutionTechniques).build()); } /** *

* The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to access Amazon Web * Services resources on your behalf. *

* * @param roleArn * The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to access Amazon * Web Services resources on your behalf. * @return Returns a reference to this object so that method calls can be chained together. */ Builder roleArn(String roleArn); /** *

* The tags used to organize, track, or control access for this resource. *

* * @param tags * The tags used to organize, track, or control access for this resource. * @return Returns a reference to this object so that method calls can be chained together. */ Builder tags(Map tags); /** *

* The timestamp of when the workflow was last updated. *

* * @param updatedAt * The timestamp of when the workflow was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ Builder updatedAt(Instant updatedAt); /** *

* The ARN (Amazon Resource Name) that Entity Resolution generated for the MatchingWorkflow. *

* * @param workflowArn * The ARN (Amazon Resource Name) that Entity Resolution generated for the MatchingWorkflow. * @return Returns a reference to this object so that method calls can be chained together. */ Builder workflowArn(String workflowArn); /** *

* The name of the workflow. *

* * @param workflowName * The name of the workflow. * @return Returns a reference to this object so that method calls can be chained together. */ Builder workflowName(String workflowName); } static final class BuilderImpl extends EntityResolutionResponse.BuilderImpl implements Builder { private Instant createdAt; private String description; private IncrementalRunConfig incrementalRunConfig; private List inputSourceConfig = DefaultSdkAutoConstructList.getInstance(); private List outputSourceConfig = DefaultSdkAutoConstructList.getInstance(); private ResolutionTechniques resolutionTechniques; private String roleArn; private Map tags = DefaultSdkAutoConstructMap.getInstance(); private Instant updatedAt; private String workflowArn; private String workflowName; private BuilderImpl() { } private BuilderImpl(GetMatchingWorkflowResponse model) { super(model); createdAt(model.createdAt); description(model.description); incrementalRunConfig(model.incrementalRunConfig); inputSourceConfig(model.inputSourceConfig); outputSourceConfig(model.outputSourceConfig); resolutionTechniques(model.resolutionTechniques); roleArn(model.roleArn); tags(model.tags); updatedAt(model.updatedAt); workflowArn(model.workflowArn); workflowName(model.workflowName); } public final Instant getCreatedAt() { return createdAt; } public final void setCreatedAt(Instant createdAt) { this.createdAt = createdAt; } @Override public final Builder createdAt(Instant createdAt) { this.createdAt = createdAt; return this; } public final String getDescription() { return description; } public final void setDescription(String description) { this.description = description; } @Override public final Builder description(String description) { this.description = description; return this; } public final IncrementalRunConfig.Builder getIncrementalRunConfig() { return incrementalRunConfig != null ? incrementalRunConfig.toBuilder() : null; } public final void setIncrementalRunConfig(IncrementalRunConfig.BuilderImpl incrementalRunConfig) { this.incrementalRunConfig = incrementalRunConfig != null ? incrementalRunConfig.build() : null; } @Override public final Builder incrementalRunConfig(IncrementalRunConfig incrementalRunConfig) { this.incrementalRunConfig = incrementalRunConfig; return this; } public final List getInputSourceConfig() { List result = InputSourceConfigCopier.copyToBuilder(this.inputSourceConfig); if (result instanceof SdkAutoConstructList) { return null; } return result; } public final void setInputSourceConfig(Collection inputSourceConfig) { this.inputSourceConfig = InputSourceConfigCopier.copyFromBuilder(inputSourceConfig); } @Override public final Builder inputSourceConfig(Collection inputSourceConfig) { this.inputSourceConfig = InputSourceConfigCopier.copy(inputSourceConfig); return this; } @Override @SafeVarargs public final Builder inputSourceConfig(InputSource... inputSourceConfig) { inputSourceConfig(Arrays.asList(inputSourceConfig)); return this; } @Override @SafeVarargs public final Builder inputSourceConfig(Consumer... inputSourceConfig) { inputSourceConfig(Stream.of(inputSourceConfig).map(c -> InputSource.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; } public final List getOutputSourceConfig() { List result = OutputSourceConfigCopier.copyToBuilder(this.outputSourceConfig); if (result instanceof SdkAutoConstructList) { return null; } return result; } public final void setOutputSourceConfig(Collection outputSourceConfig) { this.outputSourceConfig = OutputSourceConfigCopier.copyFromBuilder(outputSourceConfig); } @Override public final Builder outputSourceConfig(Collection outputSourceConfig) { this.outputSourceConfig = OutputSourceConfigCopier.copy(outputSourceConfig); return this; } @Override @SafeVarargs public final Builder outputSourceConfig(OutputSource... outputSourceConfig) { outputSourceConfig(Arrays.asList(outputSourceConfig)); return this; } @Override @SafeVarargs public final Builder outputSourceConfig(Consumer... outputSourceConfig) { outputSourceConfig(Stream.of(outputSourceConfig).map(c -> OutputSource.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; } public final ResolutionTechniques.Builder getResolutionTechniques() { return resolutionTechniques != null ? resolutionTechniques.toBuilder() : null; } public final void setResolutionTechniques(ResolutionTechniques.BuilderImpl resolutionTechniques) { this.resolutionTechniques = resolutionTechniques != null ? resolutionTechniques.build() : null; } @Override public final Builder resolutionTechniques(ResolutionTechniques resolutionTechniques) { this.resolutionTechniques = resolutionTechniques; return this; } public final String getRoleArn() { return roleArn; } public final void setRoleArn(String roleArn) { this.roleArn = roleArn; } @Override public final Builder roleArn(String roleArn) { this.roleArn = roleArn; return this; } public final Map getTags() { if (tags instanceof SdkAutoConstructMap) { return null; } return tags; } public final void setTags(Map tags) { this.tags = TagMapCopier.copy(tags); } @Override public final Builder tags(Map tags) { this.tags = TagMapCopier.copy(tags); return this; } public final Instant getUpdatedAt() { return updatedAt; } public final void setUpdatedAt(Instant updatedAt) { this.updatedAt = updatedAt; } @Override public final Builder updatedAt(Instant updatedAt) { this.updatedAt = updatedAt; return this; } public final String getWorkflowArn() { return workflowArn; } public final void setWorkflowArn(String workflowArn) { this.workflowArn = workflowArn; } @Override public final Builder workflowArn(String workflowArn) { this.workflowArn = workflowArn; return this; } public final String getWorkflowName() { return workflowName; } public final void setWorkflowName(String workflowName) { this.workflowName = workflowName; } @Override public final Builder workflowName(String workflowName) { this.workflowName = workflowName; return this; } @Override public GetMatchingWorkflowResponse build() { return new GetMatchingWorkflowResponse(this); } @Override public List> sdkFields() { return SDK_FIELDS; } @Override public Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy