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

software.amazon.awssdk.services.wisdom.model.QuickResponseSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Wisdom module holds the client classes that are used for communicating with Wisdom.

There is a newer version: 2.29.15
Show newest version
/*
 * 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.wisdom.model;

import java.io.Serializable;
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.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.ListTrait;
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.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;

/**
 * 

* The summary information about the quick response. *

*/ @Generated("software.amazon.awssdk:codegen") public final class QuickResponseSummary implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField> CHANNELS_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("channels") .getter(getter(QuickResponseSummary::channels)) .setter(setter(Builder::channels)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("channels").build(), ListTrait .builder() .memberLocationName(null) .memberFieldInfo( SdkField. builder(MarshallingType.STRING) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("member").build()).build()).build()).build(); private static final SdkField CONTENT_TYPE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("contentType").getter(getter(QuickResponseSummary::contentType)).setter(setter(Builder::contentType)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("contentType").build()).build(); private static final SdkField CREATED_TIME_FIELD = SdkField . builder(MarshallingType.INSTANT) .memberName("createdTime") .getter(getter(QuickResponseSummary::createdTime)) .setter(setter(Builder::createdTime)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("createdTime").build(), TimestampFormatTrait.create(TimestampFormatTrait.Format.UNIX_TIMESTAMP)).build(); private static final SdkField DESCRIPTION_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("description").getter(getter(QuickResponseSummary::description)).setter(setter(Builder::description)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("description").build()).build(); private static final SdkField IS_ACTIVE_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .memberName("isActive").getter(getter(QuickResponseSummary::isActive)).setter(setter(Builder::isActive)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("isActive").build()).build(); private static final SdkField KNOWLEDGE_BASE_ARN_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("knowledgeBaseArn").getter(getter(QuickResponseSummary::knowledgeBaseArn)) .setter(setter(Builder::knowledgeBaseArn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("knowledgeBaseArn").build()).build(); private static final SdkField KNOWLEDGE_BASE_ID_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("knowledgeBaseId").getter(getter(QuickResponseSummary::knowledgeBaseId)) .setter(setter(Builder::knowledgeBaseId)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("knowledgeBaseId").build()).build(); private static final SdkField LAST_MODIFIED_BY_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("lastModifiedBy").getter(getter(QuickResponseSummary::lastModifiedBy)) .setter(setter(Builder::lastModifiedBy)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("lastModifiedBy").build()).build(); private static final SdkField LAST_MODIFIED_TIME_FIELD = SdkField . builder(MarshallingType.INSTANT) .memberName("lastModifiedTime") .getter(getter(QuickResponseSummary::lastModifiedTime)) .setter(setter(Builder::lastModifiedTime)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("lastModifiedTime").build(), TimestampFormatTrait.create(TimestampFormatTrait.Format.UNIX_TIMESTAMP)).build(); private static final SdkField NAME_FIELD = SdkField. builder(MarshallingType.STRING).memberName("name") .getter(getter(QuickResponseSummary::name)).setter(setter(Builder::name)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("name").build()).build(); private static final SdkField QUICK_RESPONSE_ARN_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("quickResponseArn").getter(getter(QuickResponseSummary::quickResponseArn)) .setter(setter(Builder::quickResponseArn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("quickResponseArn").build()).build(); private static final SdkField QUICK_RESPONSE_ID_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("quickResponseId").getter(getter(QuickResponseSummary::quickResponseId)) .setter(setter(Builder::quickResponseId)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("quickResponseId").build()).build(); private static final SdkField STATUS_FIELD = SdkField. builder(MarshallingType.STRING).memberName("status") .getter(getter(QuickResponseSummary::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(QuickResponseSummary::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 List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CHANNELS_FIELD, CONTENT_TYPE_FIELD, CREATED_TIME_FIELD, DESCRIPTION_FIELD, IS_ACTIVE_FIELD, KNOWLEDGE_BASE_ARN_FIELD, KNOWLEDGE_BASE_ID_FIELD, LAST_MODIFIED_BY_FIELD, LAST_MODIFIED_TIME_FIELD, NAME_FIELD, QUICK_RESPONSE_ARN_FIELD, QUICK_RESPONSE_ID_FIELD, STATUS_FIELD, TAGS_FIELD)); private static final Map> SDK_NAME_TO_FIELD = Collections .unmodifiableMap(new HashMap>() { { put("channels", CHANNELS_FIELD); put("contentType", CONTENT_TYPE_FIELD); put("createdTime", CREATED_TIME_FIELD); put("description", DESCRIPTION_FIELD); put("isActive", IS_ACTIVE_FIELD); put("knowledgeBaseArn", KNOWLEDGE_BASE_ARN_FIELD); put("knowledgeBaseId", KNOWLEDGE_BASE_ID_FIELD); put("lastModifiedBy", LAST_MODIFIED_BY_FIELD); put("lastModifiedTime", LAST_MODIFIED_TIME_FIELD); put("name", NAME_FIELD); put("quickResponseArn", QUICK_RESPONSE_ARN_FIELD); put("quickResponseId", QUICK_RESPONSE_ID_FIELD); put("status", STATUS_FIELD); put("tags", TAGS_FIELD); } }); private static final long serialVersionUID = 1L; private final List channels; private final String contentType; private final Instant createdTime; private final String description; private final Boolean isActive; private final String knowledgeBaseArn; private final String knowledgeBaseId; private final String lastModifiedBy; private final Instant lastModifiedTime; private final String name; private final String quickResponseArn; private final String quickResponseId; private final String status; private final Map tags; private QuickResponseSummary(BuilderImpl builder) { this.channels = builder.channels; this.contentType = builder.contentType; this.createdTime = builder.createdTime; this.description = builder.description; this.isActive = builder.isActive; this.knowledgeBaseArn = builder.knowledgeBaseArn; this.knowledgeBaseId = builder.knowledgeBaseId; this.lastModifiedBy = builder.lastModifiedBy; this.lastModifiedTime = builder.lastModifiedTime; this.name = builder.name; this.quickResponseArn = builder.quickResponseArn; this.quickResponseId = builder.quickResponseId; this.status = builder.status; this.tags = builder.tags; } /** * For responses, this returns true if the service returned a value for the Channels 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 hasChannels() { return channels != null && !(channels instanceof SdkAutoConstructList); } /** *

* The Amazon Connect contact channels this quick response applies to. The supported contact channel types include * Chat. *

*

* 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 #hasChannels} method. *

* * @return The Amazon Connect contact channels this quick response applies to. The supported contact channel types * include Chat. */ public final List channels() { return channels; } /** *

* The media type of the quick response content. *

*
    *
  • *

    * Use application/x.quickresponse;format=plain for quick response written in plain text. *

    *
  • *
  • *

    * Use application/x.quickresponse;format=markdown for quick response written in richtext. *

    *
  • *
* * @return The media type of the quick response content.

*
    *
  • *

    * Use application/x.quickresponse;format=plain for quick response written in plain text. *

    *
  • *
  • *

    * Use application/x.quickresponse;format=markdown for quick response written in richtext. *

    *
  • */ public final String contentType() { return contentType; } /** *

    * The timestamp when the quick response was created. *

    * * @return The timestamp when the quick response was created. */ public final Instant createdTime() { return createdTime; } /** *

    * The description of the quick response. *

    * * @return The description of the quick response. */ public final String description() { return description; } /** *

    * Whether the quick response is active. *

    * * @return Whether the quick response is active. */ public final Boolean isActive() { return isActive; } /** *

    * The Amazon Resource Name (ARN) of the knowledge base. *

    * * @return The Amazon Resource Name (ARN) of the knowledge base. */ public final String knowledgeBaseArn() { return knowledgeBaseArn; } /** *

    * The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing * Wisdom Content resource to it. *

    * * @return The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're * storing Wisdom Content resource to it. */ public final String knowledgeBaseId() { return knowledgeBaseId; } /** *

    * The Amazon Resource Name (ARN) of the user who last updated the quick response data. *

    * * @return The Amazon Resource Name (ARN) of the user who last updated the quick response data. */ public final String lastModifiedBy() { return lastModifiedBy; } /** *

    * The timestamp when the quick response summary was last modified. *

    * * @return The timestamp when the quick response summary was last modified. */ public final Instant lastModifiedTime() { return lastModifiedTime; } /** *

    * The name of the quick response. *

    * * @return The name of the quick response. */ public final String name() { return name; } /** *

    * The Amazon Resource Name (ARN) of the quick response. *

    * * @return The Amazon Resource Name (ARN) of the quick response. */ public final String quickResponseArn() { return quickResponseArn; } /** *

    * The identifier of the quick response. *

    * * @return The identifier of the quick response. */ public final String quickResponseId() { return quickResponseId; } /** *

    * The resource status of the quick response. *

    *

    * If the service returns an enum value that is not available in the current SDK version, {@link #status} will * return {@link QuickResponseStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #statusAsString}. *

    * * @return The resource status of the quick response. * @see QuickResponseStatus */ public final QuickResponseStatus status() { return QuickResponseStatus.fromValue(status); } /** *

    * The resource status of the quick response. *

    *

    * If the service returns an enum value that is not available in the current SDK version, {@link #status} will * return {@link QuickResponseStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #statusAsString}. *

    * * @return The resource status of the quick response. * @see QuickResponseStatus */ 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); } /** *

    * 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; } @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 + Objects.hashCode(hasChannels() ? channels() : null); hashCode = 31 * hashCode + Objects.hashCode(contentType()); hashCode = 31 * hashCode + Objects.hashCode(createdTime()); hashCode = 31 * hashCode + Objects.hashCode(description()); hashCode = 31 * hashCode + Objects.hashCode(isActive()); hashCode = 31 * hashCode + Objects.hashCode(knowledgeBaseArn()); hashCode = 31 * hashCode + Objects.hashCode(knowledgeBaseId()); hashCode = 31 * hashCode + Objects.hashCode(lastModifiedBy()); hashCode = 31 * hashCode + Objects.hashCode(lastModifiedTime()); hashCode = 31 * hashCode + Objects.hashCode(name()); hashCode = 31 * hashCode + Objects.hashCode(quickResponseArn()); hashCode = 31 * hashCode + Objects.hashCode(quickResponseId()); hashCode = 31 * hashCode + Objects.hashCode(statusAsString()); hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null); return hashCode; } @Override public final boolean equals(Object obj) { return equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof QuickResponseSummary)) { return false; } QuickResponseSummary other = (QuickResponseSummary) obj; return hasChannels() == other.hasChannels() && Objects.equals(channels(), other.channels()) && Objects.equals(contentType(), other.contentType()) && Objects.equals(createdTime(), other.createdTime()) && Objects.equals(description(), other.description()) && Objects.equals(isActive(), other.isActive()) && Objects.equals(knowledgeBaseArn(), other.knowledgeBaseArn()) && Objects.equals(knowledgeBaseId(), other.knowledgeBaseId()) && Objects.equals(lastModifiedBy(), other.lastModifiedBy()) && Objects.equals(lastModifiedTime(), other.lastModifiedTime()) && Objects.equals(name(), other.name()) && Objects.equals(quickResponseArn(), other.quickResponseArn()) && Objects.equals(quickResponseId(), other.quickResponseId()) && Objects.equals(statusAsString(), other.statusAsString()) && hasTags() == other.hasTags() && Objects.equals(tags(), other.tags()); } /** * 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("QuickResponseSummary") .add("Channels", channels() == null ? null : "*** Sensitive Data Redacted ***").add("ContentType", contentType()) .add("CreatedTime", createdTime()).add("Description", description()).add("IsActive", isActive()) .add("KnowledgeBaseArn", knowledgeBaseArn()).add("KnowledgeBaseId", knowledgeBaseId()) .add("LastModifiedBy", lastModifiedBy()).add("LastModifiedTime", lastModifiedTime()).add("Name", name()) .add("QuickResponseArn", quickResponseArn()).add("QuickResponseId", quickResponseId()) .add("Status", statusAsString()).add("Tags", hasTags() ? tags() : null).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "channels": return Optional.ofNullable(clazz.cast(channels())); case "contentType": return Optional.ofNullable(clazz.cast(contentType())); case "createdTime": return Optional.ofNullable(clazz.cast(createdTime())); case "description": return Optional.ofNullable(clazz.cast(description())); case "isActive": return Optional.ofNullable(clazz.cast(isActive())); case "knowledgeBaseArn": return Optional.ofNullable(clazz.cast(knowledgeBaseArn())); case "knowledgeBaseId": return Optional.ofNullable(clazz.cast(knowledgeBaseId())); case "lastModifiedBy": return Optional.ofNullable(clazz.cast(lastModifiedBy())); case "lastModifiedTime": return Optional.ofNullable(clazz.cast(lastModifiedTime())); case "name": return Optional.ofNullable(clazz.cast(name())); case "quickResponseArn": return Optional.ofNullable(clazz.cast(quickResponseArn())); case "quickResponseId": return Optional.ofNullable(clazz.cast(quickResponseId())); case "status": return Optional.ofNullable(clazz.cast(statusAsString())); case "tags": return Optional.ofNullable(clazz.cast(tags())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } @Override public final Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } private static Function getter(Function g) { return obj -> g.apply((QuickResponseSummary) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

    * The Amazon Connect contact channels this quick response applies to. The supported contact channel types * include Chat. *

    * * @param channels * The Amazon Connect contact channels this quick response applies to. The supported contact channel * types include Chat. * @return Returns a reference to this object so that method calls can be chained together. */ Builder channels(Collection channels); /** *

    * The Amazon Connect contact channels this quick response applies to. The supported contact channel types * include Chat. *

    * * @param channels * The Amazon Connect contact channels this quick response applies to. The supported contact channel * types include Chat. * @return Returns a reference to this object so that method calls can be chained together. */ Builder channels(String... channels); /** *

    * The media type of the quick response content. *

    *
      *
    • *

      * Use application/x.quickresponse;format=plain for quick response written in plain text. *

      *
    • *
    • *

      * Use application/x.quickresponse;format=markdown for quick response written in richtext. *

      *
    • *
    * * @param contentType * The media type of the quick response content.

    *
      *
    • *

      * Use application/x.quickresponse;format=plain for quick response written in plain text. *

      *
    • *
    • *

      * Use application/x.quickresponse;format=markdown for quick response written in richtext. *

      *
    • * @return Returns a reference to this object so that method calls can be chained together. */ Builder contentType(String contentType); /** *

      * The timestamp when the quick response was created. *

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

      * The description of the quick response. *

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

      * Whether the quick response is active. *

      * * @param isActive * Whether the quick response is active. * @return Returns a reference to this object so that method calls can be chained together. */ Builder isActive(Boolean isActive); /** *

      * The Amazon Resource Name (ARN) of the knowledge base. *

      * * @param knowledgeBaseArn * The Amazon Resource Name (ARN) of the knowledge base. * @return Returns a reference to this object so that method calls can be chained together. */ Builder knowledgeBaseArn(String knowledgeBaseArn); /** *

      * The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're * storing Wisdom Content resource to it. *

      * * @param knowledgeBaseId * The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if * you're storing Wisdom Content resource to it. * @return Returns a reference to this object so that method calls can be chained together. */ Builder knowledgeBaseId(String knowledgeBaseId); /** *

      * The Amazon Resource Name (ARN) of the user who last updated the quick response data. *

      * * @param lastModifiedBy * The Amazon Resource Name (ARN) of the user who last updated the quick response data. * @return Returns a reference to this object so that method calls can be chained together. */ Builder lastModifiedBy(String lastModifiedBy); /** *

      * The timestamp when the quick response summary was last modified. *

      * * @param lastModifiedTime * The timestamp when the quick response summary was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ Builder lastModifiedTime(Instant lastModifiedTime); /** *

      * The name of the quick response. *

      * * @param name * The name of the quick response. * @return Returns a reference to this object so that method calls can be chained together. */ Builder name(String name); /** *

      * The Amazon Resource Name (ARN) of the quick response. *

      * * @param quickResponseArn * The Amazon Resource Name (ARN) of the quick response. * @return Returns a reference to this object so that method calls can be chained together. */ Builder quickResponseArn(String quickResponseArn); /** *

      * The identifier of the quick response. *

      * * @param quickResponseId * The identifier of the quick response. * @return Returns a reference to this object so that method calls can be chained together. */ Builder quickResponseId(String quickResponseId); /** *

      * The resource status of the quick response. *

      * * @param status * The resource status of the quick response. * @see QuickResponseStatus * @return Returns a reference to this object so that method calls can be chained together. * @see QuickResponseStatus */ Builder status(String status); /** *

      * The resource status of the quick response. *

      * * @param status * The resource status of the quick response. * @see QuickResponseStatus * @return Returns a reference to this object so that method calls can be chained together. * @see QuickResponseStatus */ Builder status(QuickResponseStatus status); /** *

      * 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); } static final class BuilderImpl implements Builder { private List channels = DefaultSdkAutoConstructList.getInstance(); private String contentType; private Instant createdTime; private String description; private Boolean isActive; private String knowledgeBaseArn; private String knowledgeBaseId; private String lastModifiedBy; private Instant lastModifiedTime; private String name; private String quickResponseArn; private String quickResponseId; private String status; private Map tags = DefaultSdkAutoConstructMap.getInstance(); private BuilderImpl() { } private BuilderImpl(QuickResponseSummary model) { channels(model.channels); contentType(model.contentType); createdTime(model.createdTime); description(model.description); isActive(model.isActive); knowledgeBaseArn(model.knowledgeBaseArn); knowledgeBaseId(model.knowledgeBaseId); lastModifiedBy(model.lastModifiedBy); lastModifiedTime(model.lastModifiedTime); name(model.name); quickResponseArn(model.quickResponseArn); quickResponseId(model.quickResponseId); status(model.status); tags(model.tags); } public final Collection getChannels() { if (channels instanceof SdkAutoConstructList) { return null; } return channels; } public final void setChannels(Collection channels) { this.channels = ChannelsCopier.copy(channels); } @Override public final Builder channels(Collection channels) { this.channels = ChannelsCopier.copy(channels); return this; } @Override @SafeVarargs public final Builder channels(String... channels) { channels(Arrays.asList(channels)); return this; } public final String getContentType() { return contentType; } public final void setContentType(String contentType) { this.contentType = contentType; } @Override public final Builder contentType(String contentType) { this.contentType = contentType; return this; } public final Instant getCreatedTime() { return createdTime; } public final void setCreatedTime(Instant createdTime) { this.createdTime = createdTime; } @Override public final Builder createdTime(Instant createdTime) { this.createdTime = createdTime; 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 Boolean getIsActive() { return isActive; } public final void setIsActive(Boolean isActive) { this.isActive = isActive; } @Override public final Builder isActive(Boolean isActive) { this.isActive = isActive; return this; } public final String getKnowledgeBaseArn() { return knowledgeBaseArn; } public final void setKnowledgeBaseArn(String knowledgeBaseArn) { this.knowledgeBaseArn = knowledgeBaseArn; } @Override public final Builder knowledgeBaseArn(String knowledgeBaseArn) { this.knowledgeBaseArn = knowledgeBaseArn; return this; } public final String getKnowledgeBaseId() { return knowledgeBaseId; } public final void setKnowledgeBaseId(String knowledgeBaseId) { this.knowledgeBaseId = knowledgeBaseId; } @Override public final Builder knowledgeBaseId(String knowledgeBaseId) { this.knowledgeBaseId = knowledgeBaseId; return this; } public final String getLastModifiedBy() { return lastModifiedBy; } public final void setLastModifiedBy(String lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; } @Override public final Builder lastModifiedBy(String lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; return this; } public final Instant getLastModifiedTime() { return lastModifiedTime; } public final void setLastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } @Override public final Builder lastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; 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 getQuickResponseArn() { return quickResponseArn; } public final void setQuickResponseArn(String quickResponseArn) { this.quickResponseArn = quickResponseArn; } @Override public final Builder quickResponseArn(String quickResponseArn) { this.quickResponseArn = quickResponseArn; return this; } public final String getQuickResponseId() { return quickResponseId; } public final void setQuickResponseId(String quickResponseId) { this.quickResponseId = quickResponseId; } @Override public final Builder quickResponseId(String quickResponseId) { this.quickResponseId = quickResponseId; 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(QuickResponseStatus 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; } @Override public QuickResponseSummary build() { return new QuickResponseSummary(this); } @Override public List> sdkFields() { return SDK_FIELDS; } @Override public Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy