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

software.amazon.awssdk.services.connect.model.SearchCriteria Maven / Gradle / Ivy

Go to download

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

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.connect.model;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
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.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* A structure of search criteria to be used to return contacts. *

*/ @Generated("software.amazon.awssdk:codegen") public final class SearchCriteria implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField> AGENT_IDS_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("AgentIds") .getter(getter(SearchCriteria::agentIds)) .setter(setter(Builder::agentIds)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AgentIds").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 AGENT_HIERARCHY_GROUPS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("AgentHierarchyGroups") .getter(getter(SearchCriteria::agentHierarchyGroups)).setter(setter(Builder::agentHierarchyGroups)) .constructor(AgentHierarchyGroups::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AgentHierarchyGroups").build()) .build(); private static final SdkField> CHANNELS_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("Channels") .getter(getter(SearchCriteria::channelsAsStrings)) .setter(setter(Builder::channelsWithStrings)) .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 CONTACT_ANALYSIS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("ContactAnalysis") .getter(getter(SearchCriteria::contactAnalysis)).setter(setter(Builder::contactAnalysis)) .constructor(ContactAnalysis::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ContactAnalysis").build()).build(); private static final SdkField> INITIATION_METHODS_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("InitiationMethods") .getter(getter(SearchCriteria::initiationMethodsAsStrings)) .setter(setter(Builder::initiationMethodsWithStrings)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("InitiationMethods").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> QUEUE_IDS_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("QueueIds") .getter(getter(SearchCriteria::queueIds)) .setter(setter(Builder::queueIds)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("QueueIds").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 SEARCHABLE_CONTACT_ATTRIBUTES_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("SearchableContactAttributes") .getter(getter(SearchCriteria::searchableContactAttributes)) .setter(setter(Builder::searchableContactAttributes)) .constructor(SearchableContactAttributes::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SearchableContactAttributes") .build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(AGENT_IDS_FIELD, AGENT_HIERARCHY_GROUPS_FIELD, CHANNELS_FIELD, CONTACT_ANALYSIS_FIELD, INITIATION_METHODS_FIELD, QUEUE_IDS_FIELD, SEARCHABLE_CONTACT_ATTRIBUTES_FIELD)); private static final long serialVersionUID = 1L; private final List agentIds; private final AgentHierarchyGroups agentHierarchyGroups; private final List channels; private final ContactAnalysis contactAnalysis; private final List initiationMethods; private final List queueIds; private final SearchableContactAttributes searchableContactAttributes; private SearchCriteria(BuilderImpl builder) { this.agentIds = builder.agentIds; this.agentHierarchyGroups = builder.agentHierarchyGroups; this.channels = builder.channels; this.contactAnalysis = builder.contactAnalysis; this.initiationMethods = builder.initiationMethods; this.queueIds = builder.queueIds; this.searchableContactAttributes = builder.searchableContactAttributes; } /** * For responses, this returns true if the service returned a value for the AgentIds 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 hasAgentIds() { return agentIds != null && !(agentIds instanceof SdkAutoConstructList); } /** *

* The identifiers of agents who handled the contacts. *

*

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

* * @return The identifiers of agents who handled the contacts. */ public final List agentIds() { return agentIds; } /** *

* The agent hierarchy groups of the agent at the time of handling the contact. *

* * @return The agent hierarchy groups of the agent at the time of handling the contact. */ public final AgentHierarchyGroups agentHierarchyGroups() { return agentHierarchyGroups; } /** *

* The list of channels associated with contacts. *

*

* 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 list of channels associated with contacts. */ public final List channels() { return ChannelListCopier.copyStringToEnum(channels); } /** * 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 list of channels associated with contacts. *

*

* 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 list of channels associated with contacts. */ public final List channelsAsStrings() { return channels; } /** *

* Search criteria based on analysis outputs from Amazon Connect Contact Lens. *

* * @return Search criteria based on analysis outputs from Amazon Connect Contact Lens. */ public final ContactAnalysis contactAnalysis() { return contactAnalysis; } /** *

* The list of initiation methods associated with contacts. *

*

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

* * @return The list of initiation methods associated with contacts. */ public final List initiationMethods() { return InitiationMethodListCopier.copyStringToEnum(initiationMethods); } /** * For responses, this returns true if the service returned a value for the InitiationMethods 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 hasInitiationMethods() { return initiationMethods != null && !(initiationMethods instanceof SdkAutoConstructList); } /** *

* The list of initiation methods associated with contacts. *

*

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

* * @return The list of initiation methods associated with contacts. */ public final List initiationMethodsAsStrings() { return initiationMethods; } /** * For responses, this returns true if the service returned a value for the QueueIds 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 hasQueueIds() { return queueIds != null && !(queueIds instanceof SdkAutoConstructList); } /** *

* The list of queue IDs associated with contacts. *

*

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

* * @return The list of queue IDs associated with contacts. */ public final List queueIds() { return queueIds; } /** *

* The search criteria based on user-defined contact attributes that have been configured for contact search. For * more information, see Search by custom * contact attributes in the Amazon Connect Administrator Guide. *

* *

* To use SearchableContactAttributes in a search request, the GetContactAttributes action * is required to perform an API request. For more information, see https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonconnect.html#amazonconnect-actions * -as-permissionsActions defined by Amazon Connect. *

*
* * @return The search criteria based on user-defined contact attributes that have been configured for contact * search. For more information, see Search by * custom contact attributes in the Amazon Connect Administrator Guide.

*

* To use SearchableContactAttributes in a search request, the * GetContactAttributes action is required to perform an API request. For more information, see * https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonconnect.html#amazonconnect * -actions-as-permissionsActions defined by Amazon Connect. *

*/ public final SearchableContactAttributes searchableContactAttributes() { return searchableContactAttributes; } @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(hasAgentIds() ? agentIds() : null); hashCode = 31 * hashCode + Objects.hashCode(agentHierarchyGroups()); hashCode = 31 * hashCode + Objects.hashCode(hasChannels() ? channelsAsStrings() : null); hashCode = 31 * hashCode + Objects.hashCode(contactAnalysis()); hashCode = 31 * hashCode + Objects.hashCode(hasInitiationMethods() ? initiationMethodsAsStrings() : null); hashCode = 31 * hashCode + Objects.hashCode(hasQueueIds() ? queueIds() : null); hashCode = 31 * hashCode + Objects.hashCode(searchableContactAttributes()); 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 SearchCriteria)) { return false; } SearchCriteria other = (SearchCriteria) obj; return hasAgentIds() == other.hasAgentIds() && Objects.equals(agentIds(), other.agentIds()) && Objects.equals(agentHierarchyGroups(), other.agentHierarchyGroups()) && hasChannels() == other.hasChannels() && Objects.equals(channelsAsStrings(), other.channelsAsStrings()) && Objects.equals(contactAnalysis(), other.contactAnalysis()) && hasInitiationMethods() == other.hasInitiationMethods() && Objects.equals(initiationMethodsAsStrings(), other.initiationMethodsAsStrings()) && hasQueueIds() == other.hasQueueIds() && Objects.equals(queueIds(), other.queueIds()) && Objects.equals(searchableContactAttributes(), other.searchableContactAttributes()); } /** * 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("SearchCriteria").add("AgentIds", hasAgentIds() ? agentIds() : null) .add("AgentHierarchyGroups", agentHierarchyGroups()).add("Channels", hasChannels() ? channelsAsStrings() : null) .add("ContactAnalysis", contactAnalysis()) .add("InitiationMethods", hasInitiationMethods() ? initiationMethodsAsStrings() : null) .add("QueueIds", hasQueueIds() ? queueIds() : null) .add("SearchableContactAttributes", searchableContactAttributes()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "AgentIds": return Optional.ofNullable(clazz.cast(agentIds())); case "AgentHierarchyGroups": return Optional.ofNullable(clazz.cast(agentHierarchyGroups())); case "Channels": return Optional.ofNullable(clazz.cast(channelsAsStrings())); case "ContactAnalysis": return Optional.ofNullable(clazz.cast(contactAnalysis())); case "InitiationMethods": return Optional.ofNullable(clazz.cast(initiationMethodsAsStrings())); case "QueueIds": return Optional.ofNullable(clazz.cast(queueIds())); case "SearchableContactAttributes": return Optional.ofNullable(clazz.cast(searchableContactAttributes())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((SearchCriteria) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* The identifiers of agents who handled the contacts. *

* * @param agentIds * The identifiers of agents who handled the contacts. * @return Returns a reference to this object so that method calls can be chained together. */ Builder agentIds(Collection agentIds); /** *

* The identifiers of agents who handled the contacts. *

* * @param agentIds * The identifiers of agents who handled the contacts. * @return Returns a reference to this object so that method calls can be chained together. */ Builder agentIds(String... agentIds); /** *

* The agent hierarchy groups of the agent at the time of handling the contact. *

* * @param agentHierarchyGroups * The agent hierarchy groups of the agent at the time of handling the contact. * @return Returns a reference to this object so that method calls can be chained together. */ Builder agentHierarchyGroups(AgentHierarchyGroups agentHierarchyGroups); /** *

* The agent hierarchy groups of the agent at the time of handling the contact. *

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

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

* The list of channels associated with contacts. *

* * @param channels * The list of channels associated with contacts. * @return Returns a reference to this object so that method calls can be chained together. */ Builder channelsWithStrings(Collection channels); /** *

* The list of channels associated with contacts. *

* * @param channels * The list of channels associated with contacts. * @return Returns a reference to this object so that method calls can be chained together. */ Builder channelsWithStrings(String... channels); /** *

* The list of channels associated with contacts. *

* * @param channels * The list of channels associated with contacts. * @return Returns a reference to this object so that method calls can be chained together. */ Builder channels(Collection channels); /** *

* The list of channels associated with contacts. *

* * @param channels * The list of channels associated with contacts. * @return Returns a reference to this object so that method calls can be chained together. */ Builder channels(Channel... channels); /** *

* Search criteria based on analysis outputs from Amazon Connect Contact Lens. *

* * @param contactAnalysis * Search criteria based on analysis outputs from Amazon Connect Contact Lens. * @return Returns a reference to this object so that method calls can be chained together. */ Builder contactAnalysis(ContactAnalysis contactAnalysis); /** *

* Search criteria based on analysis outputs from Amazon Connect Contact Lens. *

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

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

* The list of initiation methods associated with contacts. *

* * @param initiationMethods * The list of initiation methods associated with contacts. * @return Returns a reference to this object so that method calls can be chained together. */ Builder initiationMethodsWithStrings(Collection initiationMethods); /** *

* The list of initiation methods associated with contacts. *

* * @param initiationMethods * The list of initiation methods associated with contacts. * @return Returns a reference to this object so that method calls can be chained together. */ Builder initiationMethodsWithStrings(String... initiationMethods); /** *

* The list of initiation methods associated with contacts. *

* * @param initiationMethods * The list of initiation methods associated with contacts. * @return Returns a reference to this object so that method calls can be chained together. */ Builder initiationMethods(Collection initiationMethods); /** *

* The list of initiation methods associated with contacts. *

* * @param initiationMethods * The list of initiation methods associated with contacts. * @return Returns a reference to this object so that method calls can be chained together. */ Builder initiationMethods(ContactInitiationMethod... initiationMethods); /** *

* The list of queue IDs associated with contacts. *

* * @param queueIds * The list of queue IDs associated with contacts. * @return Returns a reference to this object so that method calls can be chained together. */ Builder queueIds(Collection queueIds); /** *

* The list of queue IDs associated with contacts. *

* * @param queueIds * The list of queue IDs associated with contacts. * @return Returns a reference to this object so that method calls can be chained together. */ Builder queueIds(String... queueIds); /** *

* The search criteria based on user-defined contact attributes that have been configured for contact search. * For more information, see Search by custom * contact attributes in the Amazon Connect Administrator Guide. *

* *

* To use SearchableContactAttributes in a search request, the GetContactAttributes * action is required to perform an API request. For more information, see https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonconnect.html#amazonconnect- * actions-as-permissionsActions defined by Amazon Connect. *

*
* * @param searchableContactAttributes * The search criteria based on user-defined contact attributes that have been configured for contact * search. For more information, see Search by * custom contact attributes in the Amazon Connect Administrator Guide.

*

* To use SearchableContactAttributes in a search request, the * GetContactAttributes action is required to perform an API request. For more information, * see https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonconnect.html# * amazonconnect-actions-as-permissionsActions defined by Amazon Connect. *

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

* The search criteria based on user-defined contact attributes that have been configured for contact search. * For more information, see Search by custom * contact attributes in the Amazon Connect Administrator Guide. *

* *

* To use SearchableContactAttributes in a search request, the GetContactAttributes * action is required to perform an API request. For more information, see https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonconnect.html#amazonconnect- * actions-as-permissionsActions defined by Amazon Connect. *

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

* When the {@link Consumer} completes, {@link SearchableContactAttributes.Builder#build()} is called * immediately and its result is passed to {@link #searchableContactAttributes(SearchableContactAttributes)}. * * @param searchableContactAttributes * a consumer that will call methods on {@link SearchableContactAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #searchableContactAttributes(SearchableContactAttributes) */ default Builder searchableContactAttributes(Consumer searchableContactAttributes) { return searchableContactAttributes(SearchableContactAttributes.builder().applyMutation(searchableContactAttributes) .build()); } } static final class BuilderImpl implements Builder { private List agentIds = DefaultSdkAutoConstructList.getInstance(); private AgentHierarchyGroups agentHierarchyGroups; private List channels = DefaultSdkAutoConstructList.getInstance(); private ContactAnalysis contactAnalysis; private List initiationMethods = DefaultSdkAutoConstructList.getInstance(); private List queueIds = DefaultSdkAutoConstructList.getInstance(); private SearchableContactAttributes searchableContactAttributes; private BuilderImpl() { } private BuilderImpl(SearchCriteria model) { agentIds(model.agentIds); agentHierarchyGroups(model.agentHierarchyGroups); channelsWithStrings(model.channels); contactAnalysis(model.contactAnalysis); initiationMethodsWithStrings(model.initiationMethods); queueIds(model.queueIds); searchableContactAttributes(model.searchableContactAttributes); } public final Collection getAgentIds() { if (agentIds instanceof SdkAutoConstructList) { return null; } return agentIds; } public final void setAgentIds(Collection agentIds) { this.agentIds = AgentResourceIdListCopier.copy(agentIds); } @Override public final Builder agentIds(Collection agentIds) { this.agentIds = AgentResourceIdListCopier.copy(agentIds); return this; } @Override @SafeVarargs public final Builder agentIds(String... agentIds) { agentIds(Arrays.asList(agentIds)); return this; } public final AgentHierarchyGroups.Builder getAgentHierarchyGroups() { return agentHierarchyGroups != null ? agentHierarchyGroups.toBuilder() : null; } public final void setAgentHierarchyGroups(AgentHierarchyGroups.BuilderImpl agentHierarchyGroups) { this.agentHierarchyGroups = agentHierarchyGroups != null ? agentHierarchyGroups.build() : null; } @Override public final Builder agentHierarchyGroups(AgentHierarchyGroups agentHierarchyGroups) { this.agentHierarchyGroups = agentHierarchyGroups; return this; } public final Collection getChannels() { if (channels instanceof SdkAutoConstructList) { return null; } return channels; } public final void setChannels(Collection channels) { this.channels = ChannelListCopier.copy(channels); } @Override public final Builder channelsWithStrings(Collection channels) { this.channels = ChannelListCopier.copy(channels); return this; } @Override @SafeVarargs public final Builder channelsWithStrings(String... channels) { channelsWithStrings(Arrays.asList(channels)); return this; } @Override public final Builder channels(Collection channels) { this.channels = ChannelListCopier.copyEnumToString(channels); return this; } @Override @SafeVarargs public final Builder channels(Channel... channels) { channels(Arrays.asList(channels)); return this; } public final ContactAnalysis.Builder getContactAnalysis() { return contactAnalysis != null ? contactAnalysis.toBuilder() : null; } public final void setContactAnalysis(ContactAnalysis.BuilderImpl contactAnalysis) { this.contactAnalysis = contactAnalysis != null ? contactAnalysis.build() : null; } @Override public final Builder contactAnalysis(ContactAnalysis contactAnalysis) { this.contactAnalysis = contactAnalysis; return this; } public final Collection getInitiationMethods() { if (initiationMethods instanceof SdkAutoConstructList) { return null; } return initiationMethods; } public final void setInitiationMethods(Collection initiationMethods) { this.initiationMethods = InitiationMethodListCopier.copy(initiationMethods); } @Override public final Builder initiationMethodsWithStrings(Collection initiationMethods) { this.initiationMethods = InitiationMethodListCopier.copy(initiationMethods); return this; } @Override @SafeVarargs public final Builder initiationMethodsWithStrings(String... initiationMethods) { initiationMethodsWithStrings(Arrays.asList(initiationMethods)); return this; } @Override public final Builder initiationMethods(Collection initiationMethods) { this.initiationMethods = InitiationMethodListCopier.copyEnumToString(initiationMethods); return this; } @Override @SafeVarargs public final Builder initiationMethods(ContactInitiationMethod... initiationMethods) { initiationMethods(Arrays.asList(initiationMethods)); return this; } public final Collection getQueueIds() { if (queueIds instanceof SdkAutoConstructList) { return null; } return queueIds; } public final void setQueueIds(Collection queueIds) { this.queueIds = QueueIdListCopier.copy(queueIds); } @Override public final Builder queueIds(Collection queueIds) { this.queueIds = QueueIdListCopier.copy(queueIds); return this; } @Override @SafeVarargs public final Builder queueIds(String... queueIds) { queueIds(Arrays.asList(queueIds)); return this; } public final SearchableContactAttributes.Builder getSearchableContactAttributes() { return searchableContactAttributes != null ? searchableContactAttributes.toBuilder() : null; } public final void setSearchableContactAttributes(SearchableContactAttributes.BuilderImpl searchableContactAttributes) { this.searchableContactAttributes = searchableContactAttributes != null ? searchableContactAttributes.build() : null; } @Override public final Builder searchableContactAttributes(SearchableContactAttributes searchableContactAttributes) { this.searchableContactAttributes = searchableContactAttributes; return this; } @Override public SearchCriteria build() { return new SearchCriteria(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy