All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.datasync.model.DescribeLocationSmbResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS DataSync module holds the client classes that are used for communicating with AWS DataSync Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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;

/**
 * 

* DescribeLocationSmbResponse *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeLocationSmbResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The Amazon Resource Name (ARN) of the SMB location that was described. *

*/ private String locationArn; /** *

* The URL of the source SMB location that was described. *

*/ private String locationUri; /** *

* The Amazon Resource Name (ARN) of the source SMB file system location that is created. *

*/ private java.util.List agentArns; /** *

* The user who can mount the share, has the permissions to access files and folders in the SMB share. *

*/ private String user; /** *

* The name of the Windows domain that the SMB server belongs to. *

*/ private String domain; /** *

* The mount options that are available for DataSync to use to access an SMB location. *

*/ private SmbMountOptions mountOptions; /** *

* The time that the SMB location was created. *

*/ private java.util.Date creationTime; /** *

* The Amazon Resource Name (ARN) of the SMB location that was described. *

* * @param locationArn * The Amazon Resource Name (ARN) of the SMB location that was described. */ public void setLocationArn(String locationArn) { this.locationArn = locationArn; } /** *

* The Amazon Resource Name (ARN) of the SMB location that was described. *

* * @return The Amazon Resource Name (ARN) of the SMB location that was described. */ public String getLocationArn() { return this.locationArn; } /** *

* The Amazon Resource Name (ARN) of the SMB location that was described. *

* * @param locationArn * The Amazon Resource Name (ARN) of the SMB location that was described. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationSmbResult withLocationArn(String locationArn) { setLocationArn(locationArn); return this; } /** *

* The URL of the source SMB location that was described. *

* * @param locationUri * The URL of the source SMB location that was described. */ public void setLocationUri(String locationUri) { this.locationUri = locationUri; } /** *

* The URL of the source SMB location that was described. *

* * @return The URL of the source SMB location that was described. */ public String getLocationUri() { return this.locationUri; } /** *

* The URL of the source SMB location that was described. *

* * @param locationUri * The URL of the source SMB location that was described. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationSmbResult withLocationUri(String locationUri) { setLocationUri(locationUri); return this; } /** *

* The Amazon Resource Name (ARN) of the source SMB file system location that is created. *

* * @return The Amazon Resource Name (ARN) of the source SMB file system location that is created. */ public java.util.List getAgentArns() { return agentArns; } /** *

* The Amazon Resource Name (ARN) of the source SMB file system location that is created. *

* * @param agentArns * The Amazon Resource Name (ARN) of the source SMB file system location that is created. */ public void setAgentArns(java.util.Collection agentArns) { if (agentArns == null) { this.agentArns = null; return; } this.agentArns = new java.util.ArrayList(agentArns); } /** *

* The Amazon Resource Name (ARN) of the source SMB file system location that is created. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAgentArns(java.util.Collection)} or {@link #withAgentArns(java.util.Collection)} if you want to * override the existing values. *

* * @param agentArns * The Amazon Resource Name (ARN) of the source SMB file system location that is created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationSmbResult withAgentArns(String... agentArns) { if (this.agentArns == null) { setAgentArns(new java.util.ArrayList(agentArns.length)); } for (String ele : agentArns) { this.agentArns.add(ele); } return this; } /** *

* The Amazon Resource Name (ARN) of the source SMB file system location that is created. *

* * @param agentArns * The Amazon Resource Name (ARN) of the source SMB file system location that is created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationSmbResult withAgentArns(java.util.Collection agentArns) { setAgentArns(agentArns); return this; } /** *

* The user who can mount the share, has the permissions to access files and folders in the SMB share. *

* * @param user * The user who can mount the share, has the permissions to access files and folders in the SMB share. */ public void setUser(String user) { this.user = user; } /** *

* The user who can mount the share, has the permissions to access files and folders in the SMB share. *

* * @return The user who can mount the share, has the permissions to access files and folders in the SMB share. */ public String getUser() { return this.user; } /** *

* The user who can mount the share, has the permissions to access files and folders in the SMB share. *

* * @param user * The user who can mount the share, has the permissions to access files and folders in the SMB share. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationSmbResult withUser(String user) { setUser(user); return this; } /** *

* The name of the Windows domain that the SMB server belongs to. *

* * @param domain * The name of the Windows domain that the SMB server belongs to. */ public void setDomain(String domain) { this.domain = domain; } /** *

* The name of the Windows domain that the SMB server belongs to. *

* * @return The name of the Windows domain that the SMB server belongs to. */ public String getDomain() { return this.domain; } /** *

* The name of the Windows domain that the SMB server belongs to. *

* * @param domain * The name of the Windows domain that the SMB server belongs to. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationSmbResult withDomain(String domain) { setDomain(domain); return this; } /** *

* The mount options that are available for DataSync to use to access an SMB location. *

* * @param mountOptions * The mount options that are available for DataSync to use to access an SMB location. */ public void setMountOptions(SmbMountOptions mountOptions) { this.mountOptions = mountOptions; } /** *

* The mount options that are available for DataSync to use to access an SMB location. *

* * @return The mount options that are available for DataSync to use to access an SMB location. */ public SmbMountOptions getMountOptions() { return this.mountOptions; } /** *

* The mount options that are available for DataSync to use to access an SMB location. *

* * @param mountOptions * The mount options that are available for DataSync to use to access an SMB location. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationSmbResult withMountOptions(SmbMountOptions mountOptions) { setMountOptions(mountOptions); return this; } /** *

* The time that the SMB location was created. *

* * @param creationTime * The time that the SMB location was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The time that the SMB location was created. *

* * @return The time that the SMB location was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The time that the SMB location was created. *

* * @param creationTime * The time that the SMB location was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationSmbResult 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 (getAgentArns() != null) sb.append("AgentArns: ").append(getAgentArns()).append(","); if (getUser() != null) sb.append("User: ").append(getUser()).append(","); if (getDomain() != null) sb.append("Domain: ").append(getDomain()).append(","); if (getMountOptions() != null) sb.append("MountOptions: ").append(getMountOptions()).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 DescribeLocationSmbResult == false) return false; DescribeLocationSmbResult other = (DescribeLocationSmbResult) 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.getAgentArns() == null ^ this.getAgentArns() == null) return false; if (other.getAgentArns() != null && other.getAgentArns().equals(this.getAgentArns()) == 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; if (other.getMountOptions() == null ^ this.getMountOptions() == null) return false; if (other.getMountOptions() != null && other.getMountOptions().equals(this.getMountOptions()) == 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 + ((getAgentArns() == null) ? 0 : getAgentArns().hashCode()); hashCode = prime * hashCode + ((getUser() == null) ? 0 : getUser().hashCode()); hashCode = prime * hashCode + ((getDomain() == null) ? 0 : getDomain().hashCode()); hashCode = prime * hashCode + ((getMountOptions() == null) ? 0 : getMountOptions().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); return hashCode; } @Override public DescribeLocationSmbResult clone() { try { return (DescribeLocationSmbResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy