com.amazonaws.services.fsx.model.DescribeFileSystemAliasesRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-fsx 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.fsx.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* The request object for DescribeFileSystemAliases
operation.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeFileSystemAliasesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
private String clientRequestToken;
/**
*
* The ID of the file system to return the associated DNS aliases for (String).
*
*/
private String fileSystemId;
/**
*
* Maximum number of DNS aliases to return in the response (integer). This parameter value must be greater than 0.
* The number of items that Amazon FSx returns is the minimum of the MaxResults
parameter specified in
* the request and the service's internal maximum number of items per page.
*
*/
private Integer maxResults;
/**
*
* Opaque pagination token returned from a previous DescribeFileSystemAliases
operation (String). If a
* token is included in the request, the action continues the list from where the previous returning call left off.
*
*/
private String nextToken;
/**
* @param clientRequestToken
*/
public void setClientRequestToken(String clientRequestToken) {
this.clientRequestToken = clientRequestToken;
}
/**
* @return
*/
public String getClientRequestToken() {
return this.clientRequestToken;
}
/**
* @param clientRequestToken
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFileSystemAliasesRequest withClientRequestToken(String clientRequestToken) {
setClientRequestToken(clientRequestToken);
return this;
}
/**
*
* The ID of the file system to return the associated DNS aliases for (String).
*
*
* @param fileSystemId
* The ID of the file system to return the associated DNS aliases for (String).
*/
public void setFileSystemId(String fileSystemId) {
this.fileSystemId = fileSystemId;
}
/**
*
* The ID of the file system to return the associated DNS aliases for (String).
*
*
* @return The ID of the file system to return the associated DNS aliases for (String).
*/
public String getFileSystemId() {
return this.fileSystemId;
}
/**
*
* The ID of the file system to return the associated DNS aliases for (String).
*
*
* @param fileSystemId
* The ID of the file system to return the associated DNS aliases for (String).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFileSystemAliasesRequest withFileSystemId(String fileSystemId) {
setFileSystemId(fileSystemId);
return this;
}
/**
*
* Maximum number of DNS aliases to return in the response (integer). This parameter value must be greater than 0.
* The number of items that Amazon FSx returns is the minimum of the MaxResults
parameter specified in
* the request and the service's internal maximum number of items per page.
*
*
* @param maxResults
* Maximum number of DNS aliases to return in the response (integer). This parameter value must be greater
* than 0. The number of items that Amazon FSx returns is the minimum of the MaxResults
* parameter specified in the request and the service's internal maximum number of items per page.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* Maximum number of DNS aliases to return in the response (integer). This parameter value must be greater than 0.
* The number of items that Amazon FSx returns is the minimum of the MaxResults
parameter specified in
* the request and the service's internal maximum number of items per page.
*
*
* @return Maximum number of DNS aliases to return in the response (integer). This parameter value must be greater
* than 0. The number of items that Amazon FSx returns is the minimum of the MaxResults
* parameter specified in the request and the service's internal maximum number of items per page.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* Maximum number of DNS aliases to return in the response (integer). This parameter value must be greater than 0.
* The number of items that Amazon FSx returns is the minimum of the MaxResults
parameter specified in
* the request and the service's internal maximum number of items per page.
*
*
* @param maxResults
* Maximum number of DNS aliases to return in the response (integer). This parameter value must be greater
* than 0. The number of items that Amazon FSx returns is the minimum of the MaxResults
* parameter specified in the request and the service's internal maximum number of items per page.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFileSystemAliasesRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* Opaque pagination token returned from a previous DescribeFileSystemAliases
operation (String). If a
* token is included in the request, the action continues the list from where the previous returning call left off.
*
*
* @param nextToken
* Opaque pagination token returned from a previous DescribeFileSystemAliases
operation
* (String). If a token is included in the request, the action continues the list from where the previous
* returning call left off.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* Opaque pagination token returned from a previous DescribeFileSystemAliases
operation (String). If a
* token is included in the request, the action continues the list from where the previous returning call left off.
*
*
* @return Opaque pagination token returned from a previous DescribeFileSystemAliases
operation
* (String). If a token is included in the request, the action continues the list from where the previous
* returning call left off.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* Opaque pagination token returned from a previous DescribeFileSystemAliases
operation (String). If a
* token is included in the request, the action continues the list from where the previous returning call left off.
*
*
* @param nextToken
* Opaque pagination token returned from a previous DescribeFileSystemAliases
operation
* (String). If a token is included in the request, the action continues the list from where the previous
* returning call left off.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFileSystemAliasesRequest 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 (getClientRequestToken() != null)
sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(",");
if (getFileSystemId() != null)
sb.append("FileSystemId: ").append(getFileSystemId()).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 DescribeFileSystemAliasesRequest == false)
return false;
DescribeFileSystemAliasesRequest other = (DescribeFileSystemAliasesRequest) obj;
if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null)
return false;
if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false)
return false;
if (other.getFileSystemId() == null ^ this.getFileSystemId() == null)
return false;
if (other.getFileSystemId() != null && other.getFileSystemId().equals(this.getFileSystemId()) == 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 + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode());
hashCode = prime * hashCode + ((getFileSystemId() == null) ? 0 : getFileSystemId().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public DescribeFileSystemAliasesRequest clone() {
return (DescribeFileSystemAliasesRequest) super.clone();
}
}