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

software.amazon.awssdk.services.machinelearning.model.DescribeDataSourcesRequest Maven / Gradle / Ivy

/*
 * 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.machinelearning.model;

import java.util.Arrays;
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.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.LocationTrait;
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 DescribeDataSourcesRequest extends MachineLearningRequest implements
        ToCopyableBuilder {
    private static final SdkField FILTER_VARIABLE_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("FilterVariable").getter(getter(DescribeDataSourcesRequest::filterVariableAsString))
            .setter(setter(Builder::filterVariable))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("FilterVariable").build()).build();

    private static final SdkField EQ_FIELD = SdkField. builder(MarshallingType.STRING).memberName("EQ")
            .getter(getter(DescribeDataSourcesRequest::eq)).setter(setter(Builder::eq))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EQ").build()).build();

    private static final SdkField GT_FIELD = SdkField. builder(MarshallingType.STRING).memberName("GT")
            .getter(getter(DescribeDataSourcesRequest::gt)).setter(setter(Builder::gt))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GT").build()).build();

    private static final SdkField LT_FIELD = SdkField. builder(MarshallingType.STRING).memberName("LT")
            .getter(getter(DescribeDataSourcesRequest::lt)).setter(setter(Builder::lt))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LT").build()).build();

    private static final SdkField GE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("GE")
            .getter(getter(DescribeDataSourcesRequest::ge)).setter(setter(Builder::ge))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GE").build()).build();

    private static final SdkField LE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("LE")
            .getter(getter(DescribeDataSourcesRequest::le)).setter(setter(Builder::le))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LE").build()).build();

    private static final SdkField NE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("NE")
            .getter(getter(DescribeDataSourcesRequest::ne)).setter(setter(Builder::ne))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NE").build()).build();

    private static final SdkField PREFIX_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Prefix")
            .getter(getter(DescribeDataSourcesRequest::prefix)).setter(setter(Builder::prefix))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Prefix").build()).build();

    private static final SdkField SORT_ORDER_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("SortOrder").getter(getter(DescribeDataSourcesRequest::sortOrderAsString))
            .setter(setter(Builder::sortOrder))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SortOrder").build()).build();

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

    private static final SdkField LIMIT_FIELD = SdkField. builder(MarshallingType.INTEGER).memberName("Limit")
            .getter(getter(DescribeDataSourcesRequest::limit)).setter(setter(Builder::limit))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Limit").build()).build();

    private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(FILTER_VARIABLE_FIELD,
            EQ_FIELD, GT_FIELD, LT_FIELD, GE_FIELD, LE_FIELD, NE_FIELD, PREFIX_FIELD, SORT_ORDER_FIELD, NEXT_TOKEN_FIELD,
            LIMIT_FIELD));

    private final String filterVariable;

    private final String eq;

    private final String gt;

    private final String lt;

    private final String ge;

    private final String le;

    private final String ne;

    private final String prefix;

    private final String sortOrder;

    private final String nextToken;

    private final Integer limit;

    private DescribeDataSourcesRequest(BuilderImpl builder) {
        super(builder);
        this.filterVariable = builder.filterVariable;
        this.eq = builder.eq;
        this.gt = builder.gt;
        this.lt = builder.lt;
        this.ge = builder.ge;
        this.le = builder.le;
        this.ne = builder.ne;
        this.prefix = builder.prefix;
        this.sortOrder = builder.sortOrder;
        this.nextToken = builder.nextToken;
        this.limit = builder.limit;
    }

    /**
     * 

* Use one of the following variables to filter a list of DataSource: *

*
    *
  • *

    * CreatedAt - Sets the search criteria to DataSource creation dates. *

    *
  • *
  • *

    * Status - Sets the search criteria to DataSource statuses. *

    *
  • *
  • *

    * Name - Sets the search criteria to the contents of DataSource Name. *

    *
  • *
  • *

    * DataUri - Sets the search criteria to the URI of data files used to create the * DataSource. The URI can identify either a file or an Amazon Simple Storage Service (Amazon S3) * bucket or directory. *

    *
  • *
  • *

    * IAMUser - Sets the search criteria to the user account that invoked the DataSource * creation. *

    *
  • *
*

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

* * @return Use one of the following variables to filter a list of DataSource:

*
    *
  • *

    * CreatedAt - Sets the search criteria to DataSource creation dates. *

    *
  • *
  • *

    * Status - Sets the search criteria to DataSource statuses. *

    *
  • *
  • *

    * Name - Sets the search criteria to the contents of DataSource Name * . *

    *
  • *
  • *

    * DataUri - Sets the search criteria to the URI of data files used to create the * DataSource. The URI can identify either a file or an Amazon Simple Storage Service (Amazon * S3) bucket or directory. *

    *
  • *
  • *

    * IAMUser - Sets the search criteria to the user account that invoked the * DataSource creation. *

    *
  • * @see DataSourceFilterVariable */ public final DataSourceFilterVariable filterVariable() { return DataSourceFilterVariable.fromValue(filterVariable); } /** *

    * Use one of the following variables to filter a list of DataSource: *

    *
      *
    • *

      * CreatedAt - Sets the search criteria to DataSource creation dates. *

      *
    • *
    • *

      * Status - Sets the search criteria to DataSource statuses. *

      *
    • *
    • *

      * Name - Sets the search criteria to the contents of DataSource Name. *

      *
    • *
    • *

      * DataUri - Sets the search criteria to the URI of data files used to create the * DataSource. The URI can identify either a file or an Amazon Simple Storage Service (Amazon S3) * bucket or directory. *

      *
    • *
    • *

      * IAMUser - Sets the search criteria to the user account that invoked the DataSource * creation. *

      *
    • *
    *

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

    * * @return Use one of the following variables to filter a list of DataSource:

    *
      *
    • *

      * CreatedAt - Sets the search criteria to DataSource creation dates. *

      *
    • *
    • *

      * Status - Sets the search criteria to DataSource statuses. *

      *
    • *
    • *

      * Name - Sets the search criteria to the contents of DataSource Name * . *

      *
    • *
    • *

      * DataUri - Sets the search criteria to the URI of data files used to create the * DataSource. The URI can identify either a file or an Amazon Simple Storage Service (Amazon * S3) bucket or directory. *

      *
    • *
    • *

      * IAMUser - Sets the search criteria to the user account that invoked the * DataSource creation. *

      *
    • * @see DataSourceFilterVariable */ public final String filterVariableAsString() { return filterVariable; } /** *

      * The equal to operator. The DataSource results will have FilterVariable values that * exactly match the value specified with EQ. *

      * * @return The equal to operator. The DataSource results will have FilterVariable values * that exactly match the value specified with EQ. */ public final String eq() { return eq; } /** *

      * The greater than operator. The DataSource results will have FilterVariable values that * are greater than the value specified with GT. *

      * * @return The greater than operator. The DataSource results will have FilterVariable * values that are greater than the value specified with GT. */ public final String gt() { return gt; } /** *

      * The less than operator. The DataSource results will have FilterVariable values that are * less than the value specified with LT. *

      * * @return The less than operator. The DataSource results will have FilterVariable values * that are less than the value specified with LT. */ public final String lt() { return lt; } /** *

      * The greater than or equal to operator. The DataSource results will have FilterVariable * values that are greater than or equal to the value specified with GE. *

      * * @return The greater than or equal to operator. The DataSource results will have * FilterVariable values that are greater than or equal to the value specified with * GE. */ public final String ge() { return ge; } /** *

      * The less than or equal to operator. The DataSource results will have FilterVariable * values that are less than or equal to the value specified with LE. *

      * * @return The less than or equal to operator. The DataSource results will have * FilterVariable values that are less than or equal to the value specified with * LE. */ public final String le() { return le; } /** *

      * The not equal to operator. The DataSource results will have FilterVariable values not * equal to the value specified with NE. *

      * * @return The not equal to operator. The DataSource results will have FilterVariable * values not equal to the value specified with NE. */ public final String ne() { return ne; } /** *

      * A string that is found at the beginning of a variable, such as Name or Id. *

      *

      * For example, a DataSource could have the Name 2014-09-09-HolidayGiftMailer * . To search for this DataSource, select Name for the FilterVariable and * any of the following strings for the Prefix: *

      *
        *
      • *

        * 2014-09 *

        *
      • *
      • *

        * 2014-09-09 *

        *
      • *
      • *

        * 2014-09-09-Holiday *

        *
      • *
      * * @return A string that is found at the beginning of a variable, such as Name or Id.

      *

      * For example, a DataSource could have the Name * 2014-09-09-HolidayGiftMailer. To search for this DataSource, select * Name for the FilterVariable and any of the following strings for the * Prefix: *

      *
        *
      • *

        * 2014-09 *

        *
      • *
      • *

        * 2014-09-09 *

        *
      • *
      • *

        * 2014-09-09-Holiday *

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

        * A two-value parameter that determines the sequence of the resulting list of DataSource. *

        *
          *
        • *

          * asc - Arranges the list in ascending order (A-Z, 0-9). *

          *
        • *
        • *

          * dsc - Arranges the list in descending order (Z-A, 9-0). *

          *
        • *
        *

        * Results are sorted by FilterVariable. *

        *

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

        * * @return A two-value parameter that determines the sequence of the resulting list of DataSource.

        *
          *
        • *

          * asc - Arranges the list in ascending order (A-Z, 0-9). *

          *
        • *
        • *

          * dsc - Arranges the list in descending order (Z-A, 9-0). *

          *
        • *
        *

        * Results are sorted by FilterVariable. * @see SortOrder */ public final SortOrder sortOrder() { return SortOrder.fromValue(sortOrder); } /** *

        * A two-value parameter that determines the sequence of the resulting list of DataSource. *

        *
          *
        • *

          * asc - Arranges the list in ascending order (A-Z, 0-9). *

          *
        • *
        • *

          * dsc - Arranges the list in descending order (Z-A, 9-0). *

          *
        • *
        *

        * Results are sorted by FilterVariable. *

        *

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

        * * @return A two-value parameter that determines the sequence of the resulting list of DataSource.

        *
          *
        • *

          * asc - Arranges the list in ascending order (A-Z, 0-9). *

          *
        • *
        • *

          * dsc - Arranges the list in descending order (Z-A, 9-0). *

          *
        • *
        *

        * Results are sorted by FilterVariable. * @see SortOrder */ public final String sortOrderAsString() { return sortOrder; } /** *

        * The ID of the page in the paginated results. *

        * * @return The ID of the page in the paginated results. */ public final String nextToken() { return nextToken; } /** *

        * The maximum number of DataSource to include in the result. *

        * * @return The maximum number of DataSource to include in the result. */ public final Integer limit() { return limit; } @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(filterVariableAsString()); hashCode = 31 * hashCode + Objects.hashCode(eq()); hashCode = 31 * hashCode + Objects.hashCode(gt()); hashCode = 31 * hashCode + Objects.hashCode(lt()); hashCode = 31 * hashCode + Objects.hashCode(ge()); hashCode = 31 * hashCode + Objects.hashCode(le()); hashCode = 31 * hashCode + Objects.hashCode(ne()); hashCode = 31 * hashCode + Objects.hashCode(prefix()); hashCode = 31 * hashCode + Objects.hashCode(sortOrderAsString()); hashCode = 31 * hashCode + Objects.hashCode(nextToken()); hashCode = 31 * hashCode + Objects.hashCode(limit()); 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 DescribeDataSourcesRequest)) { return false; } DescribeDataSourcesRequest other = (DescribeDataSourcesRequest) obj; return Objects.equals(filterVariableAsString(), other.filterVariableAsString()) && Objects.equals(eq(), other.eq()) && Objects.equals(gt(), other.gt()) && Objects.equals(lt(), other.lt()) && Objects.equals(ge(), other.ge()) && Objects.equals(le(), other.le()) && Objects.equals(ne(), other.ne()) && Objects.equals(prefix(), other.prefix()) && Objects.equals(sortOrderAsString(), other.sortOrderAsString()) && Objects.equals(nextToken(), other.nextToken()) && Objects.equals(limit(), other.limit()); } /** * 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("DescribeDataSourcesRequest").add("FilterVariable", filterVariableAsString()).add("EQ", eq()) .add("GT", gt()).add("LT", lt()).add("GE", ge()).add("LE", le()).add("NE", ne()).add("Prefix", prefix()) .add("SortOrder", sortOrderAsString()).add("NextToken", nextToken()).add("Limit", limit()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "FilterVariable": return Optional.ofNullable(clazz.cast(filterVariableAsString())); case "EQ": return Optional.ofNullable(clazz.cast(eq())); case "GT": return Optional.ofNullable(clazz.cast(gt())); case "LT": return Optional.ofNullable(clazz.cast(lt())); case "GE": return Optional.ofNullable(clazz.cast(ge())); case "LE": return Optional.ofNullable(clazz.cast(le())); case "NE": return Optional.ofNullable(clazz.cast(ne())); case "Prefix": return Optional.ofNullable(clazz.cast(prefix())); case "SortOrder": return Optional.ofNullable(clazz.cast(sortOrderAsString())); case "NextToken": return Optional.ofNullable(clazz.cast(nextToken())); case "Limit": return Optional.ofNullable(clazz.cast(limit())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((DescribeDataSourcesRequest) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends MachineLearningRequest.Builder, SdkPojo, CopyableBuilder { /** *

        * Use one of the following variables to filter a list of DataSource: *

        *
          *
        • *

          * CreatedAt - Sets the search criteria to DataSource creation dates. *

          *
        • *
        • *

          * Status - Sets the search criteria to DataSource statuses. *

          *
        • *
        • *

          * Name - Sets the search criteria to the contents of DataSource Name. *

          *
        • *
        • *

          * DataUri - Sets the search criteria to the URI of data files used to create the * DataSource. The URI can identify either a file or an Amazon Simple Storage Service (Amazon S3) * bucket or directory. *

          *
        • *
        • *

          * IAMUser - Sets the search criteria to the user account that invoked the DataSource * creation. *

          *
        • *
        * * @param filterVariable * Use one of the following variables to filter a list of DataSource:

        *
          *
        • *

          * CreatedAt - Sets the search criteria to DataSource creation dates. *

          *
        • *
        • *

          * Status - Sets the search criteria to DataSource statuses. *

          *
        • *
        • *

          * Name - Sets the search criteria to the contents of DataSource * Name. *

          *
        • *
        • *

          * DataUri - Sets the search criteria to the URI of data files used to create the * DataSource. The URI can identify either a file or an Amazon Simple Storage Service * (Amazon S3) bucket or directory. *

          *
        • *
        • *

          * IAMUser - Sets the search criteria to the user account that invoked the * DataSource creation. *

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

          * Use one of the following variables to filter a list of DataSource: *

          *
            *
          • *

            * CreatedAt - Sets the search criteria to DataSource creation dates. *

            *
          • *
          • *

            * Status - Sets the search criteria to DataSource statuses. *

            *
          • *
          • *

            * Name - Sets the search criteria to the contents of DataSource Name. *

            *
          • *
          • *

            * DataUri - Sets the search criteria to the URI of data files used to create the * DataSource. The URI can identify either a file or an Amazon Simple Storage Service (Amazon S3) * bucket or directory. *

            *
          • *
          • *

            * IAMUser - Sets the search criteria to the user account that invoked the DataSource * creation. *

            *
          • *
          * * @param filterVariable * Use one of the following variables to filter a list of DataSource:

          *
            *
          • *

            * CreatedAt - Sets the search criteria to DataSource creation dates. *

            *
          • *
          • *

            * Status - Sets the search criteria to DataSource statuses. *

            *
          • *
          • *

            * Name - Sets the search criteria to the contents of DataSource * Name. *

            *
          • *
          • *

            * DataUri - Sets the search criteria to the URI of data files used to create the * DataSource. The URI can identify either a file or an Amazon Simple Storage Service * (Amazon S3) bucket or directory. *

            *
          • *
          • *

            * IAMUser - Sets the search criteria to the user account that invoked the * DataSource creation. *

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

            * The equal to operator. The DataSource results will have FilterVariable values that * exactly match the value specified with EQ. *

            * * @param eq * The equal to operator. The DataSource results will have FilterVariable * values that exactly match the value specified with EQ. * @return Returns a reference to this object so that method calls can be chained together. */ Builder eq(String eq); /** *

            * The greater than operator. The DataSource results will have FilterVariable values * that are greater than the value specified with GT. *

            * * @param gt * The greater than operator. The DataSource results will have FilterVariable * values that are greater than the value specified with GT. * @return Returns a reference to this object so that method calls can be chained together. */ Builder gt(String gt); /** *

            * The less than operator. The DataSource results will have FilterVariable values that * are less than the value specified with LT. *

            * * @param lt * The less than operator. The DataSource results will have FilterVariable * values that are less than the value specified with LT. * @return Returns a reference to this object so that method calls can be chained together. */ Builder lt(String lt); /** *

            * The greater than or equal to operator. The DataSource results will have * FilterVariable values that are greater than or equal to the value specified with GE * . *

            * * @param ge * The greater than or equal to operator. The DataSource results will have * FilterVariable values that are greater than or equal to the value specified with * GE. * @return Returns a reference to this object so that method calls can be chained together. */ Builder ge(String ge); /** *

            * The less than or equal to operator. The DataSource results will have FilterVariable * values that are less than or equal to the value specified with LE. *

            * * @param le * The less than or equal to operator. The DataSource results will have * FilterVariable values that are less than or equal to the value specified with * LE. * @return Returns a reference to this object so that method calls can be chained together. */ Builder le(String le); /** *

            * The not equal to operator. The DataSource results will have FilterVariable values * not equal to the value specified with NE. *

            * * @param ne * The not equal to operator. The DataSource results will have FilterVariable * values not equal to the value specified with NE. * @return Returns a reference to this object so that method calls can be chained together. */ Builder ne(String ne); /** *

            * A string that is found at the beginning of a variable, such as Name or Id. *

            *

            * For example, a DataSource could have the Name * 2014-09-09-HolidayGiftMailer. To search for this DataSource, select * Name for the FilterVariable and any of the following strings for the * Prefix: *

            *
              *
            • *

              * 2014-09 *

              *
            • *
            • *

              * 2014-09-09 *

              *
            • *
            • *

              * 2014-09-09-Holiday *

              *
            • *
            * * @param prefix * A string that is found at the beginning of a variable, such as Name or Id * .

            *

            * For example, a DataSource could have the Name * 2014-09-09-HolidayGiftMailer. To search for this DataSource, select * Name for the FilterVariable and any of the following strings for the * Prefix: *

            *
              *
            • *

              * 2014-09 *

              *
            • *
            • *

              * 2014-09-09 *

              *
            • *
            • *

              * 2014-09-09-Holiday *

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

              * A two-value parameter that determines the sequence of the resulting list of DataSource. *

              *
                *
              • *

                * asc - Arranges the list in ascending order (A-Z, 0-9). *

                *
              • *
              • *

                * dsc - Arranges the list in descending order (Z-A, 9-0). *

                *
              • *
              *

              * Results are sorted by FilterVariable. *

              * * @param sortOrder * A two-value parameter that determines the sequence of the resulting list of DataSource * .

              *
                *
              • *

                * asc - Arranges the list in ascending order (A-Z, 0-9). *

                *
              • *
              • *

                * dsc - Arranges the list in descending order (Z-A, 9-0). *

                *
              • *
              *

              * Results are sorted by FilterVariable. * @see SortOrder * @return Returns a reference to this object so that method calls can be chained together. * @see SortOrder */ Builder sortOrder(String sortOrder); /** *

              * A two-value parameter that determines the sequence of the resulting list of DataSource. *

              *
                *
              • *

                * asc - Arranges the list in ascending order (A-Z, 0-9). *

                *
              • *
              • *

                * dsc - Arranges the list in descending order (Z-A, 9-0). *

                *
              • *
              *

              * Results are sorted by FilterVariable. *

              * * @param sortOrder * A two-value parameter that determines the sequence of the resulting list of DataSource * .

              *
                *
              • *

                * asc - Arranges the list in ascending order (A-Z, 0-9). *

                *
              • *
              • *

                * dsc - Arranges the list in descending order (Z-A, 9-0). *

                *
              • *
              *

              * Results are sorted by FilterVariable. * @see SortOrder * @return Returns a reference to this object so that method calls can be chained together. * @see SortOrder */ Builder sortOrder(SortOrder sortOrder); /** *

              * The ID of the page in the paginated results. *

              * * @param nextToken * The ID of the page in the paginated results. * @return Returns a reference to this object so that method calls can be chained together. */ Builder nextToken(String nextToken); /** *

              * The maximum number of DataSource to include in the result. *

              * * @param limit * The maximum number of DataSource to include in the result. * @return Returns a reference to this object so that method calls can be chained together. */ Builder limit(Integer limit); @Override Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration); @Override Builder overrideConfiguration(Consumer builderConsumer); } static final class BuilderImpl extends MachineLearningRequest.BuilderImpl implements Builder { private String filterVariable; private String eq; private String gt; private String lt; private String ge; private String le; private String ne; private String prefix; private String sortOrder; private String nextToken; private Integer limit; private BuilderImpl() { } private BuilderImpl(DescribeDataSourcesRequest model) { super(model); filterVariable(model.filterVariable); eq(model.eq); gt(model.gt); lt(model.lt); ge(model.ge); le(model.le); ne(model.ne); prefix(model.prefix); sortOrder(model.sortOrder); nextToken(model.nextToken); limit(model.limit); } public final String getFilterVariable() { return filterVariable; } public final void setFilterVariable(String filterVariable) { this.filterVariable = filterVariable; } @Override public final Builder filterVariable(String filterVariable) { this.filterVariable = filterVariable; return this; } @Override public final Builder filterVariable(DataSourceFilterVariable filterVariable) { this.filterVariable(filterVariable == null ? null : filterVariable.toString()); return this; } public final String getEq() { return eq; } public final void setEq(String eq) { this.eq = eq; } @Override public final Builder eq(String eq) { this.eq = eq; return this; } public final String getGt() { return gt; } public final void setGt(String gt) { this.gt = gt; } @Override public final Builder gt(String gt) { this.gt = gt; return this; } public final String getLt() { return lt; } public final void setLt(String lt) { this.lt = lt; } @Override public final Builder lt(String lt) { this.lt = lt; return this; } public final String getGe() { return ge; } public final void setGe(String ge) { this.ge = ge; } @Override public final Builder ge(String ge) { this.ge = ge; return this; } public final String getLe() { return le; } public final void setLe(String le) { this.le = le; } @Override public final Builder le(String le) { this.le = le; return this; } public final String getNe() { return ne; } public final void setNe(String ne) { this.ne = ne; } @Override public final Builder ne(String ne) { this.ne = ne; return this; } public final String getPrefix() { return prefix; } public final void setPrefix(String prefix) { this.prefix = prefix; } @Override public final Builder prefix(String prefix) { this.prefix = prefix; return this; } public final String getSortOrder() { return sortOrder; } public final void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; } @Override public final Builder sortOrder(String sortOrder) { this.sortOrder = sortOrder; return this; } @Override public final Builder sortOrder(SortOrder sortOrder) { this.sortOrder(sortOrder == null ? null : sortOrder.toString()); 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 Integer getLimit() { return limit; } public final void setLimit(Integer limit) { this.limit = limit; } @Override public final Builder limit(Integer limit) { this.limit = limit; 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 DescribeDataSourcesRequest build() { return new DescribeDataSourcesRequest(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy