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

com.amazonaws.services.directory.model.ConnectDirectoryRequest Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 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.directory.model;

import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Contains the inputs for the ConnectDirectory operation. *

*/ public class ConnectDirectoryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The fully-qualified name of the on-premises directory, such as * corp.example.com. *

*/ private String name; /** *

* The NetBIOS name of the on-premises directory, such as CORP. *

*/ private String shortName; /** *

* The password for the on-premises user account. *

*/ private String password; /** *

* A textual description for the directory. *

*/ private String description; /** *

* The size of the directory. *

*/ private String size; /** *

* A DirectoryConnectSettings object that contains additional * information for the operation. *

*/ private DirectoryConnectSettings connectSettings; /** *

* The fully-qualified name of the on-premises directory, such as * corp.example.com. *

* * @param name * The fully-qualified name of the on-premises directory, such as * corp.example.com. */ public void setName(String name) { this.name = name; } /** *

* The fully-qualified name of the on-premises directory, such as * corp.example.com. *

* * @return The fully-qualified name of the on-premises directory, such as * corp.example.com. */ public String getName() { return this.name; } /** *

* The fully-qualified name of the on-premises directory, such as * corp.example.com. *

* * @param name * The fully-qualified name of the on-premises directory, such as * corp.example.com. * @return Returns a reference to this object so that method calls can be * chained together. */ public ConnectDirectoryRequest withName(String name) { setName(name); return this; } /** *

* The NetBIOS name of the on-premises directory, such as CORP. *

* * @param shortName * The NetBIOS name of the on-premises directory, such as * CORP. */ public void setShortName(String shortName) { this.shortName = shortName; } /** *

* The NetBIOS name of the on-premises directory, such as CORP. *

* * @return The NetBIOS name of the on-premises directory, such as * CORP. */ public String getShortName() { return this.shortName; } /** *

* The NetBIOS name of the on-premises directory, such as CORP. *

* * @param shortName * The NetBIOS name of the on-premises directory, such as * CORP. * @return Returns a reference to this object so that method calls can be * chained together. */ public ConnectDirectoryRequest withShortName(String shortName) { setShortName(shortName); return this; } /** *

* The password for the on-premises user account. *

* * @param password * The password for the on-premises user account. */ public void setPassword(String password) { this.password = password; } /** *

* The password for the on-premises user account. *

* * @return The password for the on-premises user account. */ public String getPassword() { return this.password; } /** *

* The password for the on-premises user account. *

* * @param password * The password for the on-premises user account. * @return Returns a reference to this object so that method calls can be * chained together. */ public ConnectDirectoryRequest withPassword(String password) { setPassword(password); return this; } /** *

* A textual description for the directory. *

* * @param description * A textual description for the directory. */ public void setDescription(String description) { this.description = description; } /** *

* A textual description for the directory. *

* * @return A textual description for the directory. */ public String getDescription() { return this.description; } /** *

* A textual description for the directory. *

* * @param description * A textual description for the directory. * @return Returns a reference to this object so that method calls can be * chained together. */ public ConnectDirectoryRequest withDescription(String description) { setDescription(description); return this; } /** *

* The size of the directory. *

* * @param size * The size of the directory. * @see DirectorySize */ public void setSize(String size) { this.size = size; } /** *

* The size of the directory. *

* * @return The size of the directory. * @see DirectorySize */ public String getSize() { return this.size; } /** *

* The size of the directory. *

* * @param size * The size of the directory. * @return Returns a reference to this object so that method calls can be * chained together. * @see DirectorySize */ public ConnectDirectoryRequest withSize(String size) { setSize(size); return this; } /** *

* The size of the directory. *

* * @param size * The size of the directory. * @see DirectorySize */ public void setSize(DirectorySize size) { this.size = size.toString(); } /** *

* The size of the directory. *

* * @param size * The size of the directory. * @return Returns a reference to this object so that method calls can be * chained together. * @see DirectorySize */ public ConnectDirectoryRequest withSize(DirectorySize size) { setSize(size); return this; } /** *

* A DirectoryConnectSettings object that contains additional * information for the operation. *

* * @param connectSettings * A DirectoryConnectSettings object that contains additional * information for the operation. */ public void setConnectSettings(DirectoryConnectSettings connectSettings) { this.connectSettings = connectSettings; } /** *

* A DirectoryConnectSettings object that contains additional * information for the operation. *

* * @return A DirectoryConnectSettings object that contains additional * information for the operation. */ public DirectoryConnectSettings getConnectSettings() { return this.connectSettings; } /** *

* A DirectoryConnectSettings object that contains additional * information for the operation. *

* * @param connectSettings * A DirectoryConnectSettings object that contains additional * information for the operation. * @return Returns a reference to this object so that method calls can be * chained together. */ public ConnectDirectoryRequest withConnectSettings( DirectoryConnectSettings connectSettings) { setConnectSettings(connectSettings); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: " + getName() + ","); if (getShortName() != null) sb.append("ShortName: " + getShortName() + ","); if (getPassword() != null) sb.append("Password: " + getPassword() + ","); if (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getSize() != null) sb.append("Size: " + getSize() + ","); if (getConnectSettings() != null) sb.append("ConnectSettings: " + getConnectSettings()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ConnectDirectoryRequest == false) return false; ConnectDirectoryRequest other = (ConnectDirectoryRequest) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getShortName() == null ^ this.getShortName() == null) return false; if (other.getShortName() != null && other.getShortName().equals(this.getShortName()) == false) return false; if (other.getPassword() == null ^ this.getPassword() == null) return false; if (other.getPassword() != null && other.getPassword().equals(this.getPassword()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getSize() == null ^ this.getSize() == null) return false; if (other.getSize() != null && other.getSize().equals(this.getSize()) == false) return false; if (other.getConnectSettings() == null ^ this.getConnectSettings() == null) return false; if (other.getConnectSettings() != null && other.getConnectSettings().equals(this.getConnectSettings()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getShortName() == null) ? 0 : getShortName().hashCode()); hashCode = prime * hashCode + ((getPassword() == null) ? 0 : getPassword().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getSize() == null) ? 0 : getSize().hashCode()); hashCode = prime * hashCode + ((getConnectSettings() == null) ? 0 : getConnectSettings() .hashCode()); return hashCode; } @Override public ConnectDirectoryRequest clone() { return (ConnectDirectoryRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy