com.amazonaws.services.datasync.model.DescribeLocationFsxWindowsResult 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 DescribeLocationFsxWindowsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The ARN of the FSx for Windows File Server location.
*
*/
private String locationArn;
/**
*
* The uniform resource identifier (URI) of the FSx for Windows File Server location.
*
*/
private String locationUri;
/**
*
* The ARNs of the security groups that are configured for the FSx for Windows File Server file system.
*
*/
private java.util.List securityGroupArns;
/**
*
* The time that the FSx for Windows File Server location was created.
*
*/
private java.util.Date creationTime;
/**
*
* The user with the permissions to mount and access the FSx for Windows File Server file system.
*
*/
private String user;
/**
*
* The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.
*
*/
private String domain;
/**
*
* The ARN of the FSx for Windows File Server location.
*
*
* @param locationArn
* The ARN of the FSx for Windows File Server location.
*/
public void setLocationArn(String locationArn) {
this.locationArn = locationArn;
}
/**
*
* The ARN of the FSx for Windows File Server location.
*
*
* @return The ARN of the FSx for Windows File Server location.
*/
public String getLocationArn() {
return this.locationArn;
}
/**
*
* The ARN of the FSx for Windows File Server location.
*
*
* @param locationArn
* The ARN of the FSx for Windows File Server location.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLocationFsxWindowsResult withLocationArn(String locationArn) {
setLocationArn(locationArn);
return this;
}
/**
*
* The uniform resource identifier (URI) of the FSx for Windows File Server location.
*
*
* @param locationUri
* The uniform resource identifier (URI) of the FSx for Windows File Server location.
*/
public void setLocationUri(String locationUri) {
this.locationUri = locationUri;
}
/**
*
* The uniform resource identifier (URI) of the FSx for Windows File Server location.
*
*
* @return The uniform resource identifier (URI) of the FSx for Windows File Server location.
*/
public String getLocationUri() {
return this.locationUri;
}
/**
*
* The uniform resource identifier (URI) of the FSx for Windows File Server location.
*
*
* @param locationUri
* The uniform resource identifier (URI) of the FSx for Windows File Server location.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLocationFsxWindowsResult withLocationUri(String locationUri) {
setLocationUri(locationUri);
return this;
}
/**
*
* The ARNs of the security groups that are configured for the FSx for Windows File Server file system.
*
*
* @return The ARNs of the security groups that are configured for the FSx for Windows File Server file system.
*/
public java.util.List getSecurityGroupArns() {
return securityGroupArns;
}
/**
*
* The ARNs of the security groups that are configured for the FSx for Windows File Server file system.
*
*
* @param securityGroupArns
* The ARNs of the security groups that are configured for the FSx for Windows File Server file system.
*/
public void setSecurityGroupArns(java.util.Collection securityGroupArns) {
if (securityGroupArns == null) {
this.securityGroupArns = null;
return;
}
this.securityGroupArns = new java.util.ArrayList(securityGroupArns);
}
/**
*
* The ARNs of the security groups that are configured for the FSx for Windows File Server 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 ARNs of the security groups that are configured for the FSx for Windows File Server file system.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLocationFsxWindowsResult 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 ARNs of the security groups that are configured for the FSx for Windows File Server file system.
*
*
* @param securityGroupArns
* The ARNs of the security groups that are configured for the FSx for Windows File Server file system.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLocationFsxWindowsResult withSecurityGroupArns(java.util.Collection securityGroupArns) {
setSecurityGroupArns(securityGroupArns);
return this;
}
/**
*
* The time that the FSx for Windows File Server location was created.
*
*
* @param creationTime
* The time that the FSx for Windows File Server location was created.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* The time that the FSx for Windows File Server location was created.
*
*
* @return The time that the FSx for Windows File Server location was created.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* The time that the FSx for Windows File Server location was created.
*
*
* @param creationTime
* The time that the FSx for Windows File Server location was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLocationFsxWindowsResult withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* The user with the permissions to mount and access the FSx for Windows File Server file system.
*
*
* @param user
* The user with the permissions to mount and access the FSx for Windows File Server file system.
*/
public void setUser(String user) {
this.user = user;
}
/**
*
* The user with the permissions to mount and access the FSx for Windows File Server file system.
*
*
* @return The user with the permissions to mount and access the FSx for Windows File Server file system.
*/
public String getUser() {
return this.user;
}
/**
*
* The user with the permissions to mount and access the FSx for Windows File Server file system.
*
*
* @param user
* The user with the permissions to mount and access the FSx for Windows File Server file system.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLocationFsxWindowsResult withUser(String user) {
setUser(user);
return this;
}
/**
*
* The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.
*
*
* @param domain
* The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs
* to.
*/
public void setDomain(String domain) {
this.domain = domain;
}
/**
*
* The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.
*
*
* @return The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system
* belongs to.
*/
public String getDomain() {
return this.domain;
}
/**
*
* The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.
*
*
* @param domain
* The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs
* to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLocationFsxWindowsResult withDomain(String domain) {
setDomain(domain);
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()).append(",");
if (getUser() != null)
sb.append("User: ").append(getUser()).append(",");
if (getDomain() != null)
sb.append("Domain: ").append(getDomain());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeLocationFsxWindowsResult == false)
return false;
DescribeLocationFsxWindowsResult other = (DescribeLocationFsxWindowsResult) 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;
if (other.getUser() == null ^ this.getUser() == null)
return false;
if (other.getUser() != null && other.getUser().equals(this.getUser()) == false)
return false;
if (other.getDomain() == null ^ this.getDomain() == null)
return false;
if (other.getDomain() != null && other.getDomain().equals(this.getDomain()) == 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());
hashCode = prime * hashCode + ((getUser() == null) ? 0 : getUser().hashCode());
hashCode = prime * hashCode + ((getDomain() == null) ? 0 : getDomain().hashCode());
return hashCode;
}
@Override
public DescribeLocationFsxWindowsResult clone() {
try {
return (DescribeLocationFsxWindowsResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}