
com.amazonaws.services.directory.model.DirectoryDescription Maven / Gradle / Ivy
Show all versions of aws-java-sdk-directory Show documentation
/*
* Copyright 2010-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;
/**
*
* Contains information about an AWS Directory Service directory.
*
*/
public class DirectoryDescription implements Serializable, Cloneable {
/**
*
* The directory identifier.
*
*/
private String directoryId;
/**
*
* The fully-qualified name of the directory.
*
*/
private String name;
/**
*
* The short name of the directory.
*
*/
private String shortName;
/**
*
* The directory size.
*
*/
private String size;
/**
*
* The alias for the directory. If no alias has been created for the
* directory, the alias is the directory identifier, such as
* d-XXXXXXXXXX
.
*
*/
private String alias;
/**
*
* The access URL for the directory, such as
* http://alias.awsapps.com
* . If no alias has been created for the directory,
* alias
is the directory
* identifier, such as d-XXXXXXXXXX
.
*
*/
private String accessUrl;
/**
*
* The textual description for the directory.
*
*/
private String description;
/**
*
* The IP addresses of the DNS servers for the directory. For a Simple AD or
* Microsoft AD directory, these are the IP addresses of the Simple AD or
* Microsoft AD directory servers. For an AD Connector directory, these are
* the IP addresses of the DNS servers or domain controllers in the
* on-premises directory to which the AD Connector is connected.
*
*/
private com.amazonaws.internal.SdkInternalList dnsIpAddrs;
/**
*
* The current stage of the directory.
*
*/
private String stage;
/**
*
* Specifies when the directory was created.
*
*/
private java.util.Date launchTime;
/**
*
* The date and time that the stage was last updated.
*
*/
private java.util.Date stageLastUpdatedDateTime;
/**
*
* The directory size.
*
*/
private String type;
/**
*
* A DirectoryVpcSettingsDescription object that contains additional
* information about a directory. This member is only present if the
* directory is a Simple AD or Managed AD directory.
*
*/
private DirectoryVpcSettingsDescription vpcSettings;
/**
*
* A DirectoryConnectSettingsDescription object that contains
* additional information about an AD Connector directory. This member is
* only present if the directory is an AD Connector directory.
*
*/
private DirectoryConnectSettingsDescription connectSettings;
/**
*
* A RadiusSettings object that contains information about the RADIUS
* server configured for this directory.
*
*/
private RadiusSettings radiusSettings;
/**
*
* The status of the RADIUS MFA server connection.
*
*/
private String radiusStatus;
/**
*
* Additional information about the directory stage.
*
*/
private String stageReason;
/**
*
* Indicates if single-sign on is enabled for the directory. For more
* information, see EnableSso and DisableSso.
*
*/
private Boolean ssoEnabled;
/**
*
* The directory identifier.
*
*
* @param directoryId
* The directory identifier.
*/
public void setDirectoryId(String directoryId) {
this.directoryId = directoryId;
}
/**
*
* The directory identifier.
*
*
* @return The directory identifier.
*/
public String getDirectoryId() {
return this.directoryId;
}
/**
*
* The directory identifier.
*
*
* @param directoryId
* The directory identifier.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withDirectoryId(String directoryId) {
setDirectoryId(directoryId);
return this;
}
/**
*
* The fully-qualified name of the directory.
*
*
* @param name
* The fully-qualified name of the directory.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The fully-qualified name of the directory.
*
*
* @return The fully-qualified name of the directory.
*/
public String getName() {
return this.name;
}
/**
*
* The fully-qualified name of the directory.
*
*
* @param name
* The fully-qualified name of the directory.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withName(String name) {
setName(name);
return this;
}
/**
*
* The short name of the directory.
*
*
* @param shortName
* The short name of the directory.
*/
public void setShortName(String shortName) {
this.shortName = shortName;
}
/**
*
* The short name of the directory.
*
*
* @return The short name of the directory.
*/
public String getShortName() {
return this.shortName;
}
/**
*
* The short name of the directory.
*
*
* @param shortName
* The short name of the directory.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withShortName(String shortName) {
setShortName(shortName);
return this;
}
/**
*
* The directory size.
*
*
* @param size
* The directory size.
* @see DirectorySize
*/
public void setSize(String size) {
this.size = size;
}
/**
*
* The directory size.
*
*
* @return The directory size.
* @see DirectorySize
*/
public String getSize() {
return this.size;
}
/**
*
* The directory size.
*
*
* @param size
* The directory size.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see DirectorySize
*/
public DirectoryDescription withSize(String size) {
setSize(size);
return this;
}
/**
*
* The directory size.
*
*
* @param size
* The directory size.
* @see DirectorySize
*/
public void setSize(DirectorySize size) {
this.size = size.toString();
}
/**
*
* The directory size.
*
*
* @param size
* The directory size.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see DirectorySize
*/
public DirectoryDescription withSize(DirectorySize size) {
setSize(size);
return this;
}
/**
*
* The alias for the directory. If no alias has been created for the
* directory, the alias is the directory identifier, such as
* d-XXXXXXXXXX
.
*
*
* @param alias
* The alias for the directory. If no alias has been created for the
* directory, the alias is the directory identifier, such as
* d-XXXXXXXXXX
.
*/
public void setAlias(String alias) {
this.alias = alias;
}
/**
*
* The alias for the directory. If no alias has been created for the
* directory, the alias is the directory identifier, such as
* d-XXXXXXXXXX
.
*
*
* @return The alias for the directory. If no alias has been created for the
* directory, the alias is the directory identifier, such as
* d-XXXXXXXXXX
.
*/
public String getAlias() {
return this.alias;
}
/**
*
* The alias for the directory. If no alias has been created for the
* directory, the alias is the directory identifier, such as
* d-XXXXXXXXXX
.
*
*
* @param alias
* The alias for the directory. If no alias has been created for the
* directory, the alias is the directory identifier, such as
* d-XXXXXXXXXX
.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withAlias(String alias) {
setAlias(alias);
return this;
}
/**
*
* The access URL for the directory, such as
* http://alias.awsapps.com
* . If no alias has been created for the directory,
* alias
is the directory
* identifier, such as d-XXXXXXXXXX
.
*
*
* @param accessUrl
* The access URL for the directory, such as
* http://alias.awsapps.com
* . If no alias has been created for the directory,
* alias
is the
* directory identifier, such as d-XXXXXXXXXX
.
*/
public void setAccessUrl(String accessUrl) {
this.accessUrl = accessUrl;
}
/**
*
* The access URL for the directory, such as
* http://alias.awsapps.com
* . If no alias has been created for the directory,
* alias
is the directory
* identifier, such as d-XXXXXXXXXX
.
*
*
* @return The access URL for the directory, such as
* http://alias.awsapps.com
* . If no alias has been created for the directory,
* alias
is the
* directory identifier, such as d-XXXXXXXXXX
.
*/
public String getAccessUrl() {
return this.accessUrl;
}
/**
*
* The access URL for the directory, such as
* http://alias.awsapps.com
* . If no alias has been created for the directory,
* alias
is the directory
* identifier, such as d-XXXXXXXXXX
.
*
*
* @param accessUrl
* The access URL for the directory, such as
* http://alias.awsapps.com
* . If no alias has been created for the directory,
* alias
is the
* directory identifier, such as d-XXXXXXXXXX
.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withAccessUrl(String accessUrl) {
setAccessUrl(accessUrl);
return this;
}
/**
*
* The textual description for the directory.
*
*
* @param description
* The textual description for the directory.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The textual description for the directory.
*
*
* @return The textual description for the directory.
*/
public String getDescription() {
return this.description;
}
/**
*
* The textual description for the directory.
*
*
* @param description
* The textual description for the directory.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The IP addresses of the DNS servers for the directory. For a Simple AD or
* Microsoft AD directory, these are the IP addresses of the Simple AD or
* Microsoft AD directory servers. For an AD Connector directory, these are
* the IP addresses of the DNS servers or domain controllers in the
* on-premises directory to which the AD Connector is connected.
*
*
* @return The IP addresses of the DNS servers for the directory. For a
* Simple AD or Microsoft AD directory, these are the IP addresses
* of the Simple AD or Microsoft AD directory servers. For an AD
* Connector directory, these are the IP addresses of the DNS
* servers or domain controllers in the on-premises directory to
* which the AD Connector is connected.
*/
public java.util.List getDnsIpAddrs() {
if (dnsIpAddrs == null) {
dnsIpAddrs = new com.amazonaws.internal.SdkInternalList();
}
return dnsIpAddrs;
}
/**
*
* The IP addresses of the DNS servers for the directory. For a Simple AD or
* Microsoft AD directory, these are the IP addresses of the Simple AD or
* Microsoft AD directory servers. For an AD Connector directory, these are
* the IP addresses of the DNS servers or domain controllers in the
* on-premises directory to which the AD Connector is connected.
*
*
* @param dnsIpAddrs
* The IP addresses of the DNS servers for the directory. For a
* Simple AD or Microsoft AD directory, these are the IP addresses of
* the Simple AD or Microsoft AD directory servers. For an AD
* Connector directory, these are the IP addresses of the DNS servers
* or domain controllers in the on-premises directory to which the AD
* Connector is connected.
*/
public void setDnsIpAddrs(java.util.Collection dnsIpAddrs) {
if (dnsIpAddrs == null) {
this.dnsIpAddrs = null;
return;
}
this.dnsIpAddrs = new com.amazonaws.internal.SdkInternalList(
dnsIpAddrs);
}
/**
*
* The IP addresses of the DNS servers for the directory. For a Simple AD or
* Microsoft AD directory, these are the IP addresses of the Simple AD or
* Microsoft AD directory servers. For an AD Connector directory, these are
* the IP addresses of the DNS servers or domain controllers in the
* on-premises directory to which the AD Connector is connected.
*
*
* NOTE: This method appends the values to the existing list (if
* any). Use {@link #setDnsIpAddrs(java.util.Collection)} or
* {@link #withDnsIpAddrs(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param dnsIpAddrs
* The IP addresses of the DNS servers for the directory. For a
* Simple AD or Microsoft AD directory, these are the IP addresses of
* the Simple AD or Microsoft AD directory servers. For an AD
* Connector directory, these are the IP addresses of the DNS servers
* or domain controllers in the on-premises directory to which the AD
* Connector is connected.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withDnsIpAddrs(String... dnsIpAddrs) {
if (this.dnsIpAddrs == null) {
setDnsIpAddrs(new com.amazonaws.internal.SdkInternalList(
dnsIpAddrs.length));
}
for (String ele : dnsIpAddrs) {
this.dnsIpAddrs.add(ele);
}
return this;
}
/**
*
* The IP addresses of the DNS servers for the directory. For a Simple AD or
* Microsoft AD directory, these are the IP addresses of the Simple AD or
* Microsoft AD directory servers. For an AD Connector directory, these are
* the IP addresses of the DNS servers or domain controllers in the
* on-premises directory to which the AD Connector is connected.
*
*
* @param dnsIpAddrs
* The IP addresses of the DNS servers for the directory. For a
* Simple AD or Microsoft AD directory, these are the IP addresses of
* the Simple AD or Microsoft AD directory servers. For an AD
* Connector directory, these are the IP addresses of the DNS servers
* or domain controllers in the on-premises directory to which the AD
* Connector is connected.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withDnsIpAddrs(
java.util.Collection dnsIpAddrs) {
setDnsIpAddrs(dnsIpAddrs);
return this;
}
/**
*
* The current stage of the directory.
*
*
* @param stage
* The current stage of the directory.
* @see DirectoryStage
*/
public void setStage(String stage) {
this.stage = stage;
}
/**
*
* The current stage of the directory.
*
*
* @return The current stage of the directory.
* @see DirectoryStage
*/
public String getStage() {
return this.stage;
}
/**
*
* The current stage of the directory.
*
*
* @param stage
* The current stage of the directory.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see DirectoryStage
*/
public DirectoryDescription withStage(String stage) {
setStage(stage);
return this;
}
/**
*
* The current stage of the directory.
*
*
* @param stage
* The current stage of the directory.
* @see DirectoryStage
*/
public void setStage(DirectoryStage stage) {
this.stage = stage.toString();
}
/**
*
* The current stage of the directory.
*
*
* @param stage
* The current stage of the directory.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see DirectoryStage
*/
public DirectoryDescription withStage(DirectoryStage stage) {
setStage(stage);
return this;
}
/**
*
* Specifies when the directory was created.
*
*
* @param launchTime
* Specifies when the directory was created.
*/
public void setLaunchTime(java.util.Date launchTime) {
this.launchTime = launchTime;
}
/**
*
* Specifies when the directory was created.
*
*
* @return Specifies when the directory was created.
*/
public java.util.Date getLaunchTime() {
return this.launchTime;
}
/**
*
* Specifies when the directory was created.
*
*
* @param launchTime
* Specifies when the directory was created.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withLaunchTime(java.util.Date launchTime) {
setLaunchTime(launchTime);
return this;
}
/**
*
* The date and time that the stage was last updated.
*
*
* @param stageLastUpdatedDateTime
* The date and time that the stage was last updated.
*/
public void setStageLastUpdatedDateTime(
java.util.Date stageLastUpdatedDateTime) {
this.stageLastUpdatedDateTime = stageLastUpdatedDateTime;
}
/**
*
* The date and time that the stage was last updated.
*
*
* @return The date and time that the stage was last updated.
*/
public java.util.Date getStageLastUpdatedDateTime() {
return this.stageLastUpdatedDateTime;
}
/**
*
* The date and time that the stage was last updated.
*
*
* @param stageLastUpdatedDateTime
* The date and time that the stage was last updated.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withStageLastUpdatedDateTime(
java.util.Date stageLastUpdatedDateTime) {
setStageLastUpdatedDateTime(stageLastUpdatedDateTime);
return this;
}
/**
*
* The directory size.
*
*
* @param type
* The directory size.
* @see DirectoryType
*/
public void setType(String type) {
this.type = type;
}
/**
*
* The directory size.
*
*
* @return The directory size.
* @see DirectoryType
*/
public String getType() {
return this.type;
}
/**
*
* The directory size.
*
*
* @param type
* The directory size.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see DirectoryType
*/
public DirectoryDescription withType(String type) {
setType(type);
return this;
}
/**
*
* The directory size.
*
*
* @param type
* The directory size.
* @see DirectoryType
*/
public void setType(DirectoryType type) {
this.type = type.toString();
}
/**
*
* The directory size.
*
*
* @param type
* The directory size.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see DirectoryType
*/
public DirectoryDescription withType(DirectoryType type) {
setType(type);
return this;
}
/**
*
* A DirectoryVpcSettingsDescription object that contains additional
* information about a directory. This member is only present if the
* directory is a Simple AD or Managed AD directory.
*
*
* @param vpcSettings
* A DirectoryVpcSettingsDescription object that contains
* additional information about a directory. This member is only
* present if the directory is a Simple AD or Managed AD directory.
*/
public void setVpcSettings(DirectoryVpcSettingsDescription vpcSettings) {
this.vpcSettings = vpcSettings;
}
/**
*
* A DirectoryVpcSettingsDescription object that contains additional
* information about a directory. This member is only present if the
* directory is a Simple AD or Managed AD directory.
*
*
* @return A DirectoryVpcSettingsDescription object that contains
* additional information about a directory. This member is only
* present if the directory is a Simple AD or Managed AD directory.
*/
public DirectoryVpcSettingsDescription getVpcSettings() {
return this.vpcSettings;
}
/**
*
* A DirectoryVpcSettingsDescription object that contains additional
* information about a directory. This member is only present if the
* directory is a Simple AD or Managed AD directory.
*
*
* @param vpcSettings
* A DirectoryVpcSettingsDescription object that contains
* additional information about a directory. This member is only
* present if the directory is a Simple AD or Managed AD directory.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withVpcSettings(
DirectoryVpcSettingsDescription vpcSettings) {
setVpcSettings(vpcSettings);
return this;
}
/**
*
* A DirectoryConnectSettingsDescription object that contains
* additional information about an AD Connector directory. This member is
* only present if the directory is an AD Connector directory.
*
*
* @param connectSettings
* A DirectoryConnectSettingsDescription object that contains
* additional information about an AD Connector directory. This
* member is only present if the directory is an AD Connector
* directory.
*/
public void setConnectSettings(
DirectoryConnectSettingsDescription connectSettings) {
this.connectSettings = connectSettings;
}
/**
*
* A DirectoryConnectSettingsDescription object that contains
* additional information about an AD Connector directory. This member is
* only present if the directory is an AD Connector directory.
*
*
* @return A DirectoryConnectSettingsDescription object that contains
* additional information about an AD Connector directory. This
* member is only present if the directory is an AD Connector
* directory.
*/
public DirectoryConnectSettingsDescription getConnectSettings() {
return this.connectSettings;
}
/**
*
* A DirectoryConnectSettingsDescription object that contains
* additional information about an AD Connector directory. This member is
* only present if the directory is an AD Connector directory.
*
*
* @param connectSettings
* A DirectoryConnectSettingsDescription object that contains
* additional information about an AD Connector directory. This
* member is only present if the directory is an AD Connector
* directory.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withConnectSettings(
DirectoryConnectSettingsDescription connectSettings) {
setConnectSettings(connectSettings);
return this;
}
/**
*
* A RadiusSettings object that contains information about the RADIUS
* server configured for this directory.
*
*
* @param radiusSettings
* A RadiusSettings object that contains information about the
* RADIUS server configured for this directory.
*/
public void setRadiusSettings(RadiusSettings radiusSettings) {
this.radiusSettings = radiusSettings;
}
/**
*
* A RadiusSettings object that contains information about the RADIUS
* server configured for this directory.
*
*
* @return A RadiusSettings object that contains information about
* the RADIUS server configured for this directory.
*/
public RadiusSettings getRadiusSettings() {
return this.radiusSettings;
}
/**
*
* A RadiusSettings object that contains information about the RADIUS
* server configured for this directory.
*
*
* @param radiusSettings
* A RadiusSettings object that contains information about the
* RADIUS server configured for this directory.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withRadiusSettings(RadiusSettings radiusSettings) {
setRadiusSettings(radiusSettings);
return this;
}
/**
*
* The status of the RADIUS MFA server connection.
*
*
* @param radiusStatus
* The status of the RADIUS MFA server connection.
* @see RadiusStatus
*/
public void setRadiusStatus(String radiusStatus) {
this.radiusStatus = radiusStatus;
}
/**
*
* The status of the RADIUS MFA server connection.
*
*
* @return The status of the RADIUS MFA server connection.
* @see RadiusStatus
*/
public String getRadiusStatus() {
return this.radiusStatus;
}
/**
*
* The status of the RADIUS MFA server connection.
*
*
* @param radiusStatus
* The status of the RADIUS MFA server connection.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see RadiusStatus
*/
public DirectoryDescription withRadiusStatus(String radiusStatus) {
setRadiusStatus(radiusStatus);
return this;
}
/**
*
* The status of the RADIUS MFA server connection.
*
*
* @param radiusStatus
* The status of the RADIUS MFA server connection.
* @see RadiusStatus
*/
public void setRadiusStatus(RadiusStatus radiusStatus) {
this.radiusStatus = radiusStatus.toString();
}
/**
*
* The status of the RADIUS MFA server connection.
*
*
* @param radiusStatus
* The status of the RADIUS MFA server connection.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see RadiusStatus
*/
public DirectoryDescription withRadiusStatus(RadiusStatus radiusStatus) {
setRadiusStatus(radiusStatus);
return this;
}
/**
*
* Additional information about the directory stage.
*
*
* @param stageReason
* Additional information about the directory stage.
*/
public void setStageReason(String stageReason) {
this.stageReason = stageReason;
}
/**
*
* Additional information about the directory stage.
*
*
* @return Additional information about the directory stage.
*/
public String getStageReason() {
return this.stageReason;
}
/**
*
* Additional information about the directory stage.
*
*
* @param stageReason
* Additional information about the directory stage.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withStageReason(String stageReason) {
setStageReason(stageReason);
return this;
}
/**
*
* Indicates if single-sign on is enabled for the directory. For more
* information, see EnableSso and DisableSso.
*
*
* @param ssoEnabled
* Indicates if single-sign on is enabled for the directory. For more
* information, see EnableSso and DisableSso.
*/
public void setSsoEnabled(Boolean ssoEnabled) {
this.ssoEnabled = ssoEnabled;
}
/**
*
* Indicates if single-sign on is enabled for the directory. For more
* information, see EnableSso and DisableSso.
*
*
* @return Indicates if single-sign on is enabled for the directory. For
* more information, see EnableSso and DisableSso.
*/
public Boolean getSsoEnabled() {
return this.ssoEnabled;
}
/**
*
* Indicates if single-sign on is enabled for the directory. For more
* information, see EnableSso and DisableSso.
*
*
* @param ssoEnabled
* Indicates if single-sign on is enabled for the directory. For more
* information, see EnableSso and DisableSso.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DirectoryDescription withSsoEnabled(Boolean ssoEnabled) {
setSsoEnabled(ssoEnabled);
return this;
}
/**
*
* Indicates if single-sign on is enabled for the directory. For more
* information, see EnableSso and DisableSso.
*
*
* @return Indicates if single-sign on is enabled for the directory. For
* more information, see EnableSso and DisableSso.
*/
public Boolean isSsoEnabled() {
return this.ssoEnabled;
}
/**
* 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 (getDirectoryId() != null)
sb.append("DirectoryId: " + getDirectoryId() + ",");
if (getName() != null)
sb.append("Name: " + getName() + ",");
if (getShortName() != null)
sb.append("ShortName: " + getShortName() + ",");
if (getSize() != null)
sb.append("Size: " + getSize() + ",");
if (getAlias() != null)
sb.append("Alias: " + getAlias() + ",");
if (getAccessUrl() != null)
sb.append("AccessUrl: " + getAccessUrl() + ",");
if (getDescription() != null)
sb.append("Description: " + getDescription() + ",");
if (getDnsIpAddrs() != null)
sb.append("DnsIpAddrs: " + getDnsIpAddrs() + ",");
if (getStage() != null)
sb.append("Stage: " + getStage() + ",");
if (getLaunchTime() != null)
sb.append("LaunchTime: " + getLaunchTime() + ",");
if (getStageLastUpdatedDateTime() != null)
sb.append("StageLastUpdatedDateTime: "
+ getStageLastUpdatedDateTime() + ",");
if (getType() != null)
sb.append("Type: " + getType() + ",");
if (getVpcSettings() != null)
sb.append("VpcSettings: " + getVpcSettings() + ",");
if (getConnectSettings() != null)
sb.append("ConnectSettings: " + getConnectSettings() + ",");
if (getRadiusSettings() != null)
sb.append("RadiusSettings: " + getRadiusSettings() + ",");
if (getRadiusStatus() != null)
sb.append("RadiusStatus: " + getRadiusStatus() + ",");
if (getStageReason() != null)
sb.append("StageReason: " + getStageReason() + ",");
if (getSsoEnabled() != null)
sb.append("SsoEnabled: " + getSsoEnabled());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DirectoryDescription == false)
return false;
DirectoryDescription other = (DirectoryDescription) obj;
if (other.getDirectoryId() == null ^ this.getDirectoryId() == null)
return false;
if (other.getDirectoryId() != null
&& other.getDirectoryId().equals(this.getDirectoryId()) == false)
return false;
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.getSize() == null ^ this.getSize() == null)
return false;
if (other.getSize() != null
&& other.getSize().equals(this.getSize()) == false)
return false;
if (other.getAlias() == null ^ this.getAlias() == null)
return false;
if (other.getAlias() != null
&& other.getAlias().equals(this.getAlias()) == false)
return false;
if (other.getAccessUrl() == null ^ this.getAccessUrl() == null)
return false;
if (other.getAccessUrl() != null
&& other.getAccessUrl().equals(this.getAccessUrl()) == 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.getDnsIpAddrs() == null ^ this.getDnsIpAddrs() == null)
return false;
if (other.getDnsIpAddrs() != null
&& other.getDnsIpAddrs().equals(this.getDnsIpAddrs()) == false)
return false;
if (other.getStage() == null ^ this.getStage() == null)
return false;
if (other.getStage() != null
&& other.getStage().equals(this.getStage()) == false)
return false;
if (other.getLaunchTime() == null ^ this.getLaunchTime() == null)
return false;
if (other.getLaunchTime() != null
&& other.getLaunchTime().equals(this.getLaunchTime()) == false)
return false;
if (other.getStageLastUpdatedDateTime() == null
^ this.getStageLastUpdatedDateTime() == null)
return false;
if (other.getStageLastUpdatedDateTime() != null
&& other.getStageLastUpdatedDateTime().equals(
this.getStageLastUpdatedDateTime()) == false)
return false;
if (other.getType() == null ^ this.getType() == null)
return false;
if (other.getType() != null
&& other.getType().equals(this.getType()) == 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.getConnectSettings() == null
^ this.getConnectSettings() == null)
return false;
if (other.getConnectSettings() != null
&& other.getConnectSettings().equals(this.getConnectSettings()) == false)
return false;
if (other.getRadiusSettings() == null
^ this.getRadiusSettings() == null)
return false;
if (other.getRadiusSettings() != null
&& other.getRadiusSettings().equals(this.getRadiusSettings()) == false)
return false;
if (other.getRadiusStatus() == null ^ this.getRadiusStatus() == null)
return false;
if (other.getRadiusStatus() != null
&& other.getRadiusStatus().equals(this.getRadiusStatus()) == false)
return false;
if (other.getStageReason() == null ^ this.getStageReason() == null)
return false;
if (other.getStageReason() != null
&& other.getStageReason().equals(this.getStageReason()) == false)
return false;
if (other.getSsoEnabled() == null ^ this.getSsoEnabled() == null)
return false;
if (other.getSsoEnabled() != null
&& other.getSsoEnabled().equals(this.getSsoEnabled()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime
* hashCode
+ ((getDirectoryId() == null) ? 0 : getDirectoryId().hashCode());
hashCode = prime * hashCode
+ ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode
+ ((getShortName() == null) ? 0 : getShortName().hashCode());
hashCode = prime * hashCode
+ ((getSize() == null) ? 0 : getSize().hashCode());
hashCode = prime * hashCode
+ ((getAlias() == null) ? 0 : getAlias().hashCode());
hashCode = prime * hashCode
+ ((getAccessUrl() == null) ? 0 : getAccessUrl().hashCode());
hashCode = prime
* hashCode
+ ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode
+ ((getDnsIpAddrs() == null) ? 0 : getDnsIpAddrs().hashCode());
hashCode = prime * hashCode
+ ((getStage() == null) ? 0 : getStage().hashCode());
hashCode = prime * hashCode
+ ((getLaunchTime() == null) ? 0 : getLaunchTime().hashCode());
hashCode = prime
* hashCode
+ ((getStageLastUpdatedDateTime() == null) ? 0
: getStageLastUpdatedDateTime().hashCode());
hashCode = prime * hashCode
+ ((getType() == null) ? 0 : getType().hashCode());
hashCode = prime
* hashCode
+ ((getVpcSettings() == null) ? 0 : getVpcSettings().hashCode());
hashCode = prime
* hashCode
+ ((getConnectSettings() == null) ? 0 : getConnectSettings()
.hashCode());
hashCode = prime
* hashCode
+ ((getRadiusSettings() == null) ? 0 : getRadiusSettings()
.hashCode());
hashCode = prime
* hashCode
+ ((getRadiusStatus() == null) ? 0 : getRadiusStatus()
.hashCode());
hashCode = prime
* hashCode
+ ((getStageReason() == null) ? 0 : getStageReason().hashCode());
hashCode = prime * hashCode
+ ((getSsoEnabled() == null) ? 0 : getSsoEnabled().hashCode());
return hashCode;
}
@Override
public DirectoryDescription clone() {
try {
return (DirectoryDescription) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException(
"Got a CloneNotSupportedException from Object.clone() "
+ "even though we're Cloneable!", e);
}
}
}