com.amazonaws.services.sagemaker.model.ListFeatureGroupsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-sagemaker Show documentation
/*
* Copyright 2019-2024 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.sagemaker.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 ListFeatureGroupsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* A string that partially matches one or more FeatureGroup
s names. Filters FeatureGroup
s
* by name.
*
*/
private String nameContains;
/**
*
* A FeatureGroup
status. Filters by FeatureGroup
status.
*
*/
private String featureGroupStatusEquals;
/**
*
* An OfflineStore
status. Filters by OfflineStore
status.
*
*/
private String offlineStoreStatusEquals;
/**
*
* Use this parameter to search for FeatureGroups
s created after a specific date and time.
*
*/
private java.util.Date creationTimeAfter;
/**
*
* Use this parameter to search for FeatureGroups
s created before a specific date and time.
*
*/
private java.util.Date creationTimeBefore;
/**
*
* The order in which feature groups are listed.
*
*/
private String sortOrder;
/**
*
* The value on which the feature group list is sorted.
*
*/
private String sortBy;
/**
*
* The maximum number of results returned by ListFeatureGroups
.
*
*/
private Integer maxResults;
/**
*
* A token to resume pagination of ListFeatureGroups
results.
*
*/
private String nextToken;
/**
*
* A string that partially matches one or more FeatureGroup
s names. Filters FeatureGroup
s
* by name.
*
*
* @param nameContains
* A string that partially matches one or more FeatureGroup
s names. Filters
* FeatureGroup
s by name.
*/
public void setNameContains(String nameContains) {
this.nameContains = nameContains;
}
/**
*
* A string that partially matches one or more FeatureGroup
s names. Filters FeatureGroup
s
* by name.
*
*
* @return A string that partially matches one or more FeatureGroup
s names. Filters
* FeatureGroup
s by name.
*/
public String getNameContains() {
return this.nameContains;
}
/**
*
* A string that partially matches one or more FeatureGroup
s names. Filters FeatureGroup
s
* by name.
*
*
* @param nameContains
* A string that partially matches one or more FeatureGroup
s names. Filters
* FeatureGroup
s by name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListFeatureGroupsRequest withNameContains(String nameContains) {
setNameContains(nameContains);
return this;
}
/**
*
* A FeatureGroup
status. Filters by FeatureGroup
status.
*
*
* @param featureGroupStatusEquals
* A FeatureGroup
status. Filters by FeatureGroup
status.
* @see FeatureGroupStatus
*/
public void setFeatureGroupStatusEquals(String featureGroupStatusEquals) {
this.featureGroupStatusEquals = featureGroupStatusEquals;
}
/**
*
* A FeatureGroup
status. Filters by FeatureGroup
status.
*
*
* @return A FeatureGroup
status. Filters by FeatureGroup
status.
* @see FeatureGroupStatus
*/
public String getFeatureGroupStatusEquals() {
return this.featureGroupStatusEquals;
}
/**
*
* A FeatureGroup
status. Filters by FeatureGroup
status.
*
*
* @param featureGroupStatusEquals
* A FeatureGroup
status. Filters by FeatureGroup
status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureGroupStatus
*/
public ListFeatureGroupsRequest withFeatureGroupStatusEquals(String featureGroupStatusEquals) {
setFeatureGroupStatusEquals(featureGroupStatusEquals);
return this;
}
/**
*
* A FeatureGroup
status. Filters by FeatureGroup
status.
*
*
* @param featureGroupStatusEquals
* A FeatureGroup
status. Filters by FeatureGroup
status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureGroupStatus
*/
public ListFeatureGroupsRequest withFeatureGroupStatusEquals(FeatureGroupStatus featureGroupStatusEquals) {
this.featureGroupStatusEquals = featureGroupStatusEquals.toString();
return this;
}
/**
*
* An OfflineStore
status. Filters by OfflineStore
status.
*
*
* @param offlineStoreStatusEquals
* An OfflineStore
status. Filters by OfflineStore
status.
* @see OfflineStoreStatusValue
*/
public void setOfflineStoreStatusEquals(String offlineStoreStatusEquals) {
this.offlineStoreStatusEquals = offlineStoreStatusEquals;
}
/**
*
* An OfflineStore
status. Filters by OfflineStore
status.
*
*
* @return An OfflineStore
status. Filters by OfflineStore
status.
* @see OfflineStoreStatusValue
*/
public String getOfflineStoreStatusEquals() {
return this.offlineStoreStatusEquals;
}
/**
*
* An OfflineStore
status. Filters by OfflineStore
status.
*
*
* @param offlineStoreStatusEquals
* An OfflineStore
status. Filters by OfflineStore
status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OfflineStoreStatusValue
*/
public ListFeatureGroupsRequest withOfflineStoreStatusEquals(String offlineStoreStatusEquals) {
setOfflineStoreStatusEquals(offlineStoreStatusEquals);
return this;
}
/**
*
* An OfflineStore
status. Filters by OfflineStore
status.
*
*
* @param offlineStoreStatusEquals
* An OfflineStore
status. Filters by OfflineStore
status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OfflineStoreStatusValue
*/
public ListFeatureGroupsRequest withOfflineStoreStatusEquals(OfflineStoreStatusValue offlineStoreStatusEquals) {
this.offlineStoreStatusEquals = offlineStoreStatusEquals.toString();
return this;
}
/**
*
* Use this parameter to search for FeatureGroups
s created after a specific date and time.
*
*
* @param creationTimeAfter
* Use this parameter to search for FeatureGroups
s created after a specific date and time.
*/
public void setCreationTimeAfter(java.util.Date creationTimeAfter) {
this.creationTimeAfter = creationTimeAfter;
}
/**
*
* Use this parameter to search for FeatureGroups
s created after a specific date and time.
*
*
* @return Use this parameter to search for FeatureGroups
s created after a specific date and time.
*/
public java.util.Date getCreationTimeAfter() {
return this.creationTimeAfter;
}
/**
*
* Use this parameter to search for FeatureGroups
s created after a specific date and time.
*
*
* @param creationTimeAfter
* Use this parameter to search for FeatureGroups
s created after a specific date and time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListFeatureGroupsRequest withCreationTimeAfter(java.util.Date creationTimeAfter) {
setCreationTimeAfter(creationTimeAfter);
return this;
}
/**
*
* Use this parameter to search for FeatureGroups
s created before a specific date and time.
*
*
* @param creationTimeBefore
* Use this parameter to search for FeatureGroups
s created before a specific date and time.
*/
public void setCreationTimeBefore(java.util.Date creationTimeBefore) {
this.creationTimeBefore = creationTimeBefore;
}
/**
*
* Use this parameter to search for FeatureGroups
s created before a specific date and time.
*
*
* @return Use this parameter to search for FeatureGroups
s created before a specific date and time.
*/
public java.util.Date getCreationTimeBefore() {
return this.creationTimeBefore;
}
/**
*
* Use this parameter to search for FeatureGroups
s created before a specific date and time.
*
*
* @param creationTimeBefore
* Use this parameter to search for FeatureGroups
s created before a specific date and time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListFeatureGroupsRequest withCreationTimeBefore(java.util.Date creationTimeBefore) {
setCreationTimeBefore(creationTimeBefore);
return this;
}
/**
*
* The order in which feature groups are listed.
*
*
* @param sortOrder
* The order in which feature groups are listed.
* @see FeatureGroupSortOrder
*/
public void setSortOrder(String sortOrder) {
this.sortOrder = sortOrder;
}
/**
*
* The order in which feature groups are listed.
*
*
* @return The order in which feature groups are listed.
* @see FeatureGroupSortOrder
*/
public String getSortOrder() {
return this.sortOrder;
}
/**
*
* The order in which feature groups are listed.
*
*
* @param sortOrder
* The order in which feature groups are listed.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureGroupSortOrder
*/
public ListFeatureGroupsRequest withSortOrder(String sortOrder) {
setSortOrder(sortOrder);
return this;
}
/**
*
* The order in which feature groups are listed.
*
*
* @param sortOrder
* The order in which feature groups are listed.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureGroupSortOrder
*/
public ListFeatureGroupsRequest withSortOrder(FeatureGroupSortOrder sortOrder) {
this.sortOrder = sortOrder.toString();
return this;
}
/**
*
* The value on which the feature group list is sorted.
*
*
* @param sortBy
* The value on which the feature group list is sorted.
* @see FeatureGroupSortBy
*/
public void setSortBy(String sortBy) {
this.sortBy = sortBy;
}
/**
*
* The value on which the feature group list is sorted.
*
*
* @return The value on which the feature group list is sorted.
* @see FeatureGroupSortBy
*/
public String getSortBy() {
return this.sortBy;
}
/**
*
* The value on which the feature group list is sorted.
*
*
* @param sortBy
* The value on which the feature group list is sorted.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureGroupSortBy
*/
public ListFeatureGroupsRequest withSortBy(String sortBy) {
setSortBy(sortBy);
return this;
}
/**
*
* The value on which the feature group list is sorted.
*
*
* @param sortBy
* The value on which the feature group list is sorted.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureGroupSortBy
*/
public ListFeatureGroupsRequest withSortBy(FeatureGroupSortBy sortBy) {
this.sortBy = sortBy.toString();
return this;
}
/**
*
* The maximum number of results returned by ListFeatureGroups
.
*
*
* @param maxResults
* The maximum number of results returned by ListFeatureGroups
.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of results returned by ListFeatureGroups
.
*
*
* @return The maximum number of results returned by ListFeatureGroups
.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of results returned by ListFeatureGroups
.
*
*
* @param maxResults
* The maximum number of results returned by ListFeatureGroups
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListFeatureGroupsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* A token to resume pagination of ListFeatureGroups
results.
*
*
* @param nextToken
* A token to resume pagination of ListFeatureGroups
results.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* A token to resume pagination of ListFeatureGroups
results.
*
*
* @return A token to resume pagination of ListFeatureGroups
results.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* A token to resume pagination of ListFeatureGroups
results.
*
*
* @param nextToken
* A token to resume pagination of ListFeatureGroups
results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListFeatureGroupsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
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 (getNameContains() != null)
sb.append("NameContains: ").append(getNameContains()).append(",");
if (getFeatureGroupStatusEquals() != null)
sb.append("FeatureGroupStatusEquals: ").append(getFeatureGroupStatusEquals()).append(",");
if (getOfflineStoreStatusEquals() != null)
sb.append("OfflineStoreStatusEquals: ").append(getOfflineStoreStatusEquals()).append(",");
if (getCreationTimeAfter() != null)
sb.append("CreationTimeAfter: ").append(getCreationTimeAfter()).append(",");
if (getCreationTimeBefore() != null)
sb.append("CreationTimeBefore: ").append(getCreationTimeBefore()).append(",");
if (getSortOrder() != null)
sb.append("SortOrder: ").append(getSortOrder()).append(",");
if (getSortBy() != null)
sb.append("SortBy: ").append(getSortBy()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListFeatureGroupsRequest == false)
return false;
ListFeatureGroupsRequest other = (ListFeatureGroupsRequest) obj;
if (other.getNameContains() == null ^ this.getNameContains() == null)
return false;
if (other.getNameContains() != null && other.getNameContains().equals(this.getNameContains()) == false)
return false;
if (other.getFeatureGroupStatusEquals() == null ^ this.getFeatureGroupStatusEquals() == null)
return false;
if (other.getFeatureGroupStatusEquals() != null && other.getFeatureGroupStatusEquals().equals(this.getFeatureGroupStatusEquals()) == false)
return false;
if (other.getOfflineStoreStatusEquals() == null ^ this.getOfflineStoreStatusEquals() == null)
return false;
if (other.getOfflineStoreStatusEquals() != null && other.getOfflineStoreStatusEquals().equals(this.getOfflineStoreStatusEquals()) == false)
return false;
if (other.getCreationTimeAfter() == null ^ this.getCreationTimeAfter() == null)
return false;
if (other.getCreationTimeAfter() != null && other.getCreationTimeAfter().equals(this.getCreationTimeAfter()) == false)
return false;
if (other.getCreationTimeBefore() == null ^ this.getCreationTimeBefore() == null)
return false;
if (other.getCreationTimeBefore() != null && other.getCreationTimeBefore().equals(this.getCreationTimeBefore()) == false)
return false;
if (other.getSortOrder() == null ^ this.getSortOrder() == null)
return false;
if (other.getSortOrder() != null && other.getSortOrder().equals(this.getSortOrder()) == false)
return false;
if (other.getSortBy() == null ^ this.getSortBy() == null)
return false;
if (other.getSortBy() != null && other.getSortBy().equals(this.getSortBy()) == 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.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getNameContains() == null) ? 0 : getNameContains().hashCode());
hashCode = prime * hashCode + ((getFeatureGroupStatusEquals() == null) ? 0 : getFeatureGroupStatusEquals().hashCode());
hashCode = prime * hashCode + ((getOfflineStoreStatusEquals() == null) ? 0 : getOfflineStoreStatusEquals().hashCode());
hashCode = prime * hashCode + ((getCreationTimeAfter() == null) ? 0 : getCreationTimeAfter().hashCode());
hashCode = prime * hashCode + ((getCreationTimeBefore() == null) ? 0 : getCreationTimeBefore().hashCode());
hashCode = prime * hashCode + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
hashCode = prime * hashCode + ((getSortBy() == null) ? 0 : getSortBy().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public ListFeatureGroupsRequest clone() {
return (ListFeatureGroupsRequest) super.clone();
}
}