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

software.amazon.awssdk.services.glue.model.SearchTablesRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Glue module holds the client classes that are used for communicating with AWS Glue Service

There is a newer version: 2.29.39
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.glue.model;

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.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 SearchTablesRequest extends GlueRequest implements
        ToCopyableBuilder {
    private static final SdkField CATALOG_ID_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("CatalogId").getter(getter(SearchTablesRequest::catalogId)).setter(setter(Builder::catalogId))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CatalogId").build()).build();

    private static final SdkField NEXT_TOKEN_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("NextToken").getter(getter(SearchTablesRequest::nextToken)).setter(setter(Builder::nextToken))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NextToken").build()).build();

    private static final SdkField> FILTERS_FIELD = SdkField
            .> builder(MarshallingType.LIST)
            .memberName("Filters")
            .getter(getter(SearchTablesRequest::filters))
            .setter(setter(Builder::filters))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Filters").build(),
                    ListTrait
                            .builder()
                            .memberLocationName(null)
                            .memberFieldInfo(
                                    SdkField. builder(MarshallingType.SDK_POJO)
                                            .constructor(PropertyPredicate::builder)
                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
                                                    .locationName("member").build()).build()).build()).build();

    private static final SdkField SEARCH_TEXT_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("SearchText").getter(getter(SearchTablesRequest::searchText)).setter(setter(Builder::searchText))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SearchText").build()).build();

    private static final SdkField> SORT_CRITERIA_FIELD = SdkField
            .> builder(MarshallingType.LIST)
            .memberName("SortCriteria")
            .getter(getter(SearchTablesRequest::sortCriteria))
            .setter(setter(Builder::sortCriteria))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SortCriteria").build(),
                    ListTrait
                            .builder()
                            .memberLocationName(null)
                            .memberFieldInfo(
                                    SdkField. builder(MarshallingType.SDK_POJO)
                                            .constructor(SortCriterion::builder)
                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
                                                    .locationName("member").build()).build()).build()).build();

    private static final SdkField MAX_RESULTS_FIELD = SdkField. builder(MarshallingType.INTEGER)
            .memberName("MaxResults").getter(getter(SearchTablesRequest::maxResults)).setter(setter(Builder::maxResults))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MaxResults").build()).build();

    private static final SdkField RESOURCE_SHARE_TYPE_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("ResourceShareType").getter(getter(SearchTablesRequest::resourceShareTypeAsString))
            .setter(setter(Builder::resourceShareType))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ResourceShareType").build()).build();

    private static final SdkField INCLUDE_STATUS_DETAILS_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
            .memberName("IncludeStatusDetails").getter(getter(SearchTablesRequest::includeStatusDetails))
            .setter(setter(Builder::includeStatusDetails))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("IncludeStatusDetails").build())
            .build();

    private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CATALOG_ID_FIELD,
            NEXT_TOKEN_FIELD, FILTERS_FIELD, SEARCH_TEXT_FIELD, SORT_CRITERIA_FIELD, MAX_RESULTS_FIELD,
            RESOURCE_SHARE_TYPE_FIELD, INCLUDE_STATUS_DETAILS_FIELD));

    private static final Map> SDK_NAME_TO_FIELD = Collections
            .unmodifiableMap(new HashMap>() {
                {
                    put("CatalogId", CATALOG_ID_FIELD);
                    put("NextToken", NEXT_TOKEN_FIELD);
                    put("Filters", FILTERS_FIELD);
                    put("SearchText", SEARCH_TEXT_FIELD);
                    put("SortCriteria", SORT_CRITERIA_FIELD);
                    put("MaxResults", MAX_RESULTS_FIELD);
                    put("ResourceShareType", RESOURCE_SHARE_TYPE_FIELD);
                    put("IncludeStatusDetails", INCLUDE_STATUS_DETAILS_FIELD);
                }
            });

    private final String catalogId;

    private final String nextToken;

    private final List filters;

    private final String searchText;

    private final List sortCriteria;

    private final Integer maxResults;

    private final String resourceShareType;

    private final Boolean includeStatusDetails;

    private SearchTablesRequest(BuilderImpl builder) {
        super(builder);
        this.catalogId = builder.catalogId;
        this.nextToken = builder.nextToken;
        this.filters = builder.filters;
        this.searchText = builder.searchText;
        this.sortCriteria = builder.sortCriteria;
        this.maxResults = builder.maxResults;
        this.resourceShareType = builder.resourceShareType;
        this.includeStatusDetails = builder.includeStatusDetails;
    }

    /**
     * 

* A unique identifier, consisting of account_id . *

* * @return A unique identifier, consisting of account_id . */ public final String catalogId() { return catalogId; } /** *

* A continuation token, included if this is a continuation call. *

* * @return A continuation token, included if this is a continuation call. */ public final String nextToken() { return nextToken; } /** * For responses, this returns true if the service returned a value for the Filters 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 hasFilters() { return filters != null && !(filters instanceof SdkAutoConstructList); } /** *

* A list of key-value pairs, and a comparator used to filter the search results. Returns all entities matching the * predicate. *

*

* The Comparator member of the PropertyPredicate struct is used only for time fields, and * can be omitted for other field types. Also, when comparing string values, such as when Key=Name, a * fuzzy match algorithm is used. The Key field (for example, the value of the Name field) * is split on certain punctuation characters, for example, -, :, #, etc. into tokens. Then each token is * exact-match compared with the Value member of PropertyPredicate. For example, if * Key=Name and Value=link, tables named customer-link and * xx-link-yy are returned, but xxlinkyy is not returned. *

*

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

* * @return A list of key-value pairs, and a comparator used to filter the search results. Returns all entities * matching the predicate.

*

* The Comparator member of the PropertyPredicate struct is used only for time * fields, and can be omitted for other field types. Also, when comparing string values, such as when * Key=Name, a fuzzy match algorithm is used. The Key field (for example, the * value of the Name field) is split on certain punctuation characters, for example, -, :, #, * etc. into tokens. Then each token is exact-match compared with the Value member of * PropertyPredicate. For example, if Key=Name and Value=link, tables * named customer-link and xx-link-yy are returned, but xxlinkyy is * not returned. */ public final List filters() { return filters; } /** *

* A string used for a text search. *

*

* Specifying a value in quotes filters based on an exact match to the value. *

* * @return A string used for a text search.

*

* Specifying a value in quotes filters based on an exact match to the value. */ public final String searchText() { return searchText; } /** * For responses, this returns true if the service returned a value for the SortCriteria 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 hasSortCriteria() { return sortCriteria != null && !(sortCriteria instanceof SdkAutoConstructList); } /** *

* A list of criteria for sorting the results by a field name, in an ascending or descending order. *

*

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

* * @return A list of criteria for sorting the results by a field name, in an ascending or descending order. */ public final List sortCriteria() { return sortCriteria; } /** *

* The maximum number of tables to return in a single response. *

* * @return The maximum number of tables to return in a single response. */ public final Integer maxResults() { return maxResults; } /** *

* Allows you to specify that you want to search the tables shared with your account. The allowable values are * FOREIGN or ALL. *

*
    *
  • *

    * If set to FOREIGN, will search the tables shared with your account. *

    *
  • *
  • *

    * If set to ALL, will search the tables shared with your account, as well as the tables in yor local * account. *

    *
  • *
*

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

* * @return Allows you to specify that you want to search the tables shared with your account. The allowable values * are FOREIGN or ALL.

*
    *
  • *

    * If set to FOREIGN, will search the tables shared with your account. *

    *
  • *
  • *

    * If set to ALL, will search the tables shared with your account, as well as the tables in yor * local account. *

    *
  • * @see ResourceShareType */ public final ResourceShareType resourceShareType() { return ResourceShareType.fromValue(resourceShareType); } /** *

    * Allows you to specify that you want to search the tables shared with your account. The allowable values are * FOREIGN or ALL. *

    *
      *
    • *

      * If set to FOREIGN, will search the tables shared with your account. *

      *
    • *
    • *

      * If set to ALL, will search the tables shared with your account, as well as the tables in yor local * account. *

      *
    • *
    *

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

    * * @return Allows you to specify that you want to search the tables shared with your account. The allowable values * are FOREIGN or ALL.

    *
      *
    • *

      * If set to FOREIGN, will search the tables shared with your account. *

      *
    • *
    • *

      * If set to ALL, will search the tables shared with your account, as well as the tables in yor * local account. *

      *
    • * @see ResourceShareType */ public final String resourceShareTypeAsString() { return resourceShareType; } /** *

      * Specifies whether to include status details related to a request to create or update an Glue Data Catalog view. *

      * * @return Specifies whether to include status details related to a request to create or update an Glue Data Catalog * view. */ public final Boolean includeStatusDetails() { return includeStatusDetails; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + super.hashCode(); hashCode = 31 * hashCode + Objects.hashCode(catalogId()); hashCode = 31 * hashCode + Objects.hashCode(nextToken()); hashCode = 31 * hashCode + Objects.hashCode(hasFilters() ? filters() : null); hashCode = 31 * hashCode + Objects.hashCode(searchText()); hashCode = 31 * hashCode + Objects.hashCode(hasSortCriteria() ? sortCriteria() : null); hashCode = 31 * hashCode + Objects.hashCode(maxResults()); hashCode = 31 * hashCode + Objects.hashCode(resourceShareTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(includeStatusDetails()); 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 SearchTablesRequest)) { return false; } SearchTablesRequest other = (SearchTablesRequest) obj; return Objects.equals(catalogId(), other.catalogId()) && Objects.equals(nextToken(), other.nextToken()) && hasFilters() == other.hasFilters() && Objects.equals(filters(), other.filters()) && Objects.equals(searchText(), other.searchText()) && hasSortCriteria() == other.hasSortCriteria() && Objects.equals(sortCriteria(), other.sortCriteria()) && Objects.equals(maxResults(), other.maxResults()) && Objects.equals(resourceShareTypeAsString(), other.resourceShareTypeAsString()) && Objects.equals(includeStatusDetails(), other.includeStatusDetails()); } /** * 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("SearchTablesRequest").add("CatalogId", catalogId()).add("NextToken", nextToken()) .add("Filters", hasFilters() ? filters() : null).add("SearchText", searchText()) .add("SortCriteria", hasSortCriteria() ? sortCriteria() : null).add("MaxResults", maxResults()) .add("ResourceShareType", resourceShareTypeAsString()).add("IncludeStatusDetails", includeStatusDetails()) .build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "CatalogId": return Optional.ofNullable(clazz.cast(catalogId())); case "NextToken": return Optional.ofNullable(clazz.cast(nextToken())); case "Filters": return Optional.ofNullable(clazz.cast(filters())); case "SearchText": return Optional.ofNullable(clazz.cast(searchText())); case "SortCriteria": return Optional.ofNullable(clazz.cast(sortCriteria())); case "MaxResults": return Optional.ofNullable(clazz.cast(maxResults())); case "ResourceShareType": return Optional.ofNullable(clazz.cast(resourceShareTypeAsString())); case "IncludeStatusDetails": return Optional.ofNullable(clazz.cast(includeStatusDetails())); 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((SearchTablesRequest) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends GlueRequest.Builder, SdkPojo, CopyableBuilder { /** *

      * A unique identifier, consisting of account_id . *

      * * @param catalogId * A unique identifier, consisting of account_id . * @return Returns a reference to this object so that method calls can be chained together. */ Builder catalogId(String catalogId); /** *

      * A continuation token, included if this is a continuation call. *

      * * @param nextToken * A continuation token, included if this is a continuation call. * @return Returns a reference to this object so that method calls can be chained together. */ Builder nextToken(String nextToken); /** *

      * A list of key-value pairs, and a comparator used to filter the search results. Returns all entities matching * the predicate. *

      *

      * The Comparator member of the PropertyPredicate struct is used only for time fields, * and can be omitted for other field types. Also, when comparing string values, such as when * Key=Name, a fuzzy match algorithm is used. The Key field (for example, the value of * the Name field) is split on certain punctuation characters, for example, -, :, #, etc. into * tokens. Then each token is exact-match compared with the Value member of * PropertyPredicate. For example, if Key=Name and Value=link, tables * named customer-link and xx-link-yy are returned, but xxlinkyy is not * returned. *

      * * @param filters * A list of key-value pairs, and a comparator used to filter the search results. Returns all entities * matching the predicate.

      *

      * The Comparator member of the PropertyPredicate struct is used only for time * fields, and can be omitted for other field types. Also, when comparing string values, such as when * Key=Name, a fuzzy match algorithm is used. The Key field (for example, the * value of the Name field) is split on certain punctuation characters, for example, -, :, * #, etc. into tokens. Then each token is exact-match compared with the Value member of * PropertyPredicate. For example, if Key=Name and Value=link, * tables named customer-link and xx-link-yy are returned, but * xxlinkyy is not returned. * @return Returns a reference to this object so that method calls can be chained together. */ Builder filters(Collection filters); /** *

      * A list of key-value pairs, and a comparator used to filter the search results. Returns all entities matching * the predicate. *

      *

      * The Comparator member of the PropertyPredicate struct is used only for time fields, * and can be omitted for other field types. Also, when comparing string values, such as when * Key=Name, a fuzzy match algorithm is used. The Key field (for example, the value of * the Name field) is split on certain punctuation characters, for example, -, :, #, etc. into * tokens. Then each token is exact-match compared with the Value member of * PropertyPredicate. For example, if Key=Name and Value=link, tables * named customer-link and xx-link-yy are returned, but xxlinkyy is not * returned. *

      * * @param filters * A list of key-value pairs, and a comparator used to filter the search results. Returns all entities * matching the predicate.

      *

      * The Comparator member of the PropertyPredicate struct is used only for time * fields, and can be omitted for other field types. Also, when comparing string values, such as when * Key=Name, a fuzzy match algorithm is used. The Key field (for example, the * value of the Name field) is split on certain punctuation characters, for example, -, :, * #, etc. into tokens. Then each token is exact-match compared with the Value member of * PropertyPredicate. For example, if Key=Name and Value=link, * tables named customer-link and xx-link-yy are returned, but * xxlinkyy is not returned. * @return Returns a reference to this object so that method calls can be chained together. */ Builder filters(PropertyPredicate... filters); /** *

      * A list of key-value pairs, and a comparator used to filter the search results. Returns all entities matching * the predicate. *

      *

      * The Comparator member of the PropertyPredicate struct is used only for time fields, * and can be omitted for other field types. Also, when comparing string values, such as when * Key=Name, a fuzzy match algorithm is used. The Key field (for example, the value of * the Name field) is split on certain punctuation characters, for example, -, :, #, etc. into * tokens. Then each token is exact-match compared with the Value member of * PropertyPredicate. For example, if Key=Name and Value=link, tables * named customer-link and xx-link-yy are returned, but xxlinkyy is not * returned. *

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

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

      * A string used for a text search. *

      *

      * Specifying a value in quotes filters based on an exact match to the value. *

      * * @param searchText * A string used for a text search.

      *

      * Specifying a value in quotes filters based on an exact match to the value. * @return Returns a reference to this object so that method calls can be chained together. */ Builder searchText(String searchText); /** *

      * A list of criteria for sorting the results by a field name, in an ascending or descending order. *

      * * @param sortCriteria * A list of criteria for sorting the results by a field name, in an ascending or descending order. * @return Returns a reference to this object so that method calls can be chained together. */ Builder sortCriteria(Collection sortCriteria); /** *

      * A list of criteria for sorting the results by a field name, in an ascending or descending order. *

      * * @param sortCriteria * A list of criteria for sorting the results by a field name, in an ascending or descending order. * @return Returns a reference to this object so that method calls can be chained together. */ Builder sortCriteria(SortCriterion... sortCriteria); /** *

      * A list of criteria for sorting the results by a field name, in an ascending or descending order. *

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

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

      * The maximum number of tables to return in a single response. *

      * * @param maxResults * The maximum number of tables to return in a single response. * @return Returns a reference to this object so that method calls can be chained together. */ Builder maxResults(Integer maxResults); /** *

      * Allows you to specify that you want to search the tables shared with your account. The allowable values are * FOREIGN or ALL. *

      *
        *
      • *

        * If set to FOREIGN, will search the tables shared with your account. *

        *
      • *
      • *

        * If set to ALL, will search the tables shared with your account, as well as the tables in yor * local account. *

        *
      • *
      * * @param resourceShareType * Allows you to specify that you want to search the tables shared with your account. The allowable * values are FOREIGN or ALL.

      *
        *
      • *

        * If set to FOREIGN, will search the tables shared with your account. *

        *
      • *
      • *

        * If set to ALL, will search the tables shared with your account, as well as the tables in * yor local account. *

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

        * Allows you to specify that you want to search the tables shared with your account. The allowable values are * FOREIGN or ALL. *

        *
          *
        • *

          * If set to FOREIGN, will search the tables shared with your account. *

          *
        • *
        • *

          * If set to ALL, will search the tables shared with your account, as well as the tables in yor * local account. *

          *
        • *
        * * @param resourceShareType * Allows you to specify that you want to search the tables shared with your account. The allowable * values are FOREIGN or ALL.

        *
          *
        • *

          * If set to FOREIGN, will search the tables shared with your account. *

          *
        • *
        • *

          * If set to ALL, will search the tables shared with your account, as well as the tables in * yor local account. *

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

          * Specifies whether to include status details related to a request to create or update an Glue Data Catalog * view. *

          * * @param includeStatusDetails * Specifies whether to include status details related to a request to create or update an Glue Data * Catalog view. * @return Returns a reference to this object so that method calls can be chained together. */ Builder includeStatusDetails(Boolean includeStatusDetails); @Override Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration); @Override Builder overrideConfiguration(Consumer builderConsumer); } static final class BuilderImpl extends GlueRequest.BuilderImpl implements Builder { private String catalogId; private String nextToken; private List filters = DefaultSdkAutoConstructList.getInstance(); private String searchText; private List sortCriteria = DefaultSdkAutoConstructList.getInstance(); private Integer maxResults; private String resourceShareType; private Boolean includeStatusDetails; private BuilderImpl() { } private BuilderImpl(SearchTablesRequest model) { super(model); catalogId(model.catalogId); nextToken(model.nextToken); filters(model.filters); searchText(model.searchText); sortCriteria(model.sortCriteria); maxResults(model.maxResults); resourceShareType(model.resourceShareType); includeStatusDetails(model.includeStatusDetails); } public final String getCatalogId() { return catalogId; } public final void setCatalogId(String catalogId) { this.catalogId = catalogId; } @Override public final Builder catalogId(String catalogId) { this.catalogId = catalogId; return this; } 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 List getFilters() { List result = SearchPropertyPredicatesCopier.copyToBuilder(this.filters); if (result instanceof SdkAutoConstructList) { return null; } return result; } public final void setFilters(Collection filters) { this.filters = SearchPropertyPredicatesCopier.copyFromBuilder(filters); } @Override public final Builder filters(Collection filters) { this.filters = SearchPropertyPredicatesCopier.copy(filters); return this; } @Override @SafeVarargs public final Builder filters(PropertyPredicate... filters) { filters(Arrays.asList(filters)); return this; } @Override @SafeVarargs public final Builder filters(Consumer... filters) { filters(Stream.of(filters).map(c -> PropertyPredicate.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; } public final String getSearchText() { return searchText; } public final void setSearchText(String searchText) { this.searchText = searchText; } @Override public final Builder searchText(String searchText) { this.searchText = searchText; return this; } public final List getSortCriteria() { List result = SortCriteriaCopier.copyToBuilder(this.sortCriteria); if (result instanceof SdkAutoConstructList) { return null; } return result; } public final void setSortCriteria(Collection sortCriteria) { this.sortCriteria = SortCriteriaCopier.copyFromBuilder(sortCriteria); } @Override public final Builder sortCriteria(Collection sortCriteria) { this.sortCriteria = SortCriteriaCopier.copy(sortCriteria); return this; } @Override @SafeVarargs public final Builder sortCriteria(SortCriterion... sortCriteria) { sortCriteria(Arrays.asList(sortCriteria)); return this; } @Override @SafeVarargs public final Builder sortCriteria(Consumer... sortCriteria) { sortCriteria(Stream.of(sortCriteria).map(c -> SortCriterion.builder().applyMutation(c).build()) .collect(Collectors.toList())); 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 getResourceShareType() { return resourceShareType; } public final void setResourceShareType(String resourceShareType) { this.resourceShareType = resourceShareType; } @Override public final Builder resourceShareType(String resourceShareType) { this.resourceShareType = resourceShareType; return this; } @Override public final Builder resourceShareType(ResourceShareType resourceShareType) { this.resourceShareType(resourceShareType == null ? null : resourceShareType.toString()); return this; } public final Boolean getIncludeStatusDetails() { return includeStatusDetails; } public final void setIncludeStatusDetails(Boolean includeStatusDetails) { this.includeStatusDetails = includeStatusDetails; } @Override public final Builder includeStatusDetails(Boolean includeStatusDetails) { this.includeStatusDetails = includeStatusDetails; 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 SearchTablesRequest build() { return new SearchTablesRequest(this); } @Override public List> sdkFields() { return SDK_FIELDS; } @Override public Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy