/* * 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.machinelearning.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeDataSourcesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Use one of the following variables to filter a list of DataSource
:
*
* CreatedAt
- Sets the search criteria to DataSource
creation dates.
*
* Status
- Sets the search criteria to DataSource
statuses.
*
* Name
- Sets the search criteria to the contents of DataSource
Name
.
*
* DataUri
- Sets the search criteria to the URI of data files used to create the
* DataSource
. The URI can identify either a file or an Amazon Simple Storage Service (Amazon S3)
* bucket or directory.
*
* IAMUser
- Sets the search criteria to the user account that invoked the DataSource
* creation.
*
* The equal to operator. The DataSource
results will have FilterVariable
values that
* exactly match the value specified with EQ
.
*
* The greater than operator. The DataSource
results will have FilterVariable
values that
* are greater than the value specified with GT
.
*
* The less than operator. The DataSource
results will have FilterVariable
values that are
* less than the value specified with LT
.
*
* The greater than or equal to operator. The DataSource
results will have FilterVariable
* values that are greater than or equal to the value specified with GE
.
*
* The less than or equal to operator. The DataSource
results will have FilterVariable
* values that are less than or equal to the value specified with LE
.
*
* The not equal to operator. The DataSource
results will have FilterVariable
values not
* equal to the value specified with NE
.
*
* A string that is found at the beginning of a variable, such as Name
or Id
.
*
* For example, a DataSource
could have the Name
2014-09-09-HolidayGiftMailer
* . To search for this DataSource
, select Name
for the FilterVariable
and
* any of the following strings for the Prefix
:
*
* 2014-09 *
** 2014-09-09 *
** 2014-09-09-Holiday *
*
* A two-value parameter that determines the sequence of the resulting list of DataSource
.
*
* 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
.
*
* The ID of the page in the paginated results. *
*/ private String nextToken; /** *
* The maximum number of DataSource
to include in the result.
*
* Use one of the following variables to filter a list of DataSource
:
*
* CreatedAt
- Sets the search criteria to DataSource
creation dates.
*
* Status
- Sets the search criteria to DataSource
statuses.
*
* Name
- Sets the search criteria to the contents of DataSource
Name
.
*
* DataUri
- Sets the search criteria to the URI of data files used to create the
* DataSource
. The URI can identify either a file or an Amazon Simple Storage Service (Amazon S3)
* bucket or directory.
*
* IAMUser
- Sets the search criteria to the user account that invoked the DataSource
* creation.
*
DataSource
:
*
* CreatedAt
- Sets the search criteria to DataSource
creation dates.
*
* Status
- Sets the search criteria to DataSource
statuses.
*
* Name
- Sets the search criteria to the contents of DataSource
Name
.
*
* DataUri
- Sets the search criteria to the URI of data files used to create the
* DataSource
. The URI can identify either a file or an Amazon Simple Storage Service (Amazon
* S3) bucket or directory.
*
* IAMUser
- Sets the search criteria to the user account that invoked the
* DataSource
creation.
*
* Use one of the following variables to filter a list of DataSource
:
*
* CreatedAt
- Sets the search criteria to DataSource
creation dates.
*
* Status
- Sets the search criteria to DataSource
statuses.
*
* Name
- Sets the search criteria to the contents of DataSource
Name
.
*
* DataUri
- Sets the search criteria to the URI of data files used to create the
* DataSource
. The URI can identify either a file or an Amazon Simple Storage Service (Amazon S3)
* bucket or directory.
*
* IAMUser
- Sets the search criteria to the user account that invoked the DataSource
* creation.
*
DataSource
:
*
* CreatedAt
- Sets the search criteria to DataSource
creation dates.
*
* Status
- Sets the search criteria to DataSource
statuses.
*
* Name
- Sets the search criteria to the contents of DataSource
Name
* .
*
* DataUri
- Sets the search criteria to the URI of data files used to create the
* DataSource
. The URI can identify either a file or an Amazon Simple Storage Service (Amazon
* S3) bucket or directory.
*
* IAMUser
- Sets the search criteria to the user account that invoked the
* DataSource
creation.
*
* Use one of the following variables to filter a list of DataSource
:
*
* CreatedAt
- Sets the search criteria to DataSource
creation dates.
*
* Status
- Sets the search criteria to DataSource
statuses.
*
* Name
- Sets the search criteria to the contents of DataSource
Name
.
*
* DataUri
- Sets the search criteria to the URI of data files used to create the
* DataSource
. The URI can identify either a file or an Amazon Simple Storage Service (Amazon S3)
* bucket or directory.
*
* IAMUser
- Sets the search criteria to the user account that invoked the DataSource
* creation.
*
DataSource
:
*
* CreatedAt
- Sets the search criteria to DataSource
creation dates.
*
* Status
- Sets the search criteria to DataSource
statuses.
*
* Name
- Sets the search criteria to the contents of DataSource
Name
.
*
* DataUri
- Sets the search criteria to the URI of data files used to create the
* DataSource
. The URI can identify either a file or an Amazon Simple Storage Service (Amazon
* S3) bucket or directory.
*
* IAMUser
- Sets the search criteria to the user account that invoked the
* DataSource
creation.
*
* Use one of the following variables to filter a list of DataSource
:
*
* CreatedAt
- Sets the search criteria to DataSource
creation dates.
*
* Status
- Sets the search criteria to DataSource
statuses.
*
* Name
- Sets the search criteria to the contents of DataSource
Name
.
*
* DataUri
- Sets the search criteria to the URI of data files used to create the
* DataSource
. The URI can identify either a file or an Amazon Simple Storage Service (Amazon S3)
* bucket or directory.
*
* IAMUser
- Sets the search criteria to the user account that invoked the DataSource
* creation.
*
DataSource
:
*
* CreatedAt
- Sets the search criteria to DataSource
creation dates.
*
* Status
- Sets the search criteria to DataSource
statuses.
*
* Name
- Sets the search criteria to the contents of DataSource
Name
.
*
* DataUri
- Sets the search criteria to the URI of data files used to create the
* DataSource
. The URI can identify either a file or an Amazon Simple Storage Service (Amazon
* S3) bucket or directory.
*
* IAMUser
- Sets the search criteria to the user account that invoked the
* DataSource
creation.
*
* Use one of the following variables to filter a list of DataSource
:
*
* CreatedAt
- Sets the search criteria to DataSource
creation dates.
*
* Status
- Sets the search criteria to DataSource
statuses.
*
* Name
- Sets the search criteria to the contents of DataSource
Name
.
*
* DataUri
- Sets the search criteria to the URI of data files used to create the
* DataSource
. The URI can identify either a file or an Amazon Simple Storage Service (Amazon S3)
* bucket or directory.
*
* IAMUser
- Sets the search criteria to the user account that invoked the DataSource
* creation.
*
DataSource
:
*
* CreatedAt
- Sets the search criteria to DataSource
creation dates.
*
* Status
- Sets the search criteria to DataSource
statuses.
*
* Name
- Sets the search criteria to the contents of DataSource
Name
.
*
* DataUri
- Sets the search criteria to the URI of data files used to create the
* DataSource
. The URI can identify either a file or an Amazon Simple Storage Service (Amazon
* S3) bucket or directory.
*
* IAMUser
- Sets the search criteria to the user account that invoked the
* DataSource
creation.
*
* The equal to operator. The DataSource
results will have FilterVariable
values that
* exactly match the value specified with EQ
.
*
DataSource
results will have FilterVariable
values
* that exactly match the value specified with EQ
.
*/
public void setEQ(String eQ) {
this.eQ = eQ;
}
/**
*
* The equal to operator. The DataSource
results will have FilterVariable
values that
* exactly match the value specified with EQ
.
*
DataSource
results will have FilterVariable
values
* that exactly match the value specified with EQ
.
*/
public String getEQ() {
return this.eQ;
}
/**
*
* The equal to operator. The DataSource
results will have FilterVariable
values that
* exactly match the value specified with EQ
.
*
DataSource
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.
*/
public DescribeDataSourcesRequest withEQ(String eQ) {
setEQ(eQ);
return this;
}
/**
*
* The greater than operator. The DataSource
results will have FilterVariable
values that
* are greater than the value specified with GT
.
*
DataSource
results will have FilterVariable
* values that are greater than the value specified with GT
.
*/
public void setGT(String gT) {
this.gT = gT;
}
/**
*
* The greater than operator. The DataSource
results will have FilterVariable
values that
* are greater than the value specified with GT
.
*
DataSource
results will have FilterVariable
* values that are greater than the value specified with GT
.
*/
public String getGT() {
return this.gT;
}
/**
*
* The greater than operator. The DataSource
results will have FilterVariable
values that
* are greater than the value specified with GT
.
*
DataSource
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.
*/
public DescribeDataSourcesRequest withGT(String gT) {
setGT(gT);
return this;
}
/**
*
* The less than operator. The DataSource
results will have FilterVariable
values that are
* less than the value specified with LT
.
*
DataSource
results will have FilterVariable
values
* that are less than the value specified with LT
.
*/
public void setLT(String lT) {
this.lT = lT;
}
/**
*
* The less than operator. The DataSource
results will have FilterVariable
values that are
* less than the value specified with LT
.
*
DataSource
results will have FilterVariable
values
* that are less than the value specified with LT
.
*/
public String getLT() {
return this.lT;
}
/**
*
* The less than operator. The DataSource
results will have FilterVariable
values that are
* less than the value specified with LT
.
*
DataSource
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.
*/
public DescribeDataSourcesRequest withLT(String lT) {
setLT(lT);
return this;
}
/**
*
* The greater than or equal to operator. The DataSource
results will have FilterVariable
* values that are greater than or equal to the value specified with GE
.
*
DataSource
results will have
* FilterVariable
values that are greater than or equal to the value specified with
* GE
.
*/
public void setGE(String gE) {
this.gE = gE;
}
/**
*
* The greater than or equal to operator. The DataSource
results will have FilterVariable
* values that are greater than or equal to the value specified with GE
.
*
DataSource
results will have
* FilterVariable
values that are greater than or equal to the value specified with
* GE
.
*/
public String getGE() {
return this.gE;
}
/**
*
* The greater than or equal to operator. The DataSource
results will have FilterVariable
* values that are greater than or equal to the value specified with GE
.
*
DataSource
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.
*/
public DescribeDataSourcesRequest withGE(String gE) {
setGE(gE);
return this;
}
/**
*
* The less than or equal to operator. The DataSource
results will have FilterVariable
* values that are less than or equal to the value specified with LE
.
*
DataSource
results will have
* FilterVariable
values that are less than or equal to the value specified with LE
* .
*/
public void setLE(String lE) {
this.lE = lE;
}
/**
*
* The less than or equal to operator. The DataSource
results will have FilterVariable
* values that are less than or equal to the value specified with LE
.
*
DataSource
results will have
* FilterVariable
values that are less than or equal to the value specified with
* LE
.
*/
public String getLE() {
return this.lE;
}
/**
*
* The less than or equal to operator. The DataSource
results will have FilterVariable
* values that are less than or equal to the value specified with LE
.
*
DataSource
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.
*/
public DescribeDataSourcesRequest withLE(String lE) {
setLE(lE);
return this;
}
/**
*
* The not equal to operator. The DataSource
results will have FilterVariable
values not
* equal to the value specified with NE
.
*
DataSource
results will have FilterVariable
* values not equal to the value specified with NE
.
*/
public void setNE(String nE) {
this.nE = nE;
}
/**
*
* The not equal to operator. The DataSource
results will have FilterVariable
values not
* equal to the value specified with NE
.
*
DataSource
results will have FilterVariable
* values not equal to the value specified with NE
.
*/
public String getNE() {
return this.nE;
}
/**
*
* The not equal to operator. The DataSource
results will have FilterVariable
values not
* equal to the value specified with NE
.
*
DataSource
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.
*/
public DescribeDataSourcesRequest withNE(String nE) {
setNE(nE);
return this;
}
/**
*
* A string that is found at the beginning of a variable, such as Name
or Id
.
*
* For example, a DataSource
could have the Name
2014-09-09-HolidayGiftMailer
* . To search for this DataSource
, select Name
for the FilterVariable
and
* any of the following strings for the Prefix
:
*
* 2014-09 *
** 2014-09-09 *
** 2014-09-09-Holiday *
*Name
or Id
.
*
* For example, a DataSource
could have the Name
* 2014-09-09-HolidayGiftMailer
. To search for this DataSource
, select
* Name
for the FilterVariable
and any of the following strings for the
* Prefix
:
*
* 2014-09 *
** 2014-09-09 *
** 2014-09-09-Holiday *
*
* A string that is found at the beginning of a variable, such as Name
or Id
.
*
* For example, a DataSource
could have the Name
2014-09-09-HolidayGiftMailer
* . To search for this DataSource
, select Name
for the FilterVariable
and
* any of the following strings for the Prefix
:
*
* 2014-09 *
** 2014-09-09 *
** 2014-09-09-Holiday *
*Name
or Id
.
*
* For example, a DataSource
could have the Name
* 2014-09-09-HolidayGiftMailer
. To search for this DataSource
, select
* Name
for the FilterVariable
and any of the following strings for the
* Prefix
:
*
* 2014-09 *
** 2014-09-09 *
** 2014-09-09-Holiday *
*
* A string that is found at the beginning of a variable, such as Name
or Id
.
*
* For example, a DataSource
could have the Name
2014-09-09-HolidayGiftMailer
* . To search for this DataSource
, select Name
for the FilterVariable
and
* any of the following strings for the Prefix
:
*
* 2014-09 *
** 2014-09-09 *
** 2014-09-09-Holiday *
*Name
or Id
.
*
* For example, a DataSource
could have the Name
* 2014-09-09-HolidayGiftMailer
. To search for this DataSource
, select
* Name
for the FilterVariable
and any of the following strings for the
* Prefix
:
*
* 2014-09 *
** 2014-09-09 *
** 2014-09-09-Holiday *
*
* A two-value parameter that determines the sequence of the resulting list of DataSource
.
*
* 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
.
*
DataSource
.
*
* 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 void setSortOrder(String sortOrder) {
this.sortOrder = sortOrder;
}
/**
*
* A two-value parameter that determines the sequence of the resulting list of DataSource
.
*
* 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
.
*
DataSource
.
*
* 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 getSortOrder() {
return this.sortOrder;
}
/**
*
* A two-value parameter that determines the sequence of the resulting list of DataSource
.
*
* 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
.
*
DataSource
.
*
* 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
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SortOrder
*/
public DescribeDataSourcesRequest withSortOrder(String sortOrder) {
setSortOrder(sortOrder);
return this;
}
/**
*
* A two-value parameter that determines the sequence of the resulting list of DataSource
.
*
* 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
.
*
DataSource
.
*
* 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 void setSortOrder(SortOrder sortOrder) {
withSortOrder(sortOrder);
}
/**
*
* A two-value parameter that determines the sequence of the resulting list of DataSource
.
*
* 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
.
*
DataSource
.
*
* 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
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SortOrder
*/
public DescribeDataSourcesRequest withSortOrder(SortOrder sortOrder) {
this.sortOrder = sortOrder.toString();
return this;
}
/**
*
* The ID of the page in the paginated results. *
* * @param nextToken * The ID of the page in the paginated results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** The ID of the page in the paginated results. *
* * @return The ID of the page in the paginated results. */ public String getNextToken() { return this.nextToken; } /** ** 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. */ public DescribeDataSourcesRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *
* The maximum number of DataSource
to include in the result.
*
DataSource
to include in the result.
*/
public void setLimit(Integer limit) {
this.limit = limit;
}
/**
*
* The maximum number of DataSource
to include in the result.
*
DataSource
to include in the result.
*/
public Integer getLimit() {
return this.limit;
}
/**
*
* The maximum number of DataSource
to include in the result.
*
DataSource
to include in the result.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeDataSourcesRequest withLimit(Integer limit) {
setLimit(limit);
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 (getFilterVariable() != null)
sb.append("FilterVariable: ").append(getFilterVariable()).append(",");
if (getEQ() != null)
sb.append("EQ: ").append(getEQ()).append(",");
if (getGT() != null)
sb.append("GT: ").append(getGT()).append(",");
if (getLT() != null)
sb.append("LT: ").append(getLT()).append(",");
if (getGE() != null)
sb.append("GE: ").append(getGE()).append(",");
if (getLE() != null)
sb.append("LE: ").append(getLE()).append(",");
if (getNE() != null)
sb.append("NE: ").append(getNE()).append(",");
if (getPrefix() != null)
sb.append("Prefix: ").append(getPrefix()).append(",");
if (getSortOrder() != null)
sb.append("SortOrder: ").append(getSortOrder()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getLimit() != null)
sb.append("Limit: ").append(getLimit());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeDataSourcesRequest == false)
return false;
DescribeDataSourcesRequest other = (DescribeDataSourcesRequest) obj;
if (other.getFilterVariable() == null ^ this.getFilterVariable() == null)
return false;
if (other.getFilterVariable() != null && other.getFilterVariable().equals(this.getFilterVariable()) == false)
return false;
if (other.getEQ() == null ^ this.getEQ() == null)
return false;
if (other.getEQ() != null && other.getEQ().equals(this.getEQ()) == false)
return false;
if (other.getGT() == null ^ this.getGT() == null)
return false;
if (other.getGT() != null && other.getGT().equals(this.getGT()) == false)
return false;
if (other.getLT() == null ^ this.getLT() == null)
return false;
if (other.getLT() != null && other.getLT().equals(this.getLT()) == false)
return false;
if (other.getGE() == null ^ this.getGE() == null)
return false;
if (other.getGE() != null && other.getGE().equals(this.getGE()) == false)
return false;
if (other.getLE() == null ^ this.getLE() == null)
return false;
if (other.getLE() != null && other.getLE().equals(this.getLE()) == false)
return false;
if (other.getNE() == null ^ this.getNE() == null)
return false;
if (other.getNE() != null && other.getNE().equals(this.getNE()) == false)
return false;
if (other.getPrefix() == null ^ this.getPrefix() == null)
return false;
if (other.getPrefix() != null && other.getPrefix().equals(this.getPrefix()) == 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.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
if (other.getLimit() == null ^ this.getLimit() == null)
return false;
if (other.getLimit() != null && other.getLimit().equals(this.getLimit()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFilterVariable() == null) ? 0 : getFilterVariable().hashCode());
hashCode = prime * hashCode + ((getEQ() == null) ? 0 : getEQ().hashCode());
hashCode = prime * hashCode + ((getGT() == null) ? 0 : getGT().hashCode());
hashCode = prime * hashCode + ((getLT() == null) ? 0 : getLT().hashCode());
hashCode = prime * hashCode + ((getGE() == null) ? 0 : getGE().hashCode());
hashCode = prime * hashCode + ((getLE() == null) ? 0 : getLE().hashCode());
hashCode = prime * hashCode + ((getNE() == null) ? 0 : getNE().hashCode());
hashCode = prime * hashCode + ((getPrefix() == null) ? 0 : getPrefix().hashCode());
hashCode = prime * hashCode + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getLimit() == null) ? 0 : getLimit().hashCode());
return hashCode;
}
@Override
public DescribeDataSourcesRequest clone() {
return (DescribeDataSourcesRequest) super.clone();
}
}