/* * 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; /** *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeMountTargetsResult extends com.amazonaws.AmazonWebServiceResult
* If the request included the Marker
, the response returns that value in this field.
*
* Returns the file system's mount targets as an array of MountTargetDescription
objects.
*
* If a value is present, there are more mount targets to return. In a subsequent request, you can provide
* Marker
in your request with this value to retrieve the next set of mount targets.
*
* If the request included the Marker
, the response returns that value in this field.
*
Marker
, the response returns that value in this field.
*/
public void setMarker(String marker) {
this.marker = marker;
}
/**
*
* If the request included the Marker
, the response returns that value in this field.
*
Marker
, the response returns that value in this field.
*/
public String getMarker() {
return this.marker;
}
/**
*
* If the request included the Marker
, the response returns that value in this field.
*
Marker
, the response returns that value in this field.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMountTargetsResult withMarker(String marker) {
setMarker(marker);
return this;
}
/**
*
* Returns the file system's mount targets as an array of MountTargetDescription
objects.
*
MountTargetDescription
objects.
*/
public java.util.List
* Returns the file system's mount targets as an array of MountTargetDescription
objects.
*
MountTargetDescription
objects.
*/
public void setMountTargets(java.util.Collection
* Returns the file system's mount targets as an array of MountTargetDescription
objects.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setMountTargets(java.util.Collection)} or {@link #withMountTargets(java.util.Collection)} if you want to * override the existing values. *
* * @param mountTargets * Returns the file system's mount targets as an array ofMountTargetDescription
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMountTargetsResult withMountTargets(MountTargetDescription... mountTargets) {
if (this.mountTargets == null) {
setMountTargets(new com.amazonaws.internal.SdkInternalList
* Returns the file system's mount targets as an array of MountTargetDescription
objects.
*
MountTargetDescription
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMountTargetsResult withMountTargets(java.util.Collection
* If a value is present, there are more mount targets to return. In a subsequent request, you can provide
* Marker
in your request with this value to retrieve the next set of mount targets.
*
Marker
in your request with this value to retrieve the next set of mount targets.
*/
public void setNextMarker(String nextMarker) {
this.nextMarker = nextMarker;
}
/**
*
* If a value is present, there are more mount targets to return. In a subsequent request, you can provide
* Marker
in your request with this value to retrieve the next set of mount targets.
*
Marker
in your request with this value to retrieve the next set of mount targets.
*/
public String getNextMarker() {
return this.nextMarker;
}
/**
*
* If a value is present, there are more mount targets to return. In a subsequent request, you can provide
* Marker
in your request with this value to retrieve the next set of mount targets.
*
Marker
in your request with this value to retrieve the next set of mount targets.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMountTargetsResult withNextMarker(String nextMarker) {
setNextMarker(nextMarker);
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 (getMarker() != null)
sb.append("Marker: ").append(getMarker()).append(",");
if (getMountTargets() != null)
sb.append("MountTargets: ").append(getMountTargets()).append(",");
if (getNextMarker() != null)
sb.append("NextMarker: ").append(getNextMarker());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeMountTargetsResult == false)
return false;
DescribeMountTargetsResult other = (DescribeMountTargetsResult) obj;
if (other.getMarker() == null ^ this.getMarker() == null)
return false;
if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false)
return false;
if (other.getMountTargets() == null ^ this.getMountTargets() == null)
return false;
if (other.getMountTargets() != null && other.getMountTargets().equals(this.getMountTargets()) == false)
return false;
if (other.getNextMarker() == null ^ this.getNextMarker() == null)
return false;
if (other.getNextMarker() != null && other.getNextMarker().equals(this.getNextMarker()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode());
hashCode = prime * hashCode + ((getMountTargets() == null) ? 0 : getMountTargets().hashCode());
hashCode = prime * hashCode + ((getNextMarker() == null) ? 0 : getNextMarker().hashCode());
return hashCode;
}
@Override
public DescribeMountTargetsResult clone() {
try {
return (DescribeMountTargetsResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}