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

com.amazonaws.services.personalize.model.ListRecipesRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2018-2023 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 com.amazonaws.services.personalize.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListRecipesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The default is SERVICE. *

*/ private String recipeProvider; /** *

* A token returned from the previous call to ListRecipes for getting the next set of recipes (if they * exist). *

*/ private String nextToken; /** *

* The maximum number of recipes to return. *

*/ private Integer maxResults; /** *

* Filters returned recipes by domain for a Domain dataset group. Only recipes (Domain dataset group use cases) for * this domain are included in the response. If you don't specify a domain, all recipes are returned. *

*/ private String domain; /** *

* The default is SERVICE. *

* * @param recipeProvider * The default is SERVICE. * @see RecipeProvider */ public void setRecipeProvider(String recipeProvider) { this.recipeProvider = recipeProvider; } /** *

* The default is SERVICE. *

* * @return The default is SERVICE. * @see RecipeProvider */ public String getRecipeProvider() { return this.recipeProvider; } /** *

* The default is SERVICE. *

* * @param recipeProvider * The default is SERVICE. * @return Returns a reference to this object so that method calls can be chained together. * @see RecipeProvider */ public ListRecipesRequest withRecipeProvider(String recipeProvider) { setRecipeProvider(recipeProvider); return this; } /** *

* The default is SERVICE. *

* * @param recipeProvider * The default is SERVICE. * @return Returns a reference to this object so that method calls can be chained together. * @see RecipeProvider */ public ListRecipesRequest withRecipeProvider(RecipeProvider recipeProvider) { this.recipeProvider = recipeProvider.toString(); return this; } /** *

* A token returned from the previous call to ListRecipes for getting the next set of recipes (if they * exist). *

* * @param nextToken * A token returned from the previous call to ListRecipes for getting the next set of recipes * (if they exist). */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* A token returned from the previous call to ListRecipes for getting the next set of recipes (if they * exist). *

* * @return A token returned from the previous call to ListRecipes for getting the next set of recipes * (if they exist). */ public String getNextToken() { return this.nextToken; } /** *

* A token returned from the previous call to ListRecipes for getting the next set of recipes (if they * exist). *

* * @param nextToken * A token returned from the previous call to ListRecipes for getting the next set of recipes * (if they exist). * @return Returns a reference to this object so that method calls can be chained together. */ public ListRecipesRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* The maximum number of recipes to return. *

* * @param maxResults * The maximum number of recipes to return. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of recipes to return. *

* * @return The maximum number of recipes to return. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of recipes to return. *

* * @param maxResults * The maximum number of recipes to return. * @return Returns a reference to this object so that method calls can be chained together. */ public ListRecipesRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* Filters returned recipes by domain for a Domain dataset group. Only recipes (Domain dataset group use cases) for * this domain are included in the response. If you don't specify a domain, all recipes are returned. *

* * @param domain * Filters returned recipes by domain for a Domain dataset group. Only recipes (Domain dataset group use * cases) for this domain are included in the response. If you don't specify a domain, all recipes are * returned. * @see Domain */ public void setDomain(String domain) { this.domain = domain; } /** *

* Filters returned recipes by domain for a Domain dataset group. Only recipes (Domain dataset group use cases) for * this domain are included in the response. If you don't specify a domain, all recipes are returned. *

* * @return Filters returned recipes by domain for a Domain dataset group. Only recipes (Domain dataset group use * cases) for this domain are included in the response. If you don't specify a domain, all recipes are * returned. * @see Domain */ public String getDomain() { return this.domain; } /** *

* Filters returned recipes by domain for a Domain dataset group. Only recipes (Domain dataset group use cases) for * this domain are included in the response. If you don't specify a domain, all recipes are returned. *

* * @param domain * Filters returned recipes by domain for a Domain dataset group. Only recipes (Domain dataset group use * cases) for this domain are included in the response. If you don't specify a domain, all recipes are * returned. * @return Returns a reference to this object so that method calls can be chained together. * @see Domain */ public ListRecipesRequest withDomain(String domain) { setDomain(domain); return this; } /** *

* Filters returned recipes by domain for a Domain dataset group. Only recipes (Domain dataset group use cases) for * this domain are included in the response. If you don't specify a domain, all recipes are returned. *

* * @param domain * Filters returned recipes by domain for a Domain dataset group. Only recipes (Domain dataset group use * cases) for this domain are included in the response. If you don't specify a domain, all recipes are * returned. * @return Returns a reference to this object so that method calls can be chained together. * @see Domain */ public ListRecipesRequest withDomain(Domain domain) { this.domain = domain.toString(); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getRecipeProvider() != null) sb.append("RecipeProvider: ").append(getRecipeProvider()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getDomain() != null) sb.append("Domain: ").append(getDomain()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListRecipesRequest == false) return false; ListRecipesRequest other = (ListRecipesRequest) obj; if (other.getRecipeProvider() == null ^ this.getRecipeProvider() == null) return false; if (other.getRecipeProvider() != null && other.getRecipeProvider().equals(this.getRecipeProvider()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getDomain() == null ^ this.getDomain() == null) return false; if (other.getDomain() != null && other.getDomain().equals(this.getDomain()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRecipeProvider() == null) ? 0 : getRecipeProvider().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getDomain() == null) ? 0 : getDomain().hashCode()); return hashCode; } @Override public ListRecipesRequest clone() { return (ListRecipesRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy