software.amazon.awssdk.services.customerprofiles.model.SearchProfilesRequest Maven / Gradle / Ivy
Show all versions of customerprofiles Show documentation
/*
* 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.customerprofiles.model;
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 java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
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;
/**
*/
@Generated("software.amazon.awssdk:codegen")
public final class SearchProfilesRequest extends CustomerProfilesRequest implements
ToCopyableBuilder {
private static final SdkField NEXT_TOKEN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("NextToken").getter(getter(SearchProfilesRequest::nextToken)).setter(setter(Builder::nextToken))
.traits(LocationTrait.builder().location(MarshallLocation.QUERY_PARAM).locationName("next-token").build()).build();
private static final SdkField MAX_RESULTS_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("MaxResults").getter(getter(SearchProfilesRequest::maxResults)).setter(setter(Builder::maxResults))
.traits(LocationTrait.builder().location(MarshallLocation.QUERY_PARAM).locationName("max-results").build()).build();
private static final SdkField DOMAIN_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DomainName").getter(getter(SearchProfilesRequest::domainName)).setter(setter(Builder::domainName))
.traits(LocationTrait.builder().location(MarshallLocation.PATH).locationName("DomainName").build()).build();
private static final SdkField KEY_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("KeyName").getter(getter(SearchProfilesRequest::keyName)).setter(setter(Builder::keyName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KeyName").build()).build();
private static final SdkField> VALUES_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("Values")
.getter(getter(SearchProfilesRequest::values))
.setter(setter(Builder::values))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Values").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> ADDITIONAL_SEARCH_KEYS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("AdditionalSearchKeys")
.getter(getter(SearchProfilesRequest::additionalSearchKeys))
.setter(setter(Builder::additionalSearchKeys))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AdditionalSearchKeys").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.SDK_POJO)
.constructor(AdditionalSearchKey::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final SdkField LOGICAL_OPERATOR_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("LogicalOperator").getter(getter(SearchProfilesRequest::logicalOperatorAsString))
.setter(setter(Builder::logicalOperator))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LogicalOperator").build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(NEXT_TOKEN_FIELD,
MAX_RESULTS_FIELD, DOMAIN_NAME_FIELD, KEY_NAME_FIELD, VALUES_FIELD, ADDITIONAL_SEARCH_KEYS_FIELD,
LOGICAL_OPERATOR_FIELD));
private final String nextToken;
private final Integer maxResults;
private final String domainName;
private final String keyName;
private final List values;
private final List additionalSearchKeys;
private final String logicalOperator;
private SearchProfilesRequest(BuilderImpl builder) {
super(builder);
this.nextToken = builder.nextToken;
this.maxResults = builder.maxResults;
this.domainName = builder.domainName;
this.keyName = builder.keyName;
this.values = builder.values;
this.additionalSearchKeys = builder.additionalSearchKeys;
this.logicalOperator = builder.logicalOperator;
}
/**
*
* The pagination token from the previous SearchProfiles API call.
*
*
* @return The pagination token from the previous SearchProfiles API call.
*/
public final String nextToken() {
return nextToken;
}
/**
*
* The maximum number of objects returned per page.
*
*
* The default is 20 if this parameter is not included in the request.
*
*
* @return The maximum number of objects returned per page.
*
* The default is 20 if this parameter is not included in the request.
*/
public final Integer maxResults() {
return maxResults;
}
/**
*
* The unique name of the domain.
*
*
* @return The unique name of the domain.
*/
public final String domainName() {
return domainName;
}
/**
*
* A searchable identifier of a customer profile. The predefined keys you can use to search include: _account,
* _profileId, _assetId, _caseId, _orderId, _fullName, _phone, _email, _ctrContactId, _marketoLeadId,
* _salesforceAccountId, _salesforceContactId, _salesforceAssetId, _zendeskUserId, _zendeskExternalId,
* _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, _shopifyCustomerId,
* _shopifyOrderId.
*
*
* @return A searchable identifier of a customer profile. The predefined keys you can use to search include:
* _account, _profileId, _assetId, _caseId, _orderId, _fullName, _phone, _email, _ctrContactId,
* _marketoLeadId, _salesforceAccountId, _salesforceContactId, _salesforceAssetId, _zendeskUserId,
* _zendeskExternalId, _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId,
* _shopifyCustomerId, _shopifyOrderId.
*/
public final String keyName() {
return keyName;
}
/**
* For responses, this returns true if the service returned a value for the Values 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 hasValues() {
return values != null && !(values instanceof SdkAutoConstructList);
}
/**
*
* A list of key values.
*
*
* 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 #hasValues} method.
*
*
* @return A list of key values.
*/
public final List values() {
return values;
}
/**
* For responses, this returns true if the service returned a value for the AdditionalSearchKeys 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 hasAdditionalSearchKeys() {
return additionalSearchKeys != null && !(additionalSearchKeys instanceof SdkAutoConstructList);
}
/**
*
* A list of AdditionalSearchKey
objects that are each searchable identifiers of a profile. Each
* AdditionalSearchKey
object contains a KeyName
and a list of Values
* associated with that specific key (i.e., a key-value(s) pair). These additional search keys will be used in
* conjunction with the LogicalOperator
and the required KeyName
and Values
* parameters to search for profiles that satisfy the search criteria.
*
*
* 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 #hasAdditionalSearchKeys} method.
*
*
* @return A list of AdditionalSearchKey
objects that are each searchable identifiers of a profile.
* Each AdditionalSearchKey
object contains a KeyName
and a list of
* Values
associated with that specific key (i.e., a key-value(s) pair). These additional
* search keys will be used in conjunction with the LogicalOperator
and the required
* KeyName
and Values
parameters to search for profiles that satisfy the search
* criteria.
*/
public final List additionalSearchKeys() {
return additionalSearchKeys;
}
/**
*
* Relationship between all specified search keys that will be used to search for profiles. This includes the
* required KeyName
and Values
parameters as well as any key-value(s) pairs specified in
* the AdditionalSearchKeys
list.
*
*
* This parameter influences which profiles will be returned in the response in the following manner:
*
*
* -
*
* AND
- The response only includes profiles that match all of the search keys.
*
*
* -
*
* OR
- The response includes profiles that match at least one of the search keys.
*
*
*
*
* The OR
relationship is the default behavior if this parameter is not included in the request.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #logicalOperator}
* will return {@link LogicalOperator#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available
* from {@link #logicalOperatorAsString}.
*
*
* @return Relationship between all specified search keys that will be used to search for profiles. This includes
* the required KeyName
and Values
parameters as well as any key-value(s) pairs
* specified in the AdditionalSearchKeys
list.
*
* This parameter influences which profiles will be returned in the response in the following manner:
*
*
* -
*
* AND
- The response only includes profiles that match all of the search keys.
*
*
* -
*
* OR
- The response includes profiles that match at least one of the search keys.
*
*
*
*
* The OR
relationship is the default behavior if this parameter is not included in the
* request.
* @see LogicalOperator
*/
public final LogicalOperator logicalOperator() {
return LogicalOperator.fromValue(logicalOperator);
}
/**
*
* Relationship between all specified search keys that will be used to search for profiles. This includes the
* required KeyName
and Values
parameters as well as any key-value(s) pairs specified in
* the AdditionalSearchKeys
list.
*
*
* This parameter influences which profiles will be returned in the response in the following manner:
*
*
* -
*
* AND
- The response only includes profiles that match all of the search keys.
*
*
* -
*
* OR
- The response includes profiles that match at least one of the search keys.
*
*
*
*
* The OR
relationship is the default behavior if this parameter is not included in the request.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #logicalOperator}
* will return {@link LogicalOperator#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available
* from {@link #logicalOperatorAsString}.
*
*
* @return Relationship between all specified search keys that will be used to search for profiles. This includes
* the required KeyName
and Values
parameters as well as any key-value(s) pairs
* specified in the AdditionalSearchKeys
list.
*
* This parameter influences which profiles will be returned in the response in the following manner:
*
*
* -
*
* AND
- The response only includes profiles that match all of the search keys.
*
*
* -
*
* OR
- The response includes profiles that match at least one of the search keys.
*
*
*
*
* The OR
relationship is the default behavior if this parameter is not included in the
* request.
* @see LogicalOperator
*/
public final String logicalOperatorAsString() {
return logicalOperator;
}
@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(nextToken());
hashCode = 31 * hashCode + Objects.hashCode(maxResults());
hashCode = 31 * hashCode + Objects.hashCode(domainName());
hashCode = 31 * hashCode + Objects.hashCode(keyName());
hashCode = 31 * hashCode + Objects.hashCode(hasValues() ? values() : null);
hashCode = 31 * hashCode + Objects.hashCode(hasAdditionalSearchKeys() ? additionalSearchKeys() : null);
hashCode = 31 * hashCode + Objects.hashCode(logicalOperatorAsString());
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 SearchProfilesRequest)) {
return false;
}
SearchProfilesRequest other = (SearchProfilesRequest) obj;
return Objects.equals(nextToken(), other.nextToken()) && Objects.equals(maxResults(), other.maxResults())
&& Objects.equals(domainName(), other.domainName()) && Objects.equals(keyName(), other.keyName())
&& hasValues() == other.hasValues() && Objects.equals(values(), other.values())
&& hasAdditionalSearchKeys() == other.hasAdditionalSearchKeys()
&& Objects.equals(additionalSearchKeys(), other.additionalSearchKeys())
&& Objects.equals(logicalOperatorAsString(), other.logicalOperatorAsString());
}
/**
* 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("SearchProfilesRequest").add("NextToken", nextToken()).add("MaxResults", maxResults())
.add("DomainName", domainName()).add("KeyName", keyName()).add("Values", hasValues() ? values() : null)
.add("AdditionalSearchKeys", hasAdditionalSearchKeys() ? additionalSearchKeys() : null)
.add("LogicalOperator", logicalOperatorAsString()).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "NextToken":
return Optional.ofNullable(clazz.cast(nextToken()));
case "MaxResults":
return Optional.ofNullable(clazz.cast(maxResults()));
case "DomainName":
return Optional.ofNullable(clazz.cast(domainName()));
case "KeyName":
return Optional.ofNullable(clazz.cast(keyName()));
case "Values":
return Optional.ofNullable(clazz.cast(values()));
case "AdditionalSearchKeys":
return Optional.ofNullable(clazz.cast(additionalSearchKeys()));
case "LogicalOperator":
return Optional.ofNullable(clazz.cast(logicalOperatorAsString()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function
*
* The default is 20 if this parameter is not included in the request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder maxResults(Integer maxResults);
/**
*
* The unique name of the domain.
*
*
* @param domainName
* The unique name of the domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder domainName(String domainName);
/**
*
* A searchable identifier of a customer profile. The predefined keys you can use to search include: _account,
* _profileId, _assetId, _caseId, _orderId, _fullName, _phone, _email, _ctrContactId, _marketoLeadId,
* _salesforceAccountId, _salesforceContactId, _salesforceAssetId, _zendeskUserId, _zendeskExternalId,
* _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, _shopifyCustomerId,
* _shopifyOrderId.
*
*
* @param keyName
* A searchable identifier of a customer profile. The predefined keys you can use to search include:
* _account, _profileId, _assetId, _caseId, _orderId, _fullName, _phone, _email, _ctrContactId,
* _marketoLeadId, _salesforceAccountId, _salesforceContactId, _salesforceAssetId, _zendeskUserId,
* _zendeskExternalId, _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId,
* _shopifyCustomerId, _shopifyOrderId.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder keyName(String keyName);
/**
*
* A list of key values.
*
*
* @param values
* A list of key values.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder values(Collection values);
/**
*
* A list of key values.
*
*
* @param values
* A list of key values.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder values(String... values);
/**
*
* A list of AdditionalSearchKey
objects that are each searchable identifiers of a profile. Each
* AdditionalSearchKey
object contains a KeyName
and a list of Values
* associated with that specific key (i.e., a key-value(s) pair). These additional search keys will be used in
* conjunction with the LogicalOperator
and the required KeyName
and
* Values
parameters to search for profiles that satisfy the search criteria.
*
*
* @param additionalSearchKeys
* A list of AdditionalSearchKey
objects that are each searchable identifiers of a profile.
* Each AdditionalSearchKey
object contains a KeyName
and a list of
* Values
associated with that specific key (i.e., a key-value(s) pair). These additional
* search keys will be used in conjunction with the LogicalOperator
and the required
* KeyName
and Values
parameters to search for profiles that satisfy the search
* criteria.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder additionalSearchKeys(Collection additionalSearchKeys);
/**
*
* A list of AdditionalSearchKey
objects that are each searchable identifiers of a profile. Each
* AdditionalSearchKey
object contains a KeyName
and a list of Values
* associated with that specific key (i.e., a key-value(s) pair). These additional search keys will be used in
* conjunction with the LogicalOperator
and the required KeyName
and
* Values
parameters to search for profiles that satisfy the search criteria.
*
*
* @param additionalSearchKeys
* A list of AdditionalSearchKey
objects that are each searchable identifiers of a profile.
* Each AdditionalSearchKey
object contains a KeyName
and a list of
* Values
associated with that specific key (i.e., a key-value(s) pair). These additional
* search keys will be used in conjunction with the LogicalOperator
and the required
* KeyName
and Values
parameters to search for profiles that satisfy the search
* criteria.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder additionalSearchKeys(AdditionalSearchKey... additionalSearchKeys);
/**
*
* A list of AdditionalSearchKey
objects that are each searchable identifiers of a profile. Each
* AdditionalSearchKey
object contains a KeyName
and a list of Values
* associated with that specific key (i.e., a key-value(s) pair). These additional search keys will be used in
* conjunction with the LogicalOperator
and the required KeyName
and
* Values
parameters to search for profiles that satisfy the search criteria.
*
* This is a convenience method that creates an instance of the
* {@link software.amazon.awssdk.services.customerprofiles.model.AdditionalSearchKey.Builder} avoiding the need
* to create one manually via
* {@link software.amazon.awssdk.services.customerprofiles.model.AdditionalSearchKey#builder()}.
*
*
* When the {@link Consumer} completes,
* {@link software.amazon.awssdk.services.customerprofiles.model.AdditionalSearchKey.Builder#build()} is called
* immediately and its result is passed to {@link #additionalSearchKeys(List)}.
*
* @param additionalSearchKeys
* a consumer that will call methods on
* {@link software.amazon.awssdk.services.customerprofiles.model.AdditionalSearchKey.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #additionalSearchKeys(java.util.Collection)
*/
Builder additionalSearchKeys(Consumer... additionalSearchKeys);
/**
*
* Relationship between all specified search keys that will be used to search for profiles. This includes the
* required KeyName
and Values
parameters as well as any key-value(s) pairs specified
* in the AdditionalSearchKeys
list.
*
*
* This parameter influences which profiles will be returned in the response in the following manner:
*
*
* -
*
* AND
- The response only includes profiles that match all of the search keys.
*
*
* -
*
* OR
- The response includes profiles that match at least one of the search keys.
*
*
*
*
* The OR
relationship is the default behavior if this parameter is not included in the request.
*
*
* @param logicalOperator
* Relationship between all specified search keys that will be used to search for profiles. This includes
* the required KeyName
and Values
parameters as well as any key-value(s) pairs
* specified in the AdditionalSearchKeys
list.
*
* This parameter influences which profiles will be returned in the response in the following manner:
*
*
* -
*
* AND
- The response only includes profiles that match all of the search keys.
*
*
* -
*
* OR
- The response includes profiles that match at least one of the search keys.
*
*
*
*
* The OR
relationship is the default behavior if this parameter is not included in the
* request.
* @see LogicalOperator
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogicalOperator
*/
Builder logicalOperator(String logicalOperator);
/**
*
* Relationship between all specified search keys that will be used to search for profiles. This includes the
* required KeyName
and Values
parameters as well as any key-value(s) pairs specified
* in the AdditionalSearchKeys
list.
*
*
* This parameter influences which profiles will be returned in the response in the following manner:
*
*
* -
*
* AND
- The response only includes profiles that match all of the search keys.
*
*
* -
*
* OR
- The response includes profiles that match at least one of the search keys.
*
*
*
*
* The OR
relationship is the default behavior if this parameter is not included in the request.
*
*
* @param logicalOperator
* Relationship between all specified search keys that will be used to search for profiles. This includes
* the required KeyName
and Values
parameters as well as any key-value(s) pairs
* specified in the AdditionalSearchKeys
list.
*
* This parameter influences which profiles will be returned in the response in the following manner:
*
*
* -
*
* AND
- The response only includes profiles that match all of the search keys.
*
*
* -
*
* OR
- The response includes profiles that match at least one of the search keys.
*
*
*
*
* The OR
relationship is the default behavior if this parameter is not included in the
* request.
* @see LogicalOperator
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogicalOperator
*/
Builder logicalOperator(LogicalOperator logicalOperator);
@Override
Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
@Override
Builder overrideConfiguration(Consumer builderConsumer);
}
static final class BuilderImpl extends CustomerProfilesRequest.BuilderImpl implements Builder {
private String nextToken;
private Integer maxResults;
private String domainName;
private String keyName;
private List values = DefaultSdkAutoConstructList.getInstance();
private List additionalSearchKeys = DefaultSdkAutoConstructList.getInstance();
private String logicalOperator;
private BuilderImpl() {
}
private BuilderImpl(SearchProfilesRequest model) {
super(model);
nextToken(model.nextToken);
maxResults(model.maxResults);
domainName(model.domainName);
keyName(model.keyName);
values(model.values);
additionalSearchKeys(model.additionalSearchKeys);
logicalOperator(model.logicalOperator);
}
public final String getNextToken() {
return nextToken;
}
public final void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
@Override
public final Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
public final Integer getMaxResults() {
return maxResults;
}
public final void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
@Override
public final Builder maxResults(Integer maxResults) {
this.maxResults = maxResults;
return this;
}
public final String getDomainName() {
return domainName;
}
public final void setDomainName(String domainName) {
this.domainName = domainName;
}
@Override
public final Builder domainName(String domainName) {
this.domainName = domainName;
return this;
}
public final String getKeyName() {
return keyName;
}
public final void setKeyName(String keyName) {
this.keyName = keyName;
}
@Override
public final Builder keyName(String keyName) {
this.keyName = keyName;
return this;
}
public final Collection getValues() {
if (values instanceof SdkAutoConstructList) {
return null;
}
return values;
}
public final void setValues(Collection values) {
this.values = _requestValueListCopier.copy(values);
}
@Override
public final Builder values(Collection values) {
this.values = _requestValueListCopier.copy(values);
return this;
}
@Override
@SafeVarargs
public final Builder values(String... values) {
values(Arrays.asList(values));
return this;
}
public final List getAdditionalSearchKeys() {
List result = _additionalSearchKeysListCopier.copyToBuilder(this.additionalSearchKeys);
if (result instanceof SdkAutoConstructList) {
return null;
}
return result;
}
public final void setAdditionalSearchKeys(Collection additionalSearchKeys) {
this.additionalSearchKeys = _additionalSearchKeysListCopier.copyFromBuilder(additionalSearchKeys);
}
@Override
public final Builder additionalSearchKeys(Collection additionalSearchKeys) {
this.additionalSearchKeys = _additionalSearchKeysListCopier.copy(additionalSearchKeys);
return this;
}
@Override
@SafeVarargs
public final Builder additionalSearchKeys(AdditionalSearchKey... additionalSearchKeys) {
additionalSearchKeys(Arrays.asList(additionalSearchKeys));
return this;
}
@Override
@SafeVarargs
public final Builder additionalSearchKeys(Consumer... additionalSearchKeys) {
additionalSearchKeys(Stream.of(additionalSearchKeys).map(c -> AdditionalSearchKey.builder().applyMutation(c).build())
.collect(Collectors.toList()));
return this;
}
public final String getLogicalOperator() {
return logicalOperator;
}
public final void setLogicalOperator(String logicalOperator) {
this.logicalOperator = logicalOperator;
}
@Override
public final Builder logicalOperator(String logicalOperator) {
this.logicalOperator = logicalOperator;
return this;
}
@Override
public final Builder logicalOperator(LogicalOperator logicalOperator) {
this.logicalOperator(logicalOperator == null ? null : logicalOperator.toString());
return this;
}
@Override
public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
super.overrideConfiguration(overrideConfiguration);
return this;
}
@Override
public Builder overrideConfiguration(Consumer builderConsumer) {
super.overrideConfiguration(builderConsumer);
return this;
}
@Override
public SearchProfilesRequest build() {
return new SearchProfilesRequest(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
}
}