Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
software.amazon.awssdk.services.sagemakergeospatial.model.StartVectorEnrichmentJobResponse Maven / Gradle / Ivy
Go to download
The AWS Java SDK for Sage Maker Geospatial module holds the client classes that are used for
communicating with Sage Maker Geospatial.
/*
* 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.sagemakergeospatial.model;
import java.time.Instant;
import java.util.Arrays;
import java.util.Collections;
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 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.LocationTrait;
import software.amazon.awssdk.core.traits.MapTrait;
import software.amazon.awssdk.core.traits.TimestampFormatTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
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 StartVectorEnrichmentJobResponse extends SageMakerGeospatialResponse implements
ToCopyableBuilder {
private static final SdkField ARN_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Arn")
.getter(getter(StartVectorEnrichmentJobResponse::arn)).setter(setter(Builder::arn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Arn").build()).build();
private static final SdkField CREATION_TIME_FIELD = SdkField
. builder(MarshallingType.INSTANT)
.memberName("CreationTime")
.getter(getter(StartVectorEnrichmentJobResponse::creationTime))
.setter(setter(Builder::creationTime))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreationTime").build(),
TimestampFormatTrait.create(TimestampFormatTrait.Format.ISO_8601)).build();
private static final SdkField DURATION_IN_SECONDS_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("DurationInSeconds").getter(getter(StartVectorEnrichmentJobResponse::durationInSeconds))
.setter(setter(Builder::durationInSeconds))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DurationInSeconds").build()).build();
private static final SdkField EXECUTION_ROLE_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("ExecutionRoleArn").getter(getter(StartVectorEnrichmentJobResponse::executionRoleArn))
.setter(setter(Builder::executionRoleArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ExecutionRoleArn").build()).build();
private static final SdkField INPUT_CONFIG_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("InputConfig")
.getter(getter(StartVectorEnrichmentJobResponse::inputConfig)).setter(setter(Builder::inputConfig))
.constructor(VectorEnrichmentJobInputConfig::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("InputConfig").build()).build();
private static final SdkField JOB_CONFIG_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("JobConfig")
.getter(getter(StartVectorEnrichmentJobResponse::jobConfig)).setter(setter(Builder::jobConfig))
.constructor(VectorEnrichmentJobConfig::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("JobConfig").build()).build();
private static final SdkField KMS_KEY_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("KmsKeyId").getter(getter(StartVectorEnrichmentJobResponse::kmsKeyId)).setter(setter(Builder::kmsKeyId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KmsKeyId").build()).build();
private static final SdkField NAME_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Name")
.getter(getter(StartVectorEnrichmentJobResponse::name)).setter(setter(Builder::name))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Name").build()).build();
private static final SdkField STATUS_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Status")
.getter(getter(StartVectorEnrichmentJobResponse::statusAsString)).setter(setter(Builder::status))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Status").build()).build();
private static final SdkField> TAGS_FIELD = SdkField
.> builder(MarshallingType.MAP)
.memberName("Tags")
.getter(getter(StartVectorEnrichmentJobResponse::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 TYPE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Type")
.getter(getter(StartVectorEnrichmentJobResponse::typeAsString)).setter(setter(Builder::type))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Type").build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ARN_FIELD,
CREATION_TIME_FIELD, DURATION_IN_SECONDS_FIELD, EXECUTION_ROLE_ARN_FIELD, INPUT_CONFIG_FIELD, JOB_CONFIG_FIELD,
KMS_KEY_ID_FIELD, NAME_FIELD, STATUS_FIELD, TAGS_FIELD, TYPE_FIELD));
private final String arn;
private final Instant creationTime;
private final Integer durationInSeconds;
private final String executionRoleArn;
private final VectorEnrichmentJobInputConfig inputConfig;
private final VectorEnrichmentJobConfig jobConfig;
private final String kmsKeyId;
private final String name;
private final String status;
private final Map tags;
private final String type;
private StartVectorEnrichmentJobResponse(BuilderImpl builder) {
super(builder);
this.arn = builder.arn;
this.creationTime = builder.creationTime;
this.durationInSeconds = builder.durationInSeconds;
this.executionRoleArn = builder.executionRoleArn;
this.inputConfig = builder.inputConfig;
this.jobConfig = builder.jobConfig;
this.kmsKeyId = builder.kmsKeyId;
this.name = builder.name;
this.status = builder.status;
this.tags = builder.tags;
this.type = builder.type;
}
/**
*
* The Amazon Resource Name (ARN) of the Vector Enrichment job.
*
*
* @return The Amazon Resource Name (ARN) of the Vector Enrichment job.
*/
public final String arn() {
return arn;
}
/**
*
* The creation time.
*
*
* @return The creation time.
*/
public final Instant creationTime() {
return creationTime;
}
/**
*
* The duration of the Vector Enrichment job, in seconds.
*
*
* @return The duration of the Vector Enrichment job, in seconds.
*/
public final Integer durationInSeconds() {
return durationInSeconds;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
*
*
* @return The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
*/
public final String executionRoleArn() {
return executionRoleArn;
}
/**
*
* Input configuration information for starting the Vector Enrichment job.
*
*
* @return Input configuration information for starting the Vector Enrichment job.
*/
public final VectorEnrichmentJobInputConfig inputConfig() {
return inputConfig;
}
/**
*
* An object containing information about the job configuration.
*
*
* @return An object containing information about the job configuration.
*/
public final VectorEnrichmentJobConfig jobConfig() {
return jobConfig;
}
/**
*
* The Key Management Service key ID for server-side encryption.
*
*
* @return The Key Management Service key ID for server-side encryption.
*/
public final String kmsKeyId() {
return kmsKeyId;
}
/**
*
* The name of the Vector Enrichment job.
*
*
* @return The name of the Vector Enrichment job.
*/
public final String name() {
return name;
}
/**
*
* The status of the Vector Enrichment job being started.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #status} will
* return {@link VectorEnrichmentJobStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
* available from {@link #statusAsString}.
*
*
* @return The status of the Vector Enrichment job being started.
* @see VectorEnrichmentJobStatus
*/
public final VectorEnrichmentJobStatus status() {
return VectorEnrichmentJobStatus.fromValue(status);
}
/**
*
* The status of the Vector Enrichment job being started.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #status} will
* return {@link VectorEnrichmentJobStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
* available from {@link #statusAsString}.
*
*
* @return The status of the Vector Enrichment job being started.
* @see VectorEnrichmentJobStatus
*/
public final String statusAsString() {
return status;
}
/**
* 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);
}
/**
*
* Each tag consists of a key and a value.
*
*
* 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 Each tag consists of a key and a value.
*/
public final Map tags() {
return tags;
}
/**
*
* The type of the Vector Enrichment job.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #type} will return
* {@link VectorEnrichmentJobType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #typeAsString}.
*
*
* @return The type of the Vector Enrichment job.
* @see VectorEnrichmentJobType
*/
public final VectorEnrichmentJobType type() {
return VectorEnrichmentJobType.fromValue(type);
}
/**
*
* The type of the Vector Enrichment job.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #type} will return
* {@link VectorEnrichmentJobType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #typeAsString}.
*
*
* @return The type of the Vector Enrichment job.
* @see VectorEnrichmentJobType
*/
public final String typeAsString() {
return type;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + super.hashCode();
hashCode = 31 * hashCode + Objects.hashCode(arn());
hashCode = 31 * hashCode + Objects.hashCode(creationTime());
hashCode = 31 * hashCode + Objects.hashCode(durationInSeconds());
hashCode = 31 * hashCode + Objects.hashCode(executionRoleArn());
hashCode = 31 * hashCode + Objects.hashCode(inputConfig());
hashCode = 31 * hashCode + Objects.hashCode(jobConfig());
hashCode = 31 * hashCode + Objects.hashCode(kmsKeyId());
hashCode = 31 * hashCode + Objects.hashCode(name());
hashCode = 31 * hashCode + Objects.hashCode(statusAsString());
hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
hashCode = 31 * hashCode + Objects.hashCode(typeAsString());
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 StartVectorEnrichmentJobResponse)) {
return false;
}
StartVectorEnrichmentJobResponse other = (StartVectorEnrichmentJobResponse) obj;
return Objects.equals(arn(), other.arn()) && Objects.equals(creationTime(), other.creationTime())
&& Objects.equals(durationInSeconds(), other.durationInSeconds())
&& Objects.equals(executionRoleArn(), other.executionRoleArn())
&& Objects.equals(inputConfig(), other.inputConfig()) && Objects.equals(jobConfig(), other.jobConfig())
&& Objects.equals(kmsKeyId(), other.kmsKeyId()) && Objects.equals(name(), other.name())
&& Objects.equals(statusAsString(), other.statusAsString()) && hasTags() == other.hasTags()
&& Objects.equals(tags(), other.tags()) && Objects.equals(typeAsString(), other.typeAsString());
}
/**
* 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("StartVectorEnrichmentJobResponse").add("Arn", arn()).add("CreationTime", creationTime())
.add("DurationInSeconds", durationInSeconds()).add("ExecutionRoleArn", executionRoleArn())
.add("InputConfig", inputConfig()).add("JobConfig", jobConfig()).add("KmsKeyId", kmsKeyId()).add("Name", name())
.add("Status", statusAsString()).add("Tags", hasTags() ? tags() : null).add("Type", typeAsString()).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "Arn":
return Optional.ofNullable(clazz.cast(arn()));
case "CreationTime":
return Optional.ofNullable(clazz.cast(creationTime()));
case "DurationInSeconds":
return Optional.ofNullable(clazz.cast(durationInSeconds()));
case "ExecutionRoleArn":
return Optional.ofNullable(clazz.cast(executionRoleArn()));
case "InputConfig":
return Optional.ofNullable(clazz.cast(inputConfig()));
case "JobConfig":
return Optional.ofNullable(clazz.cast(jobConfig()));
case "KmsKeyId":
return Optional.ofNullable(clazz.cast(kmsKeyId()));
case "Name":
return Optional.ofNullable(clazz.cast(name()));
case "Status":
return Optional.ofNullable(clazz.cast(statusAsString()));
case "Tags":
return Optional.ofNullable(clazz.cast(tags()));
case "Type":
return Optional.ofNullable(clazz.cast(typeAsString()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function getter(Function g) {
return obj -> g.apply((StartVectorEnrichmentJobResponse) obj);
}
private static BiConsumer setter(BiConsumer s) {
return (obj, val) -> s.accept((Builder) obj, val);
}
public interface Builder extends SageMakerGeospatialResponse.Builder, SdkPojo,
CopyableBuilder {
/**
*
* The Amazon Resource Name (ARN) of the Vector Enrichment job.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the Vector Enrichment job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder arn(String arn);
/**
*
* The creation time.
*
*
* @param creationTime
* The creation time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder creationTime(Instant creationTime);
/**
*
* The duration of the Vector Enrichment job, in seconds.
*
*
* @param durationInSeconds
* The duration of the Vector Enrichment job, in seconds.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder durationInSeconds(Integer durationInSeconds);
/**
*
* The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
*
*
* @param executionRoleArn
* The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder executionRoleArn(String executionRoleArn);
/**
*
* Input configuration information for starting the Vector Enrichment job.
*
*
* @param inputConfig
* Input configuration information for starting the Vector Enrichment job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder inputConfig(VectorEnrichmentJobInputConfig inputConfig);
/**
*
* Input configuration information for starting the Vector Enrichment job.
*
* This is a convenience method that creates an instance of the {@link VectorEnrichmentJobInputConfig.Builder}
* avoiding the need to create one manually via {@link VectorEnrichmentJobInputConfig#builder()}.
*
*
* When the {@link Consumer} completes, {@link VectorEnrichmentJobInputConfig.Builder#build()} is called
* immediately and its result is passed to {@link #inputConfig(VectorEnrichmentJobInputConfig)}.
*
* @param inputConfig
* a consumer that will call methods on {@link VectorEnrichmentJobInputConfig.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #inputConfig(VectorEnrichmentJobInputConfig)
*/
default Builder inputConfig(Consumer inputConfig) {
return inputConfig(VectorEnrichmentJobInputConfig.builder().applyMutation(inputConfig).build());
}
/**
*
* An object containing information about the job configuration.
*
*
* @param jobConfig
* An object containing information about the job configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder jobConfig(VectorEnrichmentJobConfig jobConfig);
/**
*
* An object containing information about the job configuration.
*
* This is a convenience method that creates an instance of the {@link VectorEnrichmentJobConfig.Builder}
* avoiding the need to create one manually via {@link VectorEnrichmentJobConfig#builder()}.
*
*
* When the {@link Consumer} completes, {@link VectorEnrichmentJobConfig.Builder#build()} is called immediately
* and its result is passed to {@link #jobConfig(VectorEnrichmentJobConfig)}.
*
* @param jobConfig
* a consumer that will call methods on {@link VectorEnrichmentJobConfig.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #jobConfig(VectorEnrichmentJobConfig)
*/
default Builder jobConfig(Consumer jobConfig) {
return jobConfig(VectorEnrichmentJobConfig.builder().applyMutation(jobConfig).build());
}
/**
*
* The Key Management Service key ID for server-side encryption.
*
*
* @param kmsKeyId
* The Key Management Service key ID for server-side encryption.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder kmsKeyId(String kmsKeyId);
/**
*
* The name of the Vector Enrichment job.
*
*
* @param name
* The name of the Vector Enrichment job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder name(String name);
/**
*
* The status of the Vector Enrichment job being started.
*
*
* @param status
* The status of the Vector Enrichment job being started.
* @see VectorEnrichmentJobStatus
* @return Returns a reference to this object so that method calls can be chained together.
* @see VectorEnrichmentJobStatus
*/
Builder status(String status);
/**
*
* The status of the Vector Enrichment job being started.
*
*
* @param status
* The status of the Vector Enrichment job being started.
* @see VectorEnrichmentJobStatus
* @return Returns a reference to this object so that method calls can be chained together.
* @see VectorEnrichmentJobStatus
*/
Builder status(VectorEnrichmentJobStatus status);
/**
*
* Each tag consists of a key and a value.
*
*
* @param tags
* Each tag consists of a key and a value.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder tags(Map tags);
/**
*
* The type of the Vector Enrichment job.
*
*
* @param type
* The type of the Vector Enrichment job.
* @see VectorEnrichmentJobType
* @return Returns a reference to this object so that method calls can be chained together.
* @see VectorEnrichmentJobType
*/
Builder type(String type);
/**
*
* The type of the Vector Enrichment job.
*
*
* @param type
* The type of the Vector Enrichment job.
* @see VectorEnrichmentJobType
* @return Returns a reference to this object so that method calls can be chained together.
* @see VectorEnrichmentJobType
*/
Builder type(VectorEnrichmentJobType type);
}
static final class BuilderImpl extends SageMakerGeospatialResponse.BuilderImpl implements Builder {
private String arn;
private Instant creationTime;
private Integer durationInSeconds;
private String executionRoleArn;
private VectorEnrichmentJobInputConfig inputConfig;
private VectorEnrichmentJobConfig jobConfig;
private String kmsKeyId;
private String name;
private String status;
private Map tags = DefaultSdkAutoConstructMap.getInstance();
private String type;
private BuilderImpl() {
}
private BuilderImpl(StartVectorEnrichmentJobResponse model) {
super(model);
arn(model.arn);
creationTime(model.creationTime);
durationInSeconds(model.durationInSeconds);
executionRoleArn(model.executionRoleArn);
inputConfig(model.inputConfig);
jobConfig(model.jobConfig);
kmsKeyId(model.kmsKeyId);
name(model.name);
status(model.status);
tags(model.tags);
type(model.type);
}
public final String getArn() {
return arn;
}
public final void setArn(String arn) {
this.arn = arn;
}
@Override
public final Builder arn(String arn) {
this.arn = arn;
return this;
}
public final Instant getCreationTime() {
return creationTime;
}
public final void setCreationTime(Instant creationTime) {
this.creationTime = creationTime;
}
@Override
public final Builder creationTime(Instant creationTime) {
this.creationTime = creationTime;
return this;
}
public final Integer getDurationInSeconds() {
return durationInSeconds;
}
public final void setDurationInSeconds(Integer durationInSeconds) {
this.durationInSeconds = durationInSeconds;
}
@Override
public final Builder durationInSeconds(Integer durationInSeconds) {
this.durationInSeconds = durationInSeconds;
return this;
}
public final String getExecutionRoleArn() {
return executionRoleArn;
}
public final void setExecutionRoleArn(String executionRoleArn) {
this.executionRoleArn = executionRoleArn;
}
@Override
public final Builder executionRoleArn(String executionRoleArn) {
this.executionRoleArn = executionRoleArn;
return this;
}
public final VectorEnrichmentJobInputConfig.Builder getInputConfig() {
return inputConfig != null ? inputConfig.toBuilder() : null;
}
public final void setInputConfig(VectorEnrichmentJobInputConfig.BuilderImpl inputConfig) {
this.inputConfig = inputConfig != null ? inputConfig.build() : null;
}
@Override
public final Builder inputConfig(VectorEnrichmentJobInputConfig inputConfig) {
this.inputConfig = inputConfig;
return this;
}
public final VectorEnrichmentJobConfig.Builder getJobConfig() {
return jobConfig != null ? jobConfig.toBuilder() : null;
}
public final void setJobConfig(VectorEnrichmentJobConfig.BuilderImpl jobConfig) {
this.jobConfig = jobConfig != null ? jobConfig.build() : null;
}
@Override
public final Builder jobConfig(VectorEnrichmentJobConfig jobConfig) {
this.jobConfig = jobConfig;
return this;
}
public final String getKmsKeyId() {
return kmsKeyId;
}
public final void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
@Override
public final Builder kmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
return this;
}
public final String getName() {
return name;
}
public final void setName(String name) {
this.name = name;
}
@Override
public final Builder name(String name) {
this.name = name;
return this;
}
public final String getStatus() {
return status;
}
public final void setStatus(String status) {
this.status = status;
}
@Override
public final Builder status(String status) {
this.status = status;
return this;
}
@Override
public final Builder status(VectorEnrichmentJobStatus status) {
this.status(status == null ? null : status.toString());
return this;
}
public final Map getTags() {
if (tags instanceof SdkAutoConstructMap) {
return null;
}
return tags;
}
public final void setTags(Map tags) {
this.tags = TagsCopier.copy(tags);
}
@Override
public final Builder tags(Map tags) {
this.tags = TagsCopier.copy(tags);
return this;
}
public final String getType() {
return type;
}
public final void setType(String type) {
this.type = type;
}
@Override
public final Builder type(String type) {
this.type = type;
return this;
}
@Override
public final Builder type(VectorEnrichmentJobType type) {
this.type(type == null ? null : type.toString());
return this;
}
@Override
public StartVectorEnrichmentJobResponse build() {
return new StartVectorEnrichmentJobResponse(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
}
}