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

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

/*
 * Copyright 2014-2019 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 DescribeEvaluationsRequest extends MachineLearningRequest implements
        ToCopyableBuilder {
    private static final SdkField FILTER_VARIABLE_FIELD = SdkField. builder(MarshallingType.STRING)
            .getter(getter(DescribeEvaluationsRequest::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)
            .getter(getter(DescribeEvaluationsRequest::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)
            .getter(getter(DescribeEvaluationsRequest::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)
            .getter(getter(DescribeEvaluationsRequest::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)
            .getter(getter(DescribeEvaluationsRequest::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)
            .getter(getter(DescribeEvaluationsRequest::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)
            .getter(getter(DescribeEvaluationsRequest::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)
            .getter(getter(DescribeEvaluationsRequest::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)
            .getter(getter(DescribeEvaluationsRequest::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)
            .getter(getter(DescribeEvaluationsRequest::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)
            .getter(getter(DescribeEvaluationsRequest::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 DescribeEvaluationsRequest(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 variable to filter a list of Evaluation objects: *

*
    *
  • CreatedAt - Sets the search criteria to the Evaluation creation date.
  • *
  • Status - Sets the search criteria to the Evaluation status.
  • *
  • Name - Sets the search criteria to the contents of Evaluation * Name.
  • *
  • IAMUser - Sets the search criteria to the user account that invoked an Evaluation.
  • *
  • MLModelId - Sets the search criteria to the MLModel that was evaluated.
  • *
  • DataSourceId - Sets the search criteria to the DataSource used in * Evaluation.
  • *
  • DataUri - Sets the search criteria to the data file(s) used in Evaluation. The URL * can identify either a file or an Amazon Simple Storage Solution (Amazon S3) bucket or directory.
  • *
*

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

* * @return Use one of the following variable to filter a list of Evaluation objects:

*
    *
  • CreatedAt - Sets the search criteria to the Evaluation creation date.
  • *
  • Status - Sets the search criteria to the Evaluation status.
  • *
  • Name - Sets the search criteria to the contents of Evaluation * Name.
  • *
  • IAMUser - Sets the search criteria to the user account that invoked an * Evaluation.
  • *
  • MLModelId - Sets the search criteria to the MLModel that was evaluated.
  • *
  • DataSourceId - Sets the search criteria to the DataSource used in * Evaluation.
  • *
  • DataUri - Sets the search criteria to the data file(s) used in Evaluation. * The URL can identify either a file or an Amazon Simple Storage Solution (Amazon S3) bucket or directory.
  • * @see EvaluationFilterVariable */ public EvaluationFilterVariable filterVariable() { return EvaluationFilterVariable.fromValue(filterVariable); } /** *

    * Use one of the following variable to filter a list of Evaluation objects: *

    *
      *
    • CreatedAt - Sets the search criteria to the Evaluation creation date.
    • *
    • Status - Sets the search criteria to the Evaluation status.
    • *
    • Name - Sets the search criteria to the contents of Evaluation * Name.
    • *
    • IAMUser - Sets the search criteria to the user account that invoked an Evaluation.
    • *
    • MLModelId - Sets the search criteria to the MLModel that was evaluated.
    • *
    • DataSourceId - Sets the search criteria to the DataSource used in * Evaluation.
    • *
    • DataUri - Sets the search criteria to the data file(s) used in Evaluation. The URL * can identify either a file or an Amazon Simple Storage Solution (Amazon S3) bucket or directory.
    • *
    *

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

    * * @return Use one of the following variable to filter a list of Evaluation objects:

    *
      *
    • CreatedAt - Sets the search criteria to the Evaluation creation date.
    • *
    • Status - Sets the search criteria to the Evaluation status.
    • *
    • Name - Sets the search criteria to the contents of Evaluation * Name.
    • *
    • IAMUser - Sets the search criteria to the user account that invoked an * Evaluation.
    • *
    • MLModelId - Sets the search criteria to the MLModel that was evaluated.
    • *
    • DataSourceId - Sets the search criteria to the DataSource used in * Evaluation.
    • *
    • DataUri - Sets the search criteria to the data file(s) used in Evaluation. * The URL can identify either a file or an Amazon Simple Storage Solution (Amazon S3) bucket or directory.
    • * @see EvaluationFilterVariable */ public String filterVariableAsString() { return filterVariable; } /** *

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

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

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

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

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

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

      * The greater than or equal to operator. The Evaluation 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 Evaluation results will have * FilterVariable values that are greater than or equal to the value specified with * GE. */ public String ge() { return ge; } /** *

      * The less than or equal to operator. The Evaluation 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 Evaluation results will have * FilterVariable values that are less than or equal to the value specified with * LE. */ public String le() { return le; } /** *

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

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

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

      *

      * For example, an Evaluation could have the Name * 2014-09-09-HolidayGiftMailer. To search for this Evaluation, 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, an Evaluation could have the Name * 2014-09-09-HolidayGiftMailer. To search for this Evaluation, select * Name for the FilterVariable and any of the following strings for the * Prefix: *

      *
        *
      • *

        * 2014-09 *

        *
      • *
      • *

        * 2014-09-09 *

        *
      • *
      • *

        * 2014-09-09-Holiday *

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

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

        *
          *
        • 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 Evaluation.

        *
          *
        • 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 SortOrder sortOrder() { return SortOrder.fromValue(sortOrder); } /** *

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

        *
          *
        • 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 Evaluation.

        *
          *
        • 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 String sortOrderAsString() { return sortOrder; } /** *

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

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

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

        * * @return The maximum number of Evaluation to include in the result. */ public 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 int hashCode() { int hashCode = 1; 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 boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DescribeEvaluationsRequest)) { return false; } DescribeEvaluationsRequest other = (DescribeEvaluationsRequest) 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 String toString() { return ToString.builder("DescribeEvaluationsRequest").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 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 List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((DescribeEvaluationsRequest) 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 variable to filter a list of Evaluation objects: *

        *
          *
        • CreatedAt - Sets the search criteria to the Evaluation creation date.
        • *
        • Status - Sets the search criteria to the Evaluation status.
        • *
        • Name - Sets the search criteria to the contents of Evaluation * Name.
        • *
        • IAMUser - Sets the search criteria to the user account that invoked an * Evaluation.
        • *
        • MLModelId - Sets the search criteria to the MLModel that was evaluated.
        • *
        • DataSourceId - Sets the search criteria to the DataSource used in * Evaluation.
        • *
        • DataUri - Sets the search criteria to the data file(s) used in Evaluation. The * URL can identify either a file or an Amazon Simple Storage Solution (Amazon S3) bucket or directory.
        • *
        * * @param filterVariable * Use one of the following variable to filter a list of Evaluation objects:

        *
          *
        • CreatedAt - Sets the search criteria to the Evaluation creation date.
        • *
        • Status - Sets the search criteria to the Evaluation status.
        • *
        • Name - Sets the search criteria to the contents of Evaluation * Name.
        • *
        • IAMUser - Sets the search criteria to the user account that invoked an * Evaluation.
        • *
        • MLModelId - Sets the search criteria to the MLModel that was evaluated.
        • *
        • DataSourceId - Sets the search criteria to the DataSource used in * Evaluation.
        • *
        • DataUri - Sets the search criteria to the data file(s) used in * Evaluation. The URL can identify either a file or an Amazon Simple Storage Solution * (Amazon S3) bucket or directory.
        • * @see EvaluationFilterVariable * @return Returns a reference to this object so that method calls can be chained together. * @see EvaluationFilterVariable */ Builder filterVariable(String filterVariable); /** *

          * Use one of the following variable to filter a list of Evaluation objects: *

          *
            *
          • CreatedAt - Sets the search criteria to the Evaluation creation date.
          • *
          • Status - Sets the search criteria to the Evaluation status.
          • *
          • Name - Sets the search criteria to the contents of Evaluation * Name.
          • *
          • IAMUser - Sets the search criteria to the user account that invoked an * Evaluation.
          • *
          • MLModelId - Sets the search criteria to the MLModel that was evaluated.
          • *
          • DataSourceId - Sets the search criteria to the DataSource used in * Evaluation.
          • *
          • DataUri - Sets the search criteria to the data file(s) used in Evaluation. The * URL can identify either a file or an Amazon Simple Storage Solution (Amazon S3) bucket or directory.
          • *
          * * @param filterVariable * Use one of the following variable to filter a list of Evaluation objects:

          *
            *
          • CreatedAt - Sets the search criteria to the Evaluation creation date.
          • *
          • Status - Sets the search criteria to the Evaluation status.
          • *
          • Name - Sets the search criteria to the contents of Evaluation * Name.
          • *
          • IAMUser - Sets the search criteria to the user account that invoked an * Evaluation.
          • *
          • MLModelId - Sets the search criteria to the MLModel that was evaluated.
          • *
          • DataSourceId - Sets the search criteria to the DataSource used in * Evaluation.
          • *
          • DataUri - Sets the search criteria to the data file(s) used in * Evaluation. The URL can identify either a file or an Amazon Simple Storage Solution * (Amazon S3) bucket or directory.
          • * @see EvaluationFilterVariable * @return Returns a reference to this object so that method calls can be chained together. * @see EvaluationFilterVariable */ Builder filterVariable(EvaluationFilterVariable filterVariable); /** *

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

            * * @param eq * The equal to operator. The Evaluation 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 Evaluation results will have FilterVariable values * that are greater than the value specified with GT. *

            * * @param gt * The greater than operator. The Evaluation 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 Evaluation results will have FilterVariable values that * are less than the value specified with LT. *

            * * @param lt * The less than operator. The Evaluation 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 Evaluation 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 Evaluation 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 Evaluation 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 Evaluation 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 Evaluation results will have FilterVariable values * not equal to the value specified with NE. *

            * * @param ne * The not equal to operator. The Evaluation 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, an Evaluation could have the Name * 2014-09-09-HolidayGiftMailer. To search for this Evaluation, 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, an Evaluation could have the Name * 2014-09-09-HolidayGiftMailer. To search for this Evaluation, 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 Evaluation. *

              *
                *
              • 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 Evaluation * .

              *
                *
              • 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 Evaluation. *

              *
                *
              • 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 Evaluation * .

              *
                *
              • 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 Evaluation to include in the result. *

              * * @param limit * The maximum number of Evaluation 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(DescribeEvaluationsRequest 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 getFilterVariableAsString() { return filterVariable; } @Override public final Builder filterVariable(String filterVariable) { this.filterVariable = filterVariable; return this; } @Override public final Builder filterVariable(EvaluationFilterVariable filterVariable) { this.filterVariable(filterVariable.toString()); return this; } public final void setFilterVariable(String filterVariable) { this.filterVariable = filterVariable; } public final String getEq() { return eq; } @Override public final Builder eq(String eq) { this.eq = eq; return this; } public final void setEq(String eq) { this.eq = eq; } public final String getGt() { return gt; } @Override public final Builder gt(String gt) { this.gt = gt; return this; } public final void setGt(String gt) { this.gt = gt; } public final String getLt() { return lt; } @Override public final Builder lt(String lt) { this.lt = lt; return this; } public final void setLt(String lt) { this.lt = lt; } public final String getGe() { return ge; } @Override public final Builder ge(String ge) { this.ge = ge; return this; } public final void setGe(String ge) { this.ge = ge; } public final String getLe() { return le; } @Override public final Builder le(String le) { this.le = le; return this; } public final void setLe(String le) { this.le = le; } public final String getNe() { return ne; } @Override public final Builder ne(String ne) { this.ne = ne; return this; } public final void setNe(String ne) { this.ne = ne; } public final String getPrefix() { return prefix; } @Override public final Builder prefix(String prefix) { this.prefix = prefix; return this; } public final void setPrefix(String prefix) { this.prefix = prefix; } public final String getSortOrderAsString() { return sortOrder; } @Override public final Builder sortOrder(String sortOrder) { this.sortOrder = sortOrder; return this; } @Override public final Builder sortOrder(SortOrder sortOrder) { this.sortOrder(sortOrder.toString()); return this; } public final void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; } public final String getNextToken() { return nextToken; } @Override public final Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } public final void setNextToken(String nextToken) { this.nextToken = nextToken; } public final Integer getLimit() { return limit; } @Override public final Builder limit(Integer limit) { this.limit = limit; return this; } public final void setLimit(Integer limit) { this.limit = limit; } @Override public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) { super.overrideConfiguration(overrideConfiguration); return this; } @Override public Builder overrideConfiguration(Consumer builderConsumer) { super.overrideConfiguration(builderConsumer); return this; } @Override public DescribeEvaluationsRequest build() { return new DescribeEvaluationsRequest(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy