com.amazonaws.services.datasync.model.DescribeLocationFsxLustreResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-datasync 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.datasync.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeLocationFsxLustreResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the FSx for Lustre location that was described.
*
*/
private String locationArn;
/**
*
* The URI of the FSx for Lustre location that was described.
*
*/
private String locationUri;
/**
*
* The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file system.
*
*/
private java.util.List securityGroupArns;
/**
*
* The time that the FSx for Lustre location was created.
*
*/
private java.util.Date creationTime;
/**
*
* The Amazon Resource Name (ARN) of the FSx for Lustre location that was described.
*
*
* @param locationArn
* The Amazon Resource Name (ARN) of the FSx for Lustre location that was described.
*/
public void setLocationArn(String locationArn) {
this.locationArn = locationArn;
}
/**
*
* The Amazon Resource Name (ARN) of the FSx for Lustre location that was described.
*
*
* @return The Amazon Resource Name (ARN) of the FSx for Lustre location that was described.
*/
public String getLocationArn() {
return this.locationArn;
}
/**
*
* The Amazon Resource Name (ARN) of the FSx for Lustre location that was described.
*
*
* @param locationArn
* The Amazon Resource Name (ARN) of the FSx for Lustre location that was described.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLocationFsxLustreResult withLocationArn(String locationArn) {
setLocationArn(locationArn);
return this;
}
/**
*
* The URI of the FSx for Lustre location that was described.
*
*
* @param locationUri
* The URI of the FSx for Lustre location that was described.
*/
public void setLocationUri(String locationUri) {
this.locationUri = locationUri;
}
/**
*
* The URI of the FSx for Lustre location that was described.
*
*
* @return The URI of the FSx for Lustre location that was described.
*/
public String getLocationUri() {
return this.locationUri;
}
/**
*
* The URI of the FSx for Lustre location that was described.
*
*
* @param locationUri
* The URI of the FSx for Lustre location that was described.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLocationFsxLustreResult withLocationUri(String locationUri) {
setLocationUri(locationUri);
return this;
}
/**
*
* The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file system.
*
*
* @return The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file
* system.
*/
public java.util.List getSecurityGroupArns() {
return securityGroupArns;
}
/**
*
* The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file system.
*
*
* @param securityGroupArns
* The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file
* system.
*/
public void setSecurityGroupArns(java.util.Collection securityGroupArns) {
if (securityGroupArns == null) {
this.securityGroupArns = null;
return;
}
this.securityGroupArns = new java.util.ArrayList(securityGroupArns);
}
/**
*
* The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file system.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSecurityGroupArns(java.util.Collection)} or {@link #withSecurityGroupArns(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param securityGroupArns
* The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file
* system.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLocationFsxLustreResult withSecurityGroupArns(String... securityGroupArns) {
if (this.securityGroupArns == null) {
setSecurityGroupArns(new java.util.ArrayList(securityGroupArns.length));
}
for (String ele : securityGroupArns) {
this.securityGroupArns.add(ele);
}
return this;
}
/**
*
* The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file system.
*
*
* @param securityGroupArns
* The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file
* system.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLocationFsxLustreResult withSecurityGroupArns(java.util.Collection securityGroupArns) {
setSecurityGroupArns(securityGroupArns);
return this;
}
/**
*
* The time that the FSx for Lustre location was created.
*
*
* @param creationTime
* The time that the FSx for Lustre location was created.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* The time that the FSx for Lustre location was created.
*
*
* @return The time that the FSx for Lustre location was created.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* The time that the FSx for Lustre location was created.
*
*
* @param creationTime
* The time that the FSx for Lustre location was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLocationFsxLustreResult withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
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 (getLocationArn() != null)
sb.append("LocationArn: ").append(getLocationArn()).append(",");
if (getLocationUri() != null)
sb.append("LocationUri: ").append(getLocationUri()).append(",");
if (getSecurityGroupArns() != null)
sb.append("SecurityGroupArns: ").append(getSecurityGroupArns()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeLocationFsxLustreResult == false)
return false;
DescribeLocationFsxLustreResult other = (DescribeLocationFsxLustreResult) obj;
if (other.getLocationArn() == null ^ this.getLocationArn() == null)
return false;
if (other.getLocationArn() != null && other.getLocationArn().equals(this.getLocationArn()) == false)
return false;
if (other.getLocationUri() == null ^ this.getLocationUri() == null)
return false;
if (other.getLocationUri() != null && other.getLocationUri().equals(this.getLocationUri()) == false)
return false;
if (other.getSecurityGroupArns() == null ^ this.getSecurityGroupArns() == null)
return false;
if (other.getSecurityGroupArns() != null && other.getSecurityGroupArns().equals(this.getSecurityGroupArns()) == false)
return false;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getLocationArn() == null) ? 0 : getLocationArn().hashCode());
hashCode = prime * hashCode + ((getLocationUri() == null) ? 0 : getLocationUri().hashCode());
hashCode = prime * hashCode + ((getSecurityGroupArns() == null) ? 0 : getSecurityGroupArns().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
return hashCode;
}
@Override
public DescribeLocationFsxLustreResult clone() {
try {
return (DescribeLocationFsxLustreResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}