
com.amazonaws.services.directory.model.CreateMicrosoftADRequest Maven / Gradle / Ivy
/*
* Copyright 2013-2018 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 javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* Creates a Microsoft AD in the AWS cloud.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateMicrosoftADRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The fully qualified domain name for the directory, such as corp.example.com
. This name will resolve
* inside your VPC only. It does not need to be publicly resolvable.
*
*/
private String name;
/**
*
* The NetBIOS name for your domain. A short identifier for your domain, such as CORP
. If you don't
* specify a NetBIOS name, it will default to the first part of your directory DNS. For example, CORP
* for the directory DNS corp.example.com
.
*
*/
private String shortName;
/**
*
* The password for the default administrative user named Admin
.
*
*/
private String password;
/**
*
* A textual description for the directory. This label will appear on the AWS console Directory Details
* page after the directory is created.
*
*/
private String description;
/**
*
* Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.
*
*/
private DirectoryVpcSettings vpcSettings;
/**
*
* AWS Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default.
*
*/
private String edition;
/**
*
* The fully qualified domain name for the directory, such as corp.example.com
. This name will resolve
* inside your VPC only. It does not need to be publicly resolvable.
*
*
* @param name
* The fully qualified domain name for the directory, such as corp.example.com
. This name will
* resolve inside your VPC only. It does not need to be publicly resolvable.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The fully qualified domain name for the directory, such as corp.example.com
. This name will resolve
* inside your VPC only. It does not need to be publicly resolvable.
*
*
* @return The fully qualified domain name for the directory, such as corp.example.com
. This name will
* resolve inside your VPC only. It does not need to be publicly resolvable.
*/
public String getName() {
return this.name;
}
/**
*
* The fully qualified domain name for the directory, such as corp.example.com
. This name will resolve
* inside your VPC only. It does not need to be publicly resolvable.
*
*
* @param name
* The fully qualified domain name for the directory, such as corp.example.com
. This name will
* resolve inside your VPC only. It does not need to be publicly resolvable.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMicrosoftADRequest withName(String name) {
setName(name);
return this;
}
/**
*
* The NetBIOS name for your domain. A short identifier for your domain, such as CORP
. If you don't
* specify a NetBIOS name, it will default to the first part of your directory DNS. For example, CORP
* for the directory DNS corp.example.com
.
*
*
* @param shortName
* The NetBIOS name for your domain. A short identifier for your domain, such as CORP
. If you
* don't specify a NetBIOS name, it will default to the first part of your directory DNS. For example,
* CORP
for the directory DNS corp.example.com
.
*/
public void setShortName(String shortName) {
this.shortName = shortName;
}
/**
*
* The NetBIOS name for your domain. A short identifier for your domain, such as CORP
. If you don't
* specify a NetBIOS name, it will default to the first part of your directory DNS. For example, CORP
* for the directory DNS corp.example.com
.
*
*
* @return The NetBIOS name for your domain. A short identifier for your domain, such as CORP
. If you
* don't specify a NetBIOS name, it will default to the first part of your directory DNS. For example,
* CORP
for the directory DNS corp.example.com
.
*/
public String getShortName() {
return this.shortName;
}
/**
*
* The NetBIOS name for your domain. A short identifier for your domain, such as CORP
. If you don't
* specify a NetBIOS name, it will default to the first part of your directory DNS. For example, CORP
* for the directory DNS corp.example.com
.
*
*
* @param shortName
* The NetBIOS name for your domain. A short identifier for your domain, such as CORP
. If you
* don't specify a NetBIOS name, it will default to the first part of your directory DNS. For example,
* CORP
for the directory DNS corp.example.com
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMicrosoftADRequest withShortName(String shortName) {
setShortName(shortName);
return this;
}
/**
*
* The password for the default administrative user named Admin
.
*
*
* @param password
* The password for the default administrative user named Admin
.
*/
public void setPassword(String password) {
this.password = password;
}
/**
*
* The password for the default administrative user named Admin
.
*
*
* @return The password for the default administrative user named Admin
.
*/
public String getPassword() {
return this.password;
}
/**
*
* The password for the default administrative user named Admin
.
*
*
* @param password
* The password for the default administrative user named Admin
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMicrosoftADRequest withPassword(String password) {
setPassword(password);
return this;
}
/**
*
* A textual description for the directory. This label will appear on the AWS console Directory Details
* page after the directory is created.
*
*
* @param description
* A textual description for the directory. This label will appear on the AWS console
* Directory Details
page after the directory is created.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A textual description for the directory. This label will appear on the AWS console Directory Details
* page after the directory is created.
*
*
* @return A textual description for the directory. This label will appear on the AWS console
* Directory Details
page after the directory is created.
*/
public String getDescription() {
return this.description;
}
/**
*
* A textual description for the directory. This label will appear on the AWS console Directory Details
* page after the directory is created.
*
*
* @param description
* A textual description for the directory. This label will appear on the AWS console
* Directory Details
page after the directory is created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMicrosoftADRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.
*
*
* @param vpcSettings
* Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.
*/
public void setVpcSettings(DirectoryVpcSettings vpcSettings) {
this.vpcSettings = vpcSettings;
}
/**
*
* Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.
*
*
* @return Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.
*/
public DirectoryVpcSettings getVpcSettings() {
return this.vpcSettings;
}
/**
*
* Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.
*
*
* @param vpcSettings
* Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMicrosoftADRequest withVpcSettings(DirectoryVpcSettings vpcSettings) {
setVpcSettings(vpcSettings);
return this;
}
/**
*
* AWS Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default.
*
*
* @param edition
* AWS Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default.
* @see DirectoryEdition
*/
public void setEdition(String edition) {
this.edition = edition;
}
/**
*
* AWS Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default.
*
*
* @return AWS Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default.
* @see DirectoryEdition
*/
public String getEdition() {
return this.edition;
}
/**
*
* AWS Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default.
*
*
* @param edition
* AWS Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DirectoryEdition
*/
public CreateMicrosoftADRequest withEdition(String edition) {
setEdition(edition);
return this;
}
/**
*
* AWS Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default.
*
*
* @param edition
* AWS Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DirectoryEdition
*/
public CreateMicrosoftADRequest withEdition(DirectoryEdition edition) {
this.edition = edition.toString();
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: ").append(getName()).append(",");
if (getShortName() != null)
sb.append("ShortName: ").append(getShortName()).append(",");
if (getPassword() != null)
sb.append("Password: ").append(getPassword()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getVpcSettings() != null)
sb.append("VpcSettings: ").append(getVpcSettings()).append(",");
if (getEdition() != null)
sb.append("Edition: ").append(getEdition());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateMicrosoftADRequest == false)
return false;
CreateMicrosoftADRequest other = (CreateMicrosoftADRequest) 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.getVpcSettings() == null ^ this.getVpcSettings() == null)
return false;
if (other.getVpcSettings() != null && other.getVpcSettings().equals(this.getVpcSettings()) == false)
return false;
if (other.getEdition() == null ^ this.getEdition() == null)
return false;
if (other.getEdition() != null && other.getEdition().equals(this.getEdition()) == 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 + ((getVpcSettings() == null) ? 0 : getVpcSettings().hashCode());
hashCode = prime * hashCode + ((getEdition() == null) ? 0 : getEdition().hashCode());
return hashCode;
}
@Override
public CreateMicrosoftADRequest clone() {
return (CreateMicrosoftADRequest) super.clone();
}
}