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

com.amazonaws.services.datazone.model.ListSubscriptionTargetsRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show 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.datazone.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 ListSubscriptionTargetsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The identifier of the Amazon DataZone domain where you want to list subscription targets. *

*/ private String domainIdentifier; /** *

* The identifier of the environment where you want to list subscription targets. *

*/ private String environmentIdentifier; /** *

* The maximum number of subscription targets to return in a single call to ListSubscriptionTargets. * When the number of subscription targets to be listed is greater than the value of MaxResults, the * response contains a NextToken value that you can use in a subsequent call to * ListSubscriptionTargets to list the next set of subscription targets. *

*/ private Integer maxResults; /** *

* When the number of subscription targets is greater than the default value for the MaxResults * parameter, or if you explicitly specify a value for MaxResults that is less than the number of * subscription targets, the response includes a pagination token named NextToken. You can specify this * NextToken value in a subsequent call to ListSubscriptionTargets to list the next set of * subscription targets. *

*/ private String nextToken; /** *

* Specifies the way in which the results of this action are to be sorted. *

*/ private String sortBy; /** *

* Specifies the sort order for the results of this action. *

*/ private String sortOrder; /** *

* The identifier of the Amazon DataZone domain where you want to list subscription targets. *

* * @param domainIdentifier * The identifier of the Amazon DataZone domain where you want to list subscription targets. */ public void setDomainIdentifier(String domainIdentifier) { this.domainIdentifier = domainIdentifier; } /** *

* The identifier of the Amazon DataZone domain where you want to list subscription targets. *

* * @return The identifier of the Amazon DataZone domain where you want to list subscription targets. */ public String getDomainIdentifier() { return this.domainIdentifier; } /** *

* The identifier of the Amazon DataZone domain where you want to list subscription targets. *

* * @param domainIdentifier * The identifier of the Amazon DataZone domain where you want to list subscription targets. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSubscriptionTargetsRequest withDomainIdentifier(String domainIdentifier) { setDomainIdentifier(domainIdentifier); return this; } /** *

* The identifier of the environment where you want to list subscription targets. *

* * @param environmentIdentifier * The identifier of the environment where you want to list subscription targets. */ public void setEnvironmentIdentifier(String environmentIdentifier) { this.environmentIdentifier = environmentIdentifier; } /** *

* The identifier of the environment where you want to list subscription targets. *

* * @return The identifier of the environment where you want to list subscription targets. */ public String getEnvironmentIdentifier() { return this.environmentIdentifier; } /** *

* The identifier of the environment where you want to list subscription targets. *

* * @param environmentIdentifier * The identifier of the environment where you want to list subscription targets. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSubscriptionTargetsRequest withEnvironmentIdentifier(String environmentIdentifier) { setEnvironmentIdentifier(environmentIdentifier); return this; } /** *

* The maximum number of subscription targets to return in a single call to ListSubscriptionTargets. * When the number of subscription targets to be listed is greater than the value of MaxResults, the * response contains a NextToken value that you can use in a subsequent call to * ListSubscriptionTargets to list the next set of subscription targets. *

* * @param maxResults * The maximum number of subscription targets to return in a single call to * ListSubscriptionTargets. When the number of subscription targets to be listed is greater than * the value of MaxResults, the response contains a NextToken value that you can * use in a subsequent call to ListSubscriptionTargets to list the next set of subscription * targets. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of subscription targets to return in a single call to ListSubscriptionTargets. * When the number of subscription targets to be listed is greater than the value of MaxResults, the * response contains a NextToken value that you can use in a subsequent call to * ListSubscriptionTargets to list the next set of subscription targets. *

* * @return The maximum number of subscription targets to return in a single call to * ListSubscriptionTargets. When the number of subscription targets to be listed is greater * than the value of MaxResults, the response contains a NextToken value that you * can use in a subsequent call to ListSubscriptionTargets to list the next set of subscription * targets. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of subscription targets to return in a single call to ListSubscriptionTargets. * When the number of subscription targets to be listed is greater than the value of MaxResults, the * response contains a NextToken value that you can use in a subsequent call to * ListSubscriptionTargets to list the next set of subscription targets. *

* * @param maxResults * The maximum number of subscription targets to return in a single call to * ListSubscriptionTargets. When the number of subscription targets to be listed is greater than * the value of MaxResults, the response contains a NextToken value that you can * use in a subsequent call to ListSubscriptionTargets to list the next set of subscription * targets. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSubscriptionTargetsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* When the number of subscription targets is greater than the default value for the MaxResults * parameter, or if you explicitly specify a value for MaxResults that is less than the number of * subscription targets, the response includes a pagination token named NextToken. You can specify this * NextToken value in a subsequent call to ListSubscriptionTargets to list the next set of * subscription targets. *

* * @param nextToken * When the number of subscription targets is greater than the default value for the MaxResults * parameter, or if you explicitly specify a value for MaxResults that is less than the number * of subscription targets, the response includes a pagination token named NextToken. You can * specify this NextToken value in a subsequent call to ListSubscriptionTargets to * list the next set of subscription targets. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* When the number of subscription targets is greater than the default value for the MaxResults * parameter, or if you explicitly specify a value for MaxResults that is less than the number of * subscription targets, the response includes a pagination token named NextToken. You can specify this * NextToken value in a subsequent call to ListSubscriptionTargets to list the next set of * subscription targets. *

* * @return When the number of subscription targets is greater than the default value for the MaxResults * parameter, or if you explicitly specify a value for MaxResults that is less than the number * of subscription targets, the response includes a pagination token named NextToken. You can * specify this NextToken value in a subsequent call to ListSubscriptionTargets to * list the next set of subscription targets. */ public String getNextToken() { return this.nextToken; } /** *

* When the number of subscription targets is greater than the default value for the MaxResults * parameter, or if you explicitly specify a value for MaxResults that is less than the number of * subscription targets, the response includes a pagination token named NextToken. You can specify this * NextToken value in a subsequent call to ListSubscriptionTargets to list the next set of * subscription targets. *

* * @param nextToken * When the number of subscription targets is greater than the default value for the MaxResults * parameter, or if you explicitly specify a value for MaxResults that is less than the number * of subscription targets, the response includes a pagination token named NextToken. You can * specify this NextToken value in a subsequent call to ListSubscriptionTargets to * list the next set of subscription targets. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSubscriptionTargetsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* Specifies the way in which the results of this action are to be sorted. *

* * @param sortBy * Specifies the way in which the results of this action are to be sorted. * @see SortKey */ public void setSortBy(String sortBy) { this.sortBy = sortBy; } /** *

* Specifies the way in which the results of this action are to be sorted. *

* * @return Specifies the way in which the results of this action are to be sorted. * @see SortKey */ public String getSortBy() { return this.sortBy; } /** *

* Specifies the way in which the results of this action are to be sorted. *

* * @param sortBy * Specifies the way in which the results of this action are to be sorted. * @return Returns a reference to this object so that method calls can be chained together. * @see SortKey */ public ListSubscriptionTargetsRequest withSortBy(String sortBy) { setSortBy(sortBy); return this; } /** *

* Specifies the way in which the results of this action are to be sorted. *

* * @param sortBy * Specifies the way in which the results of this action are to be sorted. * @return Returns a reference to this object so that method calls can be chained together. * @see SortKey */ public ListSubscriptionTargetsRequest withSortBy(SortKey sortBy) { this.sortBy = sortBy.toString(); return this; } /** *

* Specifies the sort order for the results of this action. *

* * @param sortOrder * Specifies the sort order for the results of this action. * @see SortOrder */ public void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; } /** *

* Specifies the sort order for the results of this action. *

* * @return Specifies the sort order for the results of this action. * @see SortOrder */ public String getSortOrder() { return this.sortOrder; } /** *

* Specifies the sort order for the results of this action. *

* * @param sortOrder * Specifies the sort order for the results of this action. * @return Returns a reference to this object so that method calls can be chained together. * @see SortOrder */ public ListSubscriptionTargetsRequest withSortOrder(String sortOrder) { setSortOrder(sortOrder); return this; } /** *

* Specifies the sort order for the results of this action. *

* * @param sortOrder * Specifies the sort order for the results of this action. * @return Returns a reference to this object so that method calls can be chained together. * @see SortOrder */ public ListSubscriptionTargetsRequest 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 (getDomainIdentifier() != null) sb.append("DomainIdentifier: ").append(getDomainIdentifier()).append(","); if (getEnvironmentIdentifier() != null) sb.append("EnvironmentIdentifier: ").append(getEnvironmentIdentifier()).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 ListSubscriptionTargetsRequest == false) return false; ListSubscriptionTargetsRequest other = (ListSubscriptionTargetsRequest) obj; if (other.getDomainIdentifier() == null ^ this.getDomainIdentifier() == null) return false; if (other.getDomainIdentifier() != null && other.getDomainIdentifier().equals(this.getDomainIdentifier()) == false) return false; if (other.getEnvironmentIdentifier() == null ^ this.getEnvironmentIdentifier() == null) return false; if (other.getEnvironmentIdentifier() != null && other.getEnvironmentIdentifier().equals(this.getEnvironmentIdentifier()) == 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 + ((getDomainIdentifier() == null) ? 0 : getDomainIdentifier().hashCode()); hashCode = prime * hashCode + ((getEnvironmentIdentifier() == null) ? 0 : getEnvironmentIdentifier().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 ListSubscriptionTargetsRequest clone() { return (ListSubscriptionTargetsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy