
com.amazonaws.services.datazone.model.ListProjectsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-datazoneexternal 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.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 ListProjectsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The identifier of the Amazon DataZone domain.
*
*/
private String domainIdentifier;
/**
*
* The identifier of a group.
*
*/
private String groupIdentifier;
/**
*
* The maximum number of projects to return in a single call to ListProjects
. When the number of
* projects 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 ListProjects
to list the next
* set of projects.
*
*/
private Integer maxResults;
/**
*
* The name of the project.
*
*/
private String name;
/**
*
* When the number of projects 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 projects, the response
* includes a pagination token named NextToken
. You can specify this NextToken
value in a
* subsequent call to ListProjects
to list the next set of projects.
*
*/
private String nextToken;
/**
*
* The identifier of the Amazon DataZone user.
*
*/
private String userIdentifier;
/**
*
* The identifier of the Amazon DataZone domain.
*
*
* @param domainIdentifier
* The identifier of the Amazon DataZone domain.
*/
public void setDomainIdentifier(String domainIdentifier) {
this.domainIdentifier = domainIdentifier;
}
/**
*
* The identifier of the Amazon DataZone domain.
*
*
* @return The identifier of the Amazon DataZone domain.
*/
public String getDomainIdentifier() {
return this.domainIdentifier;
}
/**
*
* The identifier of the Amazon DataZone domain.
*
*
* @param domainIdentifier
* The identifier of the Amazon DataZone domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListProjectsRequest withDomainIdentifier(String domainIdentifier) {
setDomainIdentifier(domainIdentifier);
return this;
}
/**
*
* The identifier of a group.
*
*
* @param groupIdentifier
* The identifier of a group.
*/
public void setGroupIdentifier(String groupIdentifier) {
this.groupIdentifier = groupIdentifier;
}
/**
*
* The identifier of a group.
*
*
* @return The identifier of a group.
*/
public String getGroupIdentifier() {
return this.groupIdentifier;
}
/**
*
* The identifier of a group.
*
*
* @param groupIdentifier
* The identifier of a group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListProjectsRequest withGroupIdentifier(String groupIdentifier) {
setGroupIdentifier(groupIdentifier);
return this;
}
/**
*
* The maximum number of projects to return in a single call to ListProjects
. When the number of
* projects 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 ListProjects
to list the next
* set of projects.
*
*
* @param maxResults
* The maximum number of projects to return in a single call to ListProjects
. When the number of
* projects 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 ListProjects
to list
* the next set of projects.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of projects to return in a single call to ListProjects
. When the number of
* projects 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 ListProjects
to list the next
* set of projects.
*
*
* @return The maximum number of projects to return in a single call to ListProjects
. When the number
* of projects 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 ListProjects
to list
* the next set of projects.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of projects to return in a single call to ListProjects
. When the number of
* projects 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 ListProjects
to list the next
* set of projects.
*
*
* @param maxResults
* The maximum number of projects to return in a single call to ListProjects
. When the number of
* projects 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 ListProjects
to list
* the next set of projects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListProjectsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* The name of the project.
*
*
* @param name
* The name of the project.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the project.
*
*
* @return The name of the project.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the project.
*
*
* @param name
* The name of the project.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListProjectsRequest withName(String name) {
setName(name);
return this;
}
/**
*
* When the number of projects 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 projects, the response
* includes a pagination token named NextToken
. You can specify this NextToken
value in a
* subsequent call to ListProjects
to list the next set of projects.
*
*
* @param nextToken
* When the number of projects 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 projects,
* the response includes a pagination token named NextToken
. You can specify this
* NextToken
value in a subsequent call to ListProjects
to list the next set of
* projects.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* When the number of projects 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 projects, the response
* includes a pagination token named NextToken
. You can specify this NextToken
value in a
* subsequent call to ListProjects
to list the next set of projects.
*
*
* @return When the number of projects 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
* projects, the response includes a pagination token named NextToken
. You can specify this
* NextToken
value in a subsequent call to ListProjects
to list the next set of
* projects.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* When the number of projects 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 projects, the response
* includes a pagination token named NextToken
. You can specify this NextToken
value in a
* subsequent call to ListProjects
to list the next set of projects.
*
*
* @param nextToken
* When the number of projects 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 projects,
* the response includes a pagination token named NextToken
. You can specify this
* NextToken
value in a subsequent call to ListProjects
to list the next set of
* projects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListProjectsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* The identifier of the Amazon DataZone user.
*
*
* @param userIdentifier
* The identifier of the Amazon DataZone user.
*/
public void setUserIdentifier(String userIdentifier) {
this.userIdentifier = userIdentifier;
}
/**
*
* The identifier of the Amazon DataZone user.
*
*
* @return The identifier of the Amazon DataZone user.
*/
public String getUserIdentifier() {
return this.userIdentifier;
}
/**
*
* The identifier of the Amazon DataZone user.
*
*
* @param userIdentifier
* The identifier of the Amazon DataZone user.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListProjectsRequest withUserIdentifier(String userIdentifier) {
setUserIdentifier(userIdentifier);
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 (getGroupIdentifier() != null)
sb.append("GroupIdentifier: ").append(getGroupIdentifier()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getName() != null)
sb.append("Name: ").append("***Sensitive Data Redacted***").append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getUserIdentifier() != null)
sb.append("UserIdentifier: ").append(getUserIdentifier());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListProjectsRequest == false)
return false;
ListProjectsRequest other = (ListProjectsRequest) obj;
if (other.getDomainIdentifier() == null ^ this.getDomainIdentifier() == null)
return false;
if (other.getDomainIdentifier() != null && other.getDomainIdentifier().equals(this.getDomainIdentifier()) == false)
return false;
if (other.getGroupIdentifier() == null ^ this.getGroupIdentifier() == null)
return false;
if (other.getGroupIdentifier() != null && other.getGroupIdentifier().equals(this.getGroupIdentifier()) == 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.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == 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.getUserIdentifier() == null ^ this.getUserIdentifier() == null)
return false;
if (other.getUserIdentifier() != null && other.getUserIdentifier().equals(this.getUserIdentifier()) == 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 + ((getGroupIdentifier() == null) ? 0 : getGroupIdentifier().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getUserIdentifier() == null) ? 0 : getUserIdentifier().hashCode());
return hashCode;
}
@Override
public ListProjectsRequest clone() {
return (ListProjectsRequest) super.clone();
}
}