com.amazonaws.services.elasticfilesystem.model.DescribeMountTargetsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-efs Show documentation
/*
* 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.elasticfilesystem.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 DescribeMountTargetsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* (Optional) Maximum number of mount targets to return in the response. Currently, this number is automatically set
* to 10, and other values are ignored. The response is paginated at 100 per page if you have more than 100 mount
* targets.
*
*/
private Integer maxItems;
/**
*
* (Optional) Opaque pagination token returned from a previous DescribeMountTargets
operation (String).
* If present, it specifies to continue the list from where the previous returning call left off.
*
*/
private String marker;
/**
*
* (Optional) ID of the file system whose mount targets you want to list (String). It must be included in your
* request if an AccessPointId
or MountTargetId
is not included. Accepts either a file
* system ID or ARN as input.
*
*/
private String fileSystemId;
/**
*
* (Optional) ID of the mount target that you want to have described (String). It must be included in your request
* if FileSystemId
is not included. Accepts either a mount target ID or ARN as input.
*
*/
private String mountTargetId;
/**
*
* (Optional) The ID of the access point whose mount targets that you want to list. It must be included in your
* request if a FileSystemId
or MountTargetId
is not included in your request. Accepts
* either an access point ID or ARN as input.
*
*/
private String accessPointId;
/**
*
* (Optional) Maximum number of mount targets to return in the response. Currently, this number is automatically set
* to 10, and other values are ignored. The response is paginated at 100 per page if you have more than 100 mount
* targets.
*
*
* @param maxItems
* (Optional) Maximum number of mount targets to return in the response. Currently, this number is
* automatically set to 10, and other values are ignored. The response is paginated at 100 per page if you
* have more than 100 mount targets.
*/
public void setMaxItems(Integer maxItems) {
this.maxItems = maxItems;
}
/**
*
* (Optional) Maximum number of mount targets to return in the response. Currently, this number is automatically set
* to 10, and other values are ignored. The response is paginated at 100 per page if you have more than 100 mount
* targets.
*
*
* @return (Optional) Maximum number of mount targets to return in the response. Currently, this number is
* automatically set to 10, and other values are ignored. The response is paginated at 100 per page if you
* have more than 100 mount targets.
*/
public Integer getMaxItems() {
return this.maxItems;
}
/**
*
* (Optional) Maximum number of mount targets to return in the response. Currently, this number is automatically set
* to 10, and other values are ignored. The response is paginated at 100 per page if you have more than 100 mount
* targets.
*
*
* @param maxItems
* (Optional) Maximum number of mount targets to return in the response. Currently, this number is
* automatically set to 10, and other values are ignored. The response is paginated at 100 per page if you
* have more than 100 mount targets.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMountTargetsRequest withMaxItems(Integer maxItems) {
setMaxItems(maxItems);
return this;
}
/**
*
* (Optional) Opaque pagination token returned from a previous DescribeMountTargets
operation (String).
* If present, it specifies to continue the list from where the previous returning call left off.
*
*
* @param marker
* (Optional) Opaque pagination token returned from a previous DescribeMountTargets
operation
* (String). If present, it specifies to continue the list from where the previous returning call left off.
*/
public void setMarker(String marker) {
this.marker = marker;
}
/**
*
* (Optional) Opaque pagination token returned from a previous DescribeMountTargets
operation (String).
* If present, it specifies to continue the list from where the previous returning call left off.
*
*
* @return (Optional) Opaque pagination token returned from a previous DescribeMountTargets
operation
* (String). If present, it specifies to continue the list from where the previous returning call left off.
*/
public String getMarker() {
return this.marker;
}
/**
*
* (Optional) Opaque pagination token returned from a previous DescribeMountTargets
operation (String).
* If present, it specifies to continue the list from where the previous returning call left off.
*
*
* @param marker
* (Optional) Opaque pagination token returned from a previous DescribeMountTargets
operation
* (String). If present, it specifies to continue 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 DescribeMountTargetsRequest withMarker(String marker) {
setMarker(marker);
return this;
}
/**
*
* (Optional) ID of the file system whose mount targets you want to list (String). It must be included in your
* request if an AccessPointId
or MountTargetId
is not included. Accepts either a file
* system ID or ARN as input.
*
*
* @param fileSystemId
* (Optional) ID of the file system whose mount targets you want to list (String). It must be included in
* your request if an AccessPointId
or MountTargetId
is not included. Accepts
* either a file system ID or ARN as input.
*/
public void setFileSystemId(String fileSystemId) {
this.fileSystemId = fileSystemId;
}
/**
*
* (Optional) ID of the file system whose mount targets you want to list (String). It must be included in your
* request if an AccessPointId
or MountTargetId
is not included. Accepts either a file
* system ID or ARN as input.
*
*
* @return (Optional) ID of the file system whose mount targets you want to list (String). It must be included in
* your request if an AccessPointId
or MountTargetId
is not included. Accepts
* either a file system ID or ARN as input.
*/
public String getFileSystemId() {
return this.fileSystemId;
}
/**
*
* (Optional) ID of the file system whose mount targets you want to list (String). It must be included in your
* request if an AccessPointId
or MountTargetId
is not included. Accepts either a file
* system ID or ARN as input.
*
*
* @param fileSystemId
* (Optional) ID of the file system whose mount targets you want to list (String). It must be included in
* your request if an AccessPointId
or MountTargetId
is not included. Accepts
* either a file system ID or ARN as input.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMountTargetsRequest withFileSystemId(String fileSystemId) {
setFileSystemId(fileSystemId);
return this;
}
/**
*
* (Optional) ID of the mount target that you want to have described (String). It must be included in your request
* if FileSystemId
is not included. Accepts either a mount target ID or ARN as input.
*
*
* @param mountTargetId
* (Optional) ID of the mount target that you want to have described (String). It must be included in your
* request if FileSystemId
is not included. Accepts either a mount target ID or ARN as input.
*/
public void setMountTargetId(String mountTargetId) {
this.mountTargetId = mountTargetId;
}
/**
*
* (Optional) ID of the mount target that you want to have described (String). It must be included in your request
* if FileSystemId
is not included. Accepts either a mount target ID or ARN as input.
*
*
* @return (Optional) ID of the mount target that you want to have described (String). It must be included in your
* request if FileSystemId
is not included. Accepts either a mount target ID or ARN as input.
*/
public String getMountTargetId() {
return this.mountTargetId;
}
/**
*
* (Optional) ID of the mount target that you want to have described (String). It must be included in your request
* if FileSystemId
is not included. Accepts either a mount target ID or ARN as input.
*
*
* @param mountTargetId
* (Optional) ID of the mount target that you want to have described (String). It must be included in your
* request if FileSystemId
is not included. Accepts either a mount target ID or ARN as input.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMountTargetsRequest withMountTargetId(String mountTargetId) {
setMountTargetId(mountTargetId);
return this;
}
/**
*
* (Optional) The ID of the access point whose mount targets that you want to list. It must be included in your
* request if a FileSystemId
or MountTargetId
is not included in your request. Accepts
* either an access point ID or ARN as input.
*
*
* @param accessPointId
* (Optional) The ID of the access point whose mount targets that you want to list. It must be included in
* your request if a FileSystemId
or MountTargetId
is not included in your request.
* Accepts either an access point ID or ARN as input.
*/
public void setAccessPointId(String accessPointId) {
this.accessPointId = accessPointId;
}
/**
*
* (Optional) The ID of the access point whose mount targets that you want to list. It must be included in your
* request if a FileSystemId
or MountTargetId
is not included in your request. Accepts
* either an access point ID or ARN as input.
*
*
* @return (Optional) The ID of the access point whose mount targets that you want to list. It must be included in
* your request if a FileSystemId
or MountTargetId
is not included in your
* request. Accepts either an access point ID or ARN as input.
*/
public String getAccessPointId() {
return this.accessPointId;
}
/**
*
* (Optional) The ID of the access point whose mount targets that you want to list. It must be included in your
* request if a FileSystemId
or MountTargetId
is not included in your request. Accepts
* either an access point ID or ARN as input.
*
*
* @param accessPointId
* (Optional) The ID of the access point whose mount targets that you want to list. It must be included in
* your request if a FileSystemId
or MountTargetId
is not included in your request.
* Accepts either an access point ID or ARN as input.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMountTargetsRequest withAccessPointId(String accessPointId) {
setAccessPointId(accessPointId);
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 (getMaxItems() != null)
sb.append("MaxItems: ").append(getMaxItems()).append(",");
if (getMarker() != null)
sb.append("Marker: ").append(getMarker()).append(",");
if (getFileSystemId() != null)
sb.append("FileSystemId: ").append(getFileSystemId()).append(",");
if (getMountTargetId() != null)
sb.append("MountTargetId: ").append(getMountTargetId()).append(",");
if (getAccessPointId() != null)
sb.append("AccessPointId: ").append(getAccessPointId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeMountTargetsRequest == false)
return false;
DescribeMountTargetsRequest other = (DescribeMountTargetsRequest) obj;
if (other.getMaxItems() == null ^ this.getMaxItems() == null)
return false;
if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false)
return false;
if (other.getMarker() == null ^ this.getMarker() == null)
return false;
if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == 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.getMountTargetId() == null ^ this.getMountTargetId() == null)
return false;
if (other.getMountTargetId() != null && other.getMountTargetId().equals(this.getMountTargetId()) == false)
return false;
if (other.getAccessPointId() == null ^ this.getAccessPointId() == null)
return false;
if (other.getAccessPointId() != null && other.getAccessPointId().equals(this.getAccessPointId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode());
hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode());
hashCode = prime * hashCode + ((getFileSystemId() == null) ? 0 : getFileSystemId().hashCode());
hashCode = prime * hashCode + ((getMountTargetId() == null) ? 0 : getMountTargetId().hashCode());
hashCode = prime * hashCode + ((getAccessPointId() == null) ? 0 : getAccessPointId().hashCode());
return hashCode;
}
@Override
public DescribeMountTargetsRequest clone() {
return (DescribeMountTargetsRequest) super.clone();
}
}