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

com.amazonaws.services.sagemaker.model.ListHubContentsRequest Maven / Gradle / Ivy

Go to download

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

The newest version!
/*
 * 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 ListHubContentsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of the hub to list the contents of. *

*/ private String hubName; /** *

* The type of hub content to list. *

*/ private String hubContentType; /** *

* Only list hub content if the name contains the specified string. *

*/ private String nameContains; /** *

* The upper bound of the hub content schema verion. *

*/ private String maxSchemaVersion; /** *

* Only list hub content that was created before the time specified. *

*/ private java.util.Date creationTimeBefore; /** *

* Only list hub content that was created after the time specified. *

*/ private java.util.Date creationTimeAfter; /** *

* Sort hub content versions by either name or creation time. *

*/ private String sortBy; /** *

* Sort hubs by ascending or descending order. *

*/ private String sortOrder; /** *

* The maximum amount of hub content to list. *

*/ private Integer maxResults; /** *

* If the response to a previous ListHubContents request was truncated, the response includes a * NextToken. To retrieve the next set of hub content, use the token in the next request. *

*/ private String nextToken; /** *

* The name of the hub to list the contents of. *

* * @param hubName * The name of the hub to list the contents of. */ public void setHubName(String hubName) { this.hubName = hubName; } /** *

* The name of the hub to list the contents of. *

* * @return The name of the hub to list the contents of. */ public String getHubName() { return this.hubName; } /** *

* The name of the hub to list the contents of. *

* * @param hubName * The name of the hub to list the contents of. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHubContentsRequest withHubName(String hubName) { setHubName(hubName); return this; } /** *

* The type of hub content to list. *

* * @param hubContentType * The type of hub content to list. * @see HubContentType */ public void setHubContentType(String hubContentType) { this.hubContentType = hubContentType; } /** *

* The type of hub content to list. *

* * @return The type of hub content to list. * @see HubContentType */ public String getHubContentType() { return this.hubContentType; } /** *

* The type of hub content to list. *

* * @param hubContentType * The type of hub content to list. * @return Returns a reference to this object so that method calls can be chained together. * @see HubContentType */ public ListHubContentsRequest withHubContentType(String hubContentType) { setHubContentType(hubContentType); return this; } /** *

* The type of hub content to list. *

* * @param hubContentType * The type of hub content to list. * @return Returns a reference to this object so that method calls can be chained together. * @see HubContentType */ public ListHubContentsRequest withHubContentType(HubContentType hubContentType) { this.hubContentType = hubContentType.toString(); return this; } /** *

* Only list hub content if the name contains the specified string. *

* * @param nameContains * Only list hub content if the name contains the specified string. */ public void setNameContains(String nameContains) { this.nameContains = nameContains; } /** *

* Only list hub content if the name contains the specified string. *

* * @return Only list hub content if the name contains the specified string. */ public String getNameContains() { return this.nameContains; } /** *

* Only list hub content if the name contains the specified string. *

* * @param nameContains * Only list hub content if the name contains the specified string. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHubContentsRequest withNameContains(String nameContains) { setNameContains(nameContains); return this; } /** *

* The upper bound of the hub content schema verion. *

* * @param maxSchemaVersion * The upper bound of the hub content schema verion. */ public void setMaxSchemaVersion(String maxSchemaVersion) { this.maxSchemaVersion = maxSchemaVersion; } /** *

* The upper bound of the hub content schema verion. *

* * @return The upper bound of the hub content schema verion. */ public String getMaxSchemaVersion() { return this.maxSchemaVersion; } /** *

* The upper bound of the hub content schema verion. *

* * @param maxSchemaVersion * The upper bound of the hub content schema verion. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHubContentsRequest withMaxSchemaVersion(String maxSchemaVersion) { setMaxSchemaVersion(maxSchemaVersion); return this; } /** *

* Only list hub content that was created before the time specified. *

* * @param creationTimeBefore * Only list hub content that was created before the time specified. */ public void setCreationTimeBefore(java.util.Date creationTimeBefore) { this.creationTimeBefore = creationTimeBefore; } /** *

* Only list hub content that was created before the time specified. *

* * @return Only list hub content that was created before the time specified. */ public java.util.Date getCreationTimeBefore() { return this.creationTimeBefore; } /** *

* Only list hub content that was created before the time specified. *

* * @param creationTimeBefore * Only list hub content that was created before the time specified. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHubContentsRequest withCreationTimeBefore(java.util.Date creationTimeBefore) { setCreationTimeBefore(creationTimeBefore); return this; } /** *

* Only list hub content that was created after the time specified. *

* * @param creationTimeAfter * Only list hub content that was created after the time specified. */ public void setCreationTimeAfter(java.util.Date creationTimeAfter) { this.creationTimeAfter = creationTimeAfter; } /** *

* Only list hub content that was created after the time specified. *

* * @return Only list hub content that was created after the time specified. */ public java.util.Date getCreationTimeAfter() { return this.creationTimeAfter; } /** *

* Only list hub content that was created after the time specified. *

* * @param creationTimeAfter * Only list hub content that was created after the time specified. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHubContentsRequest withCreationTimeAfter(java.util.Date creationTimeAfter) { setCreationTimeAfter(creationTimeAfter); return this; } /** *

* Sort hub content versions by either name or creation time. *

* * @param sortBy * Sort hub content versions by either name or creation time. * @see HubContentSortBy */ public void setSortBy(String sortBy) { this.sortBy = sortBy; } /** *

* Sort hub content versions by either name or creation time. *

* * @return Sort hub content versions by either name or creation time. * @see HubContentSortBy */ public String getSortBy() { return this.sortBy; } /** *

* Sort hub content versions by either name or creation time. *

* * @param sortBy * Sort hub content versions by either name or creation time. * @return Returns a reference to this object so that method calls can be chained together. * @see HubContentSortBy */ public ListHubContentsRequest withSortBy(String sortBy) { setSortBy(sortBy); return this; } /** *

* Sort hub content versions by either name or creation time. *

* * @param sortBy * Sort hub content versions by either name or creation time. * @return Returns a reference to this object so that method calls can be chained together. * @see HubContentSortBy */ public ListHubContentsRequest withSortBy(HubContentSortBy sortBy) { this.sortBy = sortBy.toString(); return this; } /** *

* Sort hubs by ascending or descending order. *

* * @param sortOrder * Sort hubs by ascending or descending order. * @see SortOrder */ public void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; } /** *

* Sort hubs by ascending or descending order. *

* * @return Sort hubs by ascending or descending order. * @see SortOrder */ public String getSortOrder() { return this.sortOrder; } /** *

* Sort hubs by ascending or descending order. *

* * @param sortOrder * Sort hubs by ascending or descending order. * @return Returns a reference to this object so that method calls can be chained together. * @see SortOrder */ public ListHubContentsRequest withSortOrder(String sortOrder) { setSortOrder(sortOrder); return this; } /** *

* Sort hubs by ascending or descending order. *

* * @param sortOrder * Sort hubs by ascending or descending order. * @return Returns a reference to this object so that method calls can be chained together. * @see SortOrder */ public ListHubContentsRequest withSortOrder(SortOrder sortOrder) { this.sortOrder = sortOrder.toString(); return this; } /** *

* The maximum amount of hub content to list. *

* * @param maxResults * The maximum amount of hub content to list. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum amount of hub content to list. *

* * @return The maximum amount of hub content to list. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum amount of hub content to list. *

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

* If the response to a previous ListHubContents request was truncated, the response includes a * NextToken. To retrieve the next set of hub content, use the token in the next request. *

* * @param nextToken * If the response to a previous ListHubContents request was truncated, the response includes a * NextToken. To retrieve the next set of hub content, use the token in the next request. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* If the response to a previous ListHubContents request was truncated, the response includes a * NextToken. To retrieve the next set of hub content, use the token in the next request. *

* * @return If the response to a previous ListHubContents request was truncated, the response includes a * NextToken. To retrieve the next set of hub content, use the token in the next request. */ public String getNextToken() { return this.nextToken; } /** *

* If the response to a previous ListHubContents request was truncated, the response includes a * NextToken. To retrieve the next set of hub content, use the token in the next request. *

* * @param nextToken * If the response to a previous ListHubContents request was truncated, the response includes a * NextToken. To retrieve the next set of hub content, use the token in the next request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHubContentsRequest 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 (getHubName() != null) sb.append("HubName: ").append(getHubName()).append(","); if (getHubContentType() != null) sb.append("HubContentType: ").append(getHubContentType()).append(","); if (getNameContains() != null) sb.append("NameContains: ").append(getNameContains()).append(","); if (getMaxSchemaVersion() != null) sb.append("MaxSchemaVersion: ").append(getMaxSchemaVersion()).append(","); if (getCreationTimeBefore() != null) sb.append("CreationTimeBefore: ").append(getCreationTimeBefore()).append(","); if (getCreationTimeAfter() != null) sb.append("CreationTimeAfter: ").append(getCreationTimeAfter()).append(","); if (getSortBy() != null) sb.append("SortBy: ").append(getSortBy()).append(","); if (getSortOrder() != null) sb.append("SortOrder: ").append(getSortOrder()).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 ListHubContentsRequest == false) return false; ListHubContentsRequest other = (ListHubContentsRequest) obj; if (other.getHubName() == null ^ this.getHubName() == null) return false; if (other.getHubName() != null && other.getHubName().equals(this.getHubName()) == false) return false; if (other.getHubContentType() == null ^ this.getHubContentType() == null) return false; if (other.getHubContentType() != null && other.getHubContentType().equals(this.getHubContentType()) == false) return false; if (other.getNameContains() == null ^ this.getNameContains() == null) return false; if (other.getNameContains() != null && other.getNameContains().equals(this.getNameContains()) == false) return false; if (other.getMaxSchemaVersion() == null ^ this.getMaxSchemaVersion() == null) return false; if (other.getMaxSchemaVersion() != null && other.getMaxSchemaVersion().equals(this.getMaxSchemaVersion()) == 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.getCreationTimeAfter() == null ^ this.getCreationTimeAfter() == null) return false; if (other.getCreationTimeAfter() != null && other.getCreationTimeAfter().equals(this.getCreationTimeAfter()) == 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.getSortOrder() == null ^ this.getSortOrder() == null) return false; if (other.getSortOrder() != null && other.getSortOrder().equals(this.getSortOrder()) == 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 + ((getHubName() == null) ? 0 : getHubName().hashCode()); hashCode = prime * hashCode + ((getHubContentType() == null) ? 0 : getHubContentType().hashCode()); hashCode = prime * hashCode + ((getNameContains() == null) ? 0 : getNameContains().hashCode()); hashCode = prime * hashCode + ((getMaxSchemaVersion() == null) ? 0 : getMaxSchemaVersion().hashCode()); hashCode = prime * hashCode + ((getCreationTimeBefore() == null) ? 0 : getCreationTimeBefore().hashCode()); hashCode = prime * hashCode + ((getCreationTimeAfter() == null) ? 0 : getCreationTimeAfter().hashCode()); hashCode = prime * hashCode + ((getSortBy() == null) ? 0 : getSortBy().hashCode()); hashCode = prime * hashCode + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public ListHubContentsRequest clone() { return (ListHubContentsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy