com.amazonaws.services.bedrock.model.ListProvisionedModelThroughputsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-bedrock 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.bedrock.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 ListProvisionedModelThroughputsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* A filter that returns Provisioned Throughputs created after the specified time.
*
*/
private java.util.Date creationTimeAfter;
/**
*
* A filter that returns Provisioned Throughputs created before the specified time.
*
*/
private java.util.Date creationTimeBefore;
/**
*
* A filter that returns Provisioned Throughputs if their statuses matches the value that you specify.
*
*/
private String statusEquals;
/**
*
* A filter that returns Provisioned Throughputs whose model Amazon Resource Name (ARN) is equal to the value that
* you specify.
*
*/
private String modelArnEquals;
/**
*
* A filter that returns Provisioned Throughputs if their name contains the expression that you specify.
*
*/
private String nameContains;
/**
*
* THe maximum number of results to return in the response. If there are more results than the number you specified,
* the response returns a nextToken
value. To see the next batch of results, send the
* nextToken
value in another list request.
*
*/
private Integer maxResults;
/**
*
* If there are more results than the number you specified in the maxResults
field, the response
* returns a nextToken
value. To see the next batch of results, specify the nextToken
* value in this field.
*
*/
private String nextToken;
/**
*
* The field by which to sort the returned list of Provisioned Throughputs.
*
*/
private String sortBy;
/**
*
* The sort order of the results.
*
*/
private String sortOrder;
/**
*
* A filter that returns Provisioned Throughputs created after the specified time.
*
*
* @param creationTimeAfter
* A filter that returns Provisioned Throughputs created after the specified time.
*/
public void setCreationTimeAfter(java.util.Date creationTimeAfter) {
this.creationTimeAfter = creationTimeAfter;
}
/**
*
* A filter that returns Provisioned Throughputs created after the specified time.
*
*
* @return A filter that returns Provisioned Throughputs created after the specified time.
*/
public java.util.Date getCreationTimeAfter() {
return this.creationTimeAfter;
}
/**
*
* A filter that returns Provisioned Throughputs created after the specified time.
*
*
* @param creationTimeAfter
* A filter that returns Provisioned Throughputs created after the specified time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListProvisionedModelThroughputsRequest withCreationTimeAfter(java.util.Date creationTimeAfter) {
setCreationTimeAfter(creationTimeAfter);
return this;
}
/**
*
* A filter that returns Provisioned Throughputs created before the specified time.
*
*
* @param creationTimeBefore
* A filter that returns Provisioned Throughputs created before the specified time.
*/
public void setCreationTimeBefore(java.util.Date creationTimeBefore) {
this.creationTimeBefore = creationTimeBefore;
}
/**
*
* A filter that returns Provisioned Throughputs created before the specified time.
*
*
* @return A filter that returns Provisioned Throughputs created before the specified time.
*/
public java.util.Date getCreationTimeBefore() {
return this.creationTimeBefore;
}
/**
*
* A filter that returns Provisioned Throughputs created before the specified time.
*
*
* @param creationTimeBefore
* A filter that returns Provisioned Throughputs created before the specified time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListProvisionedModelThroughputsRequest withCreationTimeBefore(java.util.Date creationTimeBefore) {
setCreationTimeBefore(creationTimeBefore);
return this;
}
/**
*
* A filter that returns Provisioned Throughputs if their statuses matches the value that you specify.
*
*
* @param statusEquals
* A filter that returns Provisioned Throughputs if their statuses matches the value that you specify.
* @see ProvisionedModelStatus
*/
public void setStatusEquals(String statusEquals) {
this.statusEquals = statusEquals;
}
/**
*
* A filter that returns Provisioned Throughputs if their statuses matches the value that you specify.
*
*
* @return A filter that returns Provisioned Throughputs if their statuses matches the value that you specify.
* @see ProvisionedModelStatus
*/
public String getStatusEquals() {
return this.statusEquals;
}
/**
*
* A filter that returns Provisioned Throughputs if their statuses matches the value that you specify.
*
*
* @param statusEquals
* A filter that returns Provisioned Throughputs if their statuses matches the value that you specify.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ProvisionedModelStatus
*/
public ListProvisionedModelThroughputsRequest withStatusEquals(String statusEquals) {
setStatusEquals(statusEquals);
return this;
}
/**
*
* A filter that returns Provisioned Throughputs if their statuses matches the value that you specify.
*
*
* @param statusEquals
* A filter that returns Provisioned Throughputs if their statuses matches the value that you specify.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ProvisionedModelStatus
*/
public ListProvisionedModelThroughputsRequest withStatusEquals(ProvisionedModelStatus statusEquals) {
this.statusEquals = statusEquals.toString();
return this;
}
/**
*
* A filter that returns Provisioned Throughputs whose model Amazon Resource Name (ARN) is equal to the value that
* you specify.
*
*
* @param modelArnEquals
* A filter that returns Provisioned Throughputs whose model Amazon Resource Name (ARN) is equal to the value
* that you specify.
*/
public void setModelArnEquals(String modelArnEquals) {
this.modelArnEquals = modelArnEquals;
}
/**
*
* A filter that returns Provisioned Throughputs whose model Amazon Resource Name (ARN) is equal to the value that
* you specify.
*
*
* @return A filter that returns Provisioned Throughputs whose model Amazon Resource Name (ARN) is equal to the
* value that you specify.
*/
public String getModelArnEquals() {
return this.modelArnEquals;
}
/**
*
* A filter that returns Provisioned Throughputs whose model Amazon Resource Name (ARN) is equal to the value that
* you specify.
*
*
* @param modelArnEquals
* A filter that returns Provisioned Throughputs whose model Amazon Resource Name (ARN) is equal to the value
* that you specify.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListProvisionedModelThroughputsRequest withModelArnEquals(String modelArnEquals) {
setModelArnEquals(modelArnEquals);
return this;
}
/**
*
* A filter that returns Provisioned Throughputs if their name contains the expression that you specify.
*
*
* @param nameContains
* A filter that returns Provisioned Throughputs if their name contains the expression that you specify.
*/
public void setNameContains(String nameContains) {
this.nameContains = nameContains;
}
/**
*
* A filter that returns Provisioned Throughputs if their name contains the expression that you specify.
*
*
* @return A filter that returns Provisioned Throughputs if their name contains the expression that you specify.
*/
public String getNameContains() {
return this.nameContains;
}
/**
*
* A filter that returns Provisioned Throughputs if their name contains the expression that you specify.
*
*
* @param nameContains
* A filter that returns Provisioned Throughputs if their name contains the expression that you specify.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListProvisionedModelThroughputsRequest withNameContains(String nameContains) {
setNameContains(nameContains);
return this;
}
/**
*
* THe maximum number of results to return in the response. If there are more results than the number you specified,
* the response returns a nextToken
value. To see the next batch of results, send the
* nextToken
value in another list request.
*
*
* @param maxResults
* THe maximum number of results to return in the response. If there are more results than the number you
* specified, the response returns a nextToken
value. To see the next batch of results, send the
* nextToken
value in another list request.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* THe maximum number of results to return in the response. If there are more results than the number you specified,
* the response returns a nextToken
value. To see the next batch of results, send the
* nextToken
value in another list request.
*
*
* @return THe maximum number of results to return in the response. If there are more results than the number you
* specified, the response returns a nextToken
value. To see the next batch of results, send
* the nextToken
value in another list request.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* THe maximum number of results to return in the response. If there are more results than the number you specified,
* the response returns a nextToken
value. To see the next batch of results, send the
* nextToken
value in another list request.
*
*
* @param maxResults
* THe maximum number of results to return in the response. If there are more results than the number you
* specified, the response returns a nextToken
value. To see the next batch of results, send the
* nextToken
value in another list request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListProvisionedModelThroughputsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* If there are more results than the number you specified in the maxResults
field, the response
* returns a nextToken
value. To see the next batch of results, specify the nextToken
* value in this field.
*
*
* @param nextToken
* If there are more results than the number you specified in the maxResults
field, the response
* returns a nextToken
value. To see the next batch of results, specify the
* nextToken
value in this field.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* If there are more results than the number you specified in the maxResults
field, the response
* returns a nextToken
value. To see the next batch of results, specify the nextToken
* value in this field.
*
*
* @return If there are more results than the number you specified in the maxResults
field, the
* response returns a nextToken
value. To see the next batch of results, specify the
* nextToken
value in this field.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* If there are more results than the number you specified in the maxResults
field, the response
* returns a nextToken
value. To see the next batch of results, specify the nextToken
* value in this field.
*
*
* @param nextToken
* If there are more results than the number you specified in the maxResults
field, the response
* returns a nextToken
value. To see the next batch of results, specify the
* nextToken
value in this field.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListProvisionedModelThroughputsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* The field by which to sort the returned list of Provisioned Throughputs.
*
*
* @param sortBy
* The field by which to sort the returned list of Provisioned Throughputs.
* @see SortByProvisionedModels
*/
public void setSortBy(String sortBy) {
this.sortBy = sortBy;
}
/**
*
* The field by which to sort the returned list of Provisioned Throughputs.
*
*
* @return The field by which to sort the returned list of Provisioned Throughputs.
* @see SortByProvisionedModels
*/
public String getSortBy() {
return this.sortBy;
}
/**
*
* The field by which to sort the returned list of Provisioned Throughputs.
*
*
* @param sortBy
* The field by which to sort the returned list of Provisioned Throughputs.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SortByProvisionedModels
*/
public ListProvisionedModelThroughputsRequest withSortBy(String sortBy) {
setSortBy(sortBy);
return this;
}
/**
*
* The field by which to sort the returned list of Provisioned Throughputs.
*
*
* @param sortBy
* The field by which to sort the returned list of Provisioned Throughputs.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SortByProvisionedModels
*/
public ListProvisionedModelThroughputsRequest withSortBy(SortByProvisionedModels sortBy) {
this.sortBy = sortBy.toString();
return this;
}
/**
*
* The sort order of the results.
*
*
* @param sortOrder
* The sort order of the results.
* @see SortOrder
*/
public void setSortOrder(String sortOrder) {
this.sortOrder = sortOrder;
}
/**
*
* The sort order of the results.
*
*
* @return The sort order of the results.
* @see SortOrder
*/
public String getSortOrder() {
return this.sortOrder;
}
/**
*
* The sort order of the results.
*
*
* @param sortOrder
* The sort order of the results.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SortOrder
*/
public ListProvisionedModelThroughputsRequest withSortOrder(String sortOrder) {
setSortOrder(sortOrder);
return this;
}
/**
*
* The sort order of the results.
*
*
* @param sortOrder
* The sort order of the results.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SortOrder
*/
public ListProvisionedModelThroughputsRequest withSortOrder(SortOrder sortOrder) {
this.sortOrder = sortOrder.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 (getCreationTimeAfter() != null)
sb.append("CreationTimeAfter: ").append(getCreationTimeAfter()).append(",");
if (getCreationTimeBefore() != null)
sb.append("CreationTimeBefore: ").append(getCreationTimeBefore()).append(",");
if (getStatusEquals() != null)
sb.append("StatusEquals: ").append(getStatusEquals()).append(",");
if (getModelArnEquals() != null)
sb.append("ModelArnEquals: ").append(getModelArnEquals()).append(",");
if (getNameContains() != null)
sb.append("NameContains: ").append(getNameContains()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getSortBy() != null)
sb.append("SortBy: ").append(getSortBy()).append(",");
if (getSortOrder() != null)
sb.append("SortOrder: ").append(getSortOrder());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListProvisionedModelThroughputsRequest == false)
return false;
ListProvisionedModelThroughputsRequest other = (ListProvisionedModelThroughputsRequest) obj;
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.getStatusEquals() == null ^ this.getStatusEquals() == null)
return false;
if (other.getStatusEquals() != null && other.getStatusEquals().equals(this.getStatusEquals()) == false)
return false;
if (other.getModelArnEquals() == null ^ this.getModelArnEquals() == null)
return false;
if (other.getModelArnEquals() != null && other.getModelArnEquals().equals(this.getModelArnEquals()) == 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.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;
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;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCreationTimeAfter() == null) ? 0 : getCreationTimeAfter().hashCode());
hashCode = prime * hashCode + ((getCreationTimeBefore() == null) ? 0 : getCreationTimeBefore().hashCode());
hashCode = prime * hashCode + ((getStatusEquals() == null) ? 0 : getStatusEquals().hashCode());
hashCode = prime * hashCode + ((getModelArnEquals() == null) ? 0 : getModelArnEquals().hashCode());
hashCode = prime * hashCode + ((getNameContains() == null) ? 0 : getNameContains().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getSortBy() == null) ? 0 : getSortBy().hashCode());
hashCode = prime * hashCode + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
return hashCode;
}
@Override
public ListProvisionedModelThroughputsRequest clone() {
return (ListProvisionedModelThroughputsRequest) super.clone();
}
}