Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 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;
  

Contains information about an AWS Directory Service directory.

  
  public class DirectoryDescription implements SerializableCloneable {

    
The directory identifier.

Constraints:
Pattern: ^d-[0-9a-f]{10}$

  
      private String directoryId;

    
The fully-qualified name of the directory.

Constraints:
Pattern: ^([a-zA-Z0-9]+[\\.-])+([a-zA-Z0-9])+$

  
      private String name;

    
The short name of the directory.

Constraints:
Pattern: ^[^\\/:*?\"\<\>|.]+[^\\/:*?\"<>|]*$

  
      private String shortName;

    
The directory size.

Constraints:
Allowed Values: Small, Large

  
      private String size;

    
The alias for the directory.

Constraints:
Length: 1 - 62
Pattern: ^(?!d-)([\da-zA-Z]+)([-]*[\da-zA-Z])*

  
      private String alias;

    
The access URL for the directory, such as http://<alias>.awsapps.com.

Constraints:
Length: 1 - 128

  
      private String accessUrl;

    
The textual description for the directory.

Constraints:
Length: 0 - 128
Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$

  
      private String description;

    
The IP addresses of the DNS servers for the directory. For a Simple AD directory, these are the IP addresses of the Simple 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 that the AD Connector is connected to.
  
The current stage of the directory.

Constraints:
Allowed Values: Requested, Creating, Created, Active, Inoperable, Impaired, Restoring, RestoreFailed, Deleting, Deleted, Failed

  
     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.

Constraints:
Allowed Values: SimpleAD, ADConnector

 
     private String type;

    
A DirectoryVpcSettingsDescription object that contains additional information about a Simple AD directory. This member is only present if the directory is a Simple 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.
 
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.

Constraints:
Allowed Values: Creating, Completed, Failed

 
     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.

Constraints:
Pattern: ^d-[0-9a-f]{10}$

Returns:
The directory identifier.
 
     public String getDirectoryId() {
         return ;
     }
    
    
The directory identifier.

Constraints:
Pattern: ^d-[0-9a-f]{10}$

Parameters:
directoryId The directory identifier.
 
     public void setDirectoryId(String directoryId) {
         this. = directoryId;
     }
    
    
The directory identifier.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: ^d-[0-9a-f]{10}$

Parameters:
directoryId The directory identifier.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DirectoryDescription withDirectoryId(String directoryId) {
         this. = directoryId;
         return this;
     }

    
The fully-qualified name of the directory.

Constraints:
Pattern: ^([a-zA-Z0-9]+[\\.-])+([a-zA-Z0-9])+$

Returns:
The fully-qualified name of the directory.
 
     public String getName() {
         return ;
     }
    
    
The fully-qualified name of the directory.

Constraints:
Pattern: ^([a-zA-Z0-9]+[\\.-])+([a-zA-Z0-9])+$

Parameters:
name The fully-qualified name of the directory.
 
     public void setName(String name) {
         this. = name;
     }
    
    
The fully-qualified name of the directory.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: ^([a-zA-Z0-9]+[\\.-])+([a-zA-Z0-9])+$

Parameters:
name The fully-qualified name of the directory.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DirectoryDescription withName(String name) {
         this. = name;
         return this;
     }

    
The short name of the directory.

Constraints:
Pattern: ^[^\\/:*?\"\<\>|.]+[^\\/:*?\"<>|]*$

Returns:
The short name of the directory.
 
     public String getShortName() {
         return ;
     }
    
    
The short name of the directory.

Constraints:
Pattern: ^[^\\/:*?\"\<\>|.]+[^\\/:*?\"<>|]*$

Parameters:
shortName The short name of the directory.
 
     public void setShortName(String shortName) {
         this. = shortName;
     }
    
    
The short name of the directory.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: ^[^\\/:*?\"\<\>|.]+[^\\/:*?\"<>|]*$

Parameters:
shortName The short name of the directory.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DirectoryDescription withShortName(String shortName) {
         this. = shortName;
         return this;
     }

    
The directory size.

Constraints:
Allowed Values: Small, Large

Returns:
The directory size.
See also:
DirectorySize
 
     public String getSize() {
         return ;
     }
    
    
The directory size.

Constraints:
Allowed Values: Small, Large

Parameters:
size The directory size.
See also:
DirectorySize
 
     public void setSize(String size) {
         this. = size;
     }
    
    
The directory size.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Small, Large

Parameters:
size The directory size.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
DirectorySize
 
     public DirectoryDescription withSize(String size) {
         this. = size;
         return this;
     }

    
The directory size.

Constraints:
Allowed Values: Small, Large

Parameters:
size The directory size.
See also:
DirectorySize
 
     public void setSize(DirectorySize size) {
         this. = size.toString();
     }
    
    
The directory size.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Small, Large

Parameters:
size The directory size.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
DirectorySize
 
     public DirectoryDescription withSize(DirectorySize size) {
         this. = size.toString();
         return this;
     }

    
The alias for the directory.

Constraints:
Length: 1 - 62
Pattern: ^(?!d-)([\da-zA-Z]+)([-]*[\da-zA-Z])*

Returns:
The alias for the directory.
 
     public String getAlias() {
         return ;
     }
    
    
The alias for the directory.

Constraints:
Length: 1 - 62
Pattern: ^(?!d-)([\da-zA-Z]+)([-]*[\da-zA-Z])*

Parameters:
alias The alias for the directory.
 
     public void setAlias(String alias) {
         this. = alias;
     }
    
    
The alias for the directory.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 62
Pattern: ^(?!d-)([\da-zA-Z]+)([-]*[\da-zA-Z])*

Parameters:
alias The alias for the directory.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DirectoryDescription withAlias(String alias) {
         this. = alias;
         return this;
     }

    
The access URL for the directory, such as http://<alias>.awsapps.com.

Constraints:
Length: 1 - 128

Returns:
The access URL for the directory, such as http://<alias>.awsapps.com.
 
     public String getAccessUrl() {
         return ;
     }
    
    
The access URL for the directory, such as http://<alias>.awsapps.com.

Constraints:
Length: 1 - 128

Parameters:
accessUrl The access URL for the directory, such as http://<alias>.awsapps.com.
 
     public void setAccessUrl(String accessUrl) {
         this. = accessUrl;
     }
    
    
The access URL for the directory, such as http://<alias>.awsapps.com.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128

Parameters:
accessUrl The access URL for the directory, such as http://<alias>.awsapps.com.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DirectoryDescription withAccessUrl(String accessUrl) {
         this. = accessUrl;
         return this;
     }

    
The textual description for the directory.

Constraints:
Length: 0 - 128
Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$

Returns:
The textual description for the directory.
 
     public String getDescription() {
         return ;
     }
    
    
The textual description for the directory.

Constraints:
Length: 0 - 128
Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$

Parameters:
description The textual description for the directory.
 
     public void setDescription(String description) {
         this. = description;
     }
    
    
The textual description for the directory.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 128
Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$

Parameters:
description The textual description for the directory.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DirectoryDescription withDescription(String description) {
         this. = description;
         return this;
     }

    
The IP addresses of the DNS servers for the directory. For a Simple AD directory, these are the IP addresses of the Simple 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 that the AD Connector is connected to.

Returns:
The IP addresses of the DNS servers for the directory. For a Simple AD directory, these are the IP addresses of the Simple 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 that the AD Connector is connected to.
 
     public java.util.List<StringgetDnsIpAddrs() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
The IP addresses of the DNS servers for the directory. For a Simple AD directory, these are the IP addresses of the Simple 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 that the AD Connector is connected to.

Parameters:
dnsIpAddrs The IP addresses of the DNS servers for the directory. For a Simple AD directory, these are the IP addresses of the Simple 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 that the AD Connector is connected to.
 
     public void setDnsIpAddrs(java.util.Collection<StringdnsIpAddrs) {
         if (dnsIpAddrs == null) {
             this. = null;
             return;
         }
         dnsIpAddrsCopy.addAll(dnsIpAddrs);
         this. = dnsIpAddrsCopy;
     }
    
    
The IP addresses of the DNS servers for the directory. For a Simple AD directory, these are the IP addresses of the Simple 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 that the AD Connector is connected to.

NOTE: This method appends the values to the existing list (if any). Use setDnsIpAddrs(java.util.Collection) or withDnsIpAddrs(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dnsIpAddrs The IP addresses of the DNS servers for the directory. For a Simple AD directory, these are the IP addresses of the Simple 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 that the AD Connector is connected to.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DirectoryDescription withDnsIpAddrs(String... dnsIpAddrs) {
         if (getDnsIpAddrs() == nullsetDnsIpAddrs(new java.util.ArrayList<String>(dnsIpAddrs.length));
         for (String value : dnsIpAddrs) {
             getDnsIpAddrs().add(value);
         }
         return this;
     }
    
    
The IP addresses of the DNS servers for the directory. For a Simple AD directory, these are the IP addresses of the Simple 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 that the AD Connector is connected to.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dnsIpAddrs The IP addresses of the DNS servers for the directory. For a Simple AD directory, these are the IP addresses of the Simple 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 that the AD Connector is connected to.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DirectoryDescription withDnsIpAddrs(java.util.Collection<StringdnsIpAddrs) {
         if (dnsIpAddrs == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<StringdnsIpAddrsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(dnsIpAddrs.size());
             dnsIpAddrsCopy.addAll(dnsIpAddrs);
             this. = dnsIpAddrsCopy;
         }
 
         return this;
     }

    
The current stage of the directory.

Constraints:
Allowed Values: Requested, Creating, Created, Active, Inoperable, Impaired, Restoring, RestoreFailed, Deleting, Deleted, Failed

Returns:
The current stage of the directory.
See also:
DirectoryStage
 
     public String getStage() {
         return ;
     }
    
    
The current stage of the directory.

Constraints:
Allowed Values: Requested, Creating, Created, Active, Inoperable, Impaired, Restoring, RestoreFailed, Deleting, Deleted, Failed

Parameters:
stage The current stage of the directory.
See also:
DirectoryStage
 
     public void setStage(String stage) {
         this. = stage;
     }
    
    
The current stage of the directory.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Requested, Creating, Created, Active, Inoperable, Impaired, Restoring, RestoreFailed, Deleting, Deleted, Failed

Parameters:
stage The current stage of the directory.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
DirectoryStage
 
     public DirectoryDescription withStage(String stage) {
         this. = stage;
         return this;
     }

    
The current stage of the directory.

Constraints:
Allowed Values: Requested, Creating, Created, Active, Inoperable, Impaired, Restoring, RestoreFailed, Deleting, Deleted, Failed

Parameters:
stage The current stage of the directory.
See also:
DirectoryStage
 
     public void setStage(DirectoryStage stage) {
         this. = stage.toString();
     }
    
    
The current stage of the directory.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Requested, Creating, Created, Active, Inoperable, Impaired, Restoring, RestoreFailed, Deleting, Deleted, Failed

Parameters:
stage The current stage of the directory.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
DirectoryStage
 
     public DirectoryDescription withStage(DirectoryStage stage) {
         this. = stage.toString();
         return this;
     }

    
Specifies when the directory was created.

Returns:
Specifies when the directory was created.
 
     public java.util.Date getLaunchTime() {
         return ;
     }
    
    
Specifies when the directory was created.

Parameters:
launchTime Specifies when the directory was created.
 
     public void setLaunchTime(java.util.Date launchTime) {
         this. = launchTime;
     }
    
    
Specifies when the directory was created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
launchTime Specifies when the directory was created.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DirectoryDescription withLaunchTime(java.util.Date launchTime) {
         this. = launchTime;
         return this;
     }

    
The date and time that the stage was last updated.

Returns:
The date and time that the stage was last updated.
 
         return ;
     }
    
    
The date and time that the stage was last updated.

Parameters:
stageLastUpdatedDateTime The date and time that the stage was last updated.
 
     public void setStageLastUpdatedDateTime(java.util.Date stageLastUpdatedDateTime) {
         this. = stageLastUpdatedDateTime;
     }
    
    
The date and time that the stage was last updated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
stageLastUpdatedDateTime The date and time that the stage was last updated.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DirectoryDescription withStageLastUpdatedDateTime(java.util.Date stageLastUpdatedDateTime) {
         this. = stageLastUpdatedDateTime;
         return this;
     }

    
The directory size.

Constraints:
Allowed Values: SimpleAD, ADConnector

Returns:
The directory size.
See also:
DirectoryType
 
     public String getType() {
         return ;
     }
    
    
The directory size.

Constraints:
Allowed Values: SimpleAD, ADConnector

Parameters:
type The directory size.
See also:
DirectoryType
 
     public void setType(String type) {
         this. = type;
     }
    
    
The directory size.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: SimpleAD, ADConnector

Parameters:
type The directory size.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
DirectoryType
 
     public DirectoryDescription withType(String type) {
         this. = type;
         return this;
     }

    
The directory size.

Constraints:
Allowed Values: SimpleAD, ADConnector

Parameters:
type The directory size.
See also:
DirectoryType
 
     public void setType(DirectoryType type) {
         this. = type.toString();
     }
    
    
The directory size.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: SimpleAD, ADConnector

Parameters:
type The directory size.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
DirectoryType
 
     public DirectoryDescription withType(DirectoryType type) {
         this. = type.toString();
         return this;
     }

    
A DirectoryVpcSettingsDescription object that contains additional information about a Simple AD directory. This member is only present if the directory is a Simple AD directory.

Returns:
A DirectoryVpcSettingsDescription object that contains additional information about a Simple AD directory. This member is only present if the directory is a Simple AD directory.
 
         return ;
     }
    
    
A DirectoryVpcSettingsDescription object that contains additional information about a Simple AD directory. This member is only present if the directory is a Simple AD directory.

Parameters:
vpcSettings A DirectoryVpcSettingsDescription object that contains additional information about a Simple AD directory. This member is only present if the directory is a Simple AD directory.
 
     public void setVpcSettings(DirectoryVpcSettingsDescription vpcSettings) {
         this. = vpcSettings;
     }
    
    
A DirectoryVpcSettingsDescription object that contains additional information about a Simple AD directory. This member is only present if the directory is a Simple AD directory.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcSettings A DirectoryVpcSettingsDescription object that contains additional information about a Simple AD directory. This member is only present if the directory is a Simple AD directory.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         this. = 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.

Returns:
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.

Parameters:
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;
     }
    
    
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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         this. = connectSettings;
         return this;
     }

    
A RadiusSettings object that contains information about the RADIUS server configured for this directory.

Returns:
A RadiusSettings object that contains information about the RADIUS server configured for this directory.
 
     public RadiusSettings getRadiusSettings() {
         return ;
     }
    
    
A RadiusSettings object that contains information about the RADIUS server configured for this directory.

Parameters:
radiusSettings A RadiusSettings object that contains information about the RADIUS server configured for this directory.
 
     public void setRadiusSettings(RadiusSettings radiusSettings) {
         this. = radiusSettings;
     }
    
    
A RadiusSettings object that contains information about the RADIUS server configured for this directory.

Returns a reference to this object so that method calls can be chained together.

Parameters:
radiusSettings A RadiusSettings object that contains information about the RADIUS server configured for this directory.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DirectoryDescription withRadiusSettings(RadiusSettings radiusSettings) {
         this. = radiusSettings;
         return this;
     }

    
The status of the RADIUS MFA server connection.

Constraints:
Allowed Values: Creating, Completed, Failed

Returns:
The status of the RADIUS MFA server connection.
See also:
RadiusStatus
 
     public String getRadiusStatus() {
         return ;
     }
    
    
The status of the RADIUS MFA server connection.

Constraints:
Allowed Values: Creating, Completed, Failed

Parameters:
radiusStatus The status of the RADIUS MFA server connection.
See also:
RadiusStatus
 
     public void setRadiusStatus(String radiusStatus) {
         this. = radiusStatus;
     }
    
    
The status of the RADIUS MFA server connection.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Creating, Completed, Failed

Parameters:
radiusStatus The status of the RADIUS MFA server connection.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
RadiusStatus
    public DirectoryDescription withRadiusStatus(String radiusStatus) {
        this. = radiusStatus;
        return this;
    }

    
The status of the RADIUS MFA server connection.

Constraints:
Allowed Values: Creating, Completed, Failed

Parameters:
radiusStatus The status of the RADIUS MFA server connection.
See also:
RadiusStatus
    public void setRadiusStatus(RadiusStatus radiusStatus) {
        this. = radiusStatus.toString();
    }
    
    
The status of the RADIUS MFA server connection.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Creating, Completed, Failed

Parameters:
radiusStatus The status of the RADIUS MFA server connection.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
RadiusStatus
    public DirectoryDescription withRadiusStatus(RadiusStatus radiusStatus) {
        this. = radiusStatus.toString();
        return this;
    }

    
Additional information about the directory stage.

Returns:
Additional information about the directory stage.
    public String getStageReason() {
        return ;
    }
    
    
Additional information about the directory stage.

Parameters:
stageReason Additional information about the directory stage.
    public void setStageReason(String stageReason) {
        this. = stageReason;
    }
    
    
Additional information about the directory stage.

Returns a reference to this object so that method calls can be chained together.

Parameters:
stageReason Additional information about the directory stage.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DirectoryDescription withStageReason(String stageReason) {
        this. = stageReason;
        return this;
    }

    
Indicates if single-sign on is enabled for the directory. For more information, see EnableSso and DisableSso.

Returns:
Indicates if single-sign on is enabled for the directory. For more information, see EnableSso and DisableSso.
    public Boolean isSsoEnabled() {
        return ;
    }
    
    
Indicates if single-sign on is enabled for the directory. For more information, see EnableSso and DisableSso.

Parameters:
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;
    }
    
    
Indicates if single-sign on is enabled for the directory. For more information, see EnableSso and DisableSso.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ssoEnabled Indicates if single-sign on is enabled for the directory. For more information, see EnableSso and DisableSso.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DirectoryDescription withSsoEnabled(Boolean ssoEnabled) {
        this. = ssoEnabled;
        return this;
    }

    
Indicates if single-sign on is enabled for the directory. For more information, see EnableSso and DisableSso.

Returns:
Indicates if single-sign on is enabled for the directory. For more information, see EnableSso and DisableSso.
    public Boolean getSsoEnabled() {
        return ;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getDirectoryId() != nullsb.append("DirectoryId: " + getDirectoryId() + ",");
        if (getName() != nullsb.append("Name: " + getName() + ",");
        if (getShortName() != nullsb.append("ShortName: " + getShortName() + ",");
        if (getSize() != nullsb.append("Size: " + getSize() + ",");
        if (getAlias() != nullsb.append("Alias: " + getAlias() + ",");
        if (getAccessUrl() != nullsb.append("AccessUrl: " + getAccessUrl() + ",");
        if (getDescription() != nullsb.append("Description: " + getDescription() + ",");
        if (getDnsIpAddrs() != nullsb.append("DnsIpAddrs: " + getDnsIpAddrs() + ",");
        if (getStage() != nullsb.append("Stage: " + getStage() + ",");
        if (getLaunchTime() != nullsb.append("LaunchTime: " + getLaunchTime() + ",");
        if (getStageLastUpdatedDateTime() != nullsb.append("StageLastUpdatedDateTime: " + getStageLastUpdatedDateTime() + ",");
        if (getType() != nullsb.append("Type: " + getType() + ",");
        if (getVpcSettings() != nullsb.append("VpcSettings: " + getVpcSettings() + ",");
        if (getConnectSettings() != nullsb.append("ConnectSettings: " + getConnectSettings() + ",");
        if (getRadiusSettings() != nullsb.append("RadiusSettings: " + getRadiusSettings() + ",");
        if (getRadiusStatus() != nullsb.append("RadiusStatus: " + getRadiusStatus() + ",");
        if (getStageReason() != nullsb.append("StageReason: " + getStageReason() + ",");
        if (isSsoEnabled() != nullsb.append("SsoEnabled: " + isSsoEnabled() );
        sb.append("}");
        return sb.toString();
    }
    
    @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 + ((isSsoEnabled() == null) ? 0 : isSsoEnabled().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DirectoryDescription == falsereturn false;
        DirectoryDescription other = (DirectoryDescription)obj;
        
        if (other.getDirectoryId() == null ^ this.getDirectoryId() == nullreturn false;
        if (other.getDirectoryId() != null && other.getDirectoryId().equals(this.getDirectoryId()) == falsereturn false
        if (other.getName() == null ^ this.getName() == nullreturn false;
        if (other.getName() != null && other.getName().equals(this.getName()) == falsereturn false
        if (other.getShortName() == null ^ this.getShortName() == nullreturn false;
        if (other.getShortName() != null && other.getShortName().equals(this.getShortName()) == falsereturn false
        if (other.getSize() == null ^ this.getSize() == nullreturn false;
        if (other.getSize() != null && other.getSize().equals(this.getSize()) == falsereturn false
        if (other.getAlias() == null ^ this.getAlias() == nullreturn false;
        if (other.getAlias() != null && other.getAlias().equals(this.getAlias()) == falsereturn false
        if (other.getAccessUrl() == null ^ this.getAccessUrl() == nullreturn false;
        if (other.getAccessUrl() != null && other.getAccessUrl().equals(this.getAccessUrl()) == falsereturn false
        if (other.getDescription() == null ^ this.getDescription() == nullreturn false;
        if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == falsereturn false
        if (other.getDnsIpAddrs() == null ^ this.getDnsIpAddrs() == nullreturn false;
        if (other.getDnsIpAddrs() != null && other.getDnsIpAddrs().equals(this.getDnsIpAddrs()) == falsereturn false
        if (other.getStage() == null ^ this.getStage() == nullreturn false;
        if (other.getStage() != null && other.getStage().equals(this.getStage()) == falsereturn false
        if (other.getLaunchTime() == null ^ this.getLaunchTime() == nullreturn false;
        if (other.getLaunchTime() != null && other.getLaunchTime().equals(this.getLaunchTime()) == falsereturn false
        if (other.getStageLastUpdatedDateTime() == null ^ this.getStageLastUpdatedDateTime() == nullreturn false;
        if (other.getStageLastUpdatedDateTime() != null && other.getStageLastUpdatedDateTime().equals(this.getStageLastUpdatedDateTime()) == falsereturn false
        if (other.getType() == null ^ this.getType() == nullreturn false;
        if (other.getType() != null && other.getType().equals(this.getType()) == falsereturn false
        if (other.getVpcSettings() == null ^ this.getVpcSettings() == nullreturn false;
        if (other.getVpcSettings() != null && other.getVpcSettings().equals(this.getVpcSettings()) == falsereturn false
        if (other.getConnectSettings() == null ^ this.getConnectSettings() == nullreturn false;
        if (other.getConnectSettings() != null && other.getConnectSettings().equals(this.getConnectSettings()) == falsereturn false
        if (other.getRadiusSettings() == null ^ this.getRadiusSettings() == nullreturn false;
        if (other.getRadiusSettings() != null && other.getRadiusSettings().equals(this.getRadiusSettings()) == falsereturn false
        if (other.getRadiusStatus() == null ^ this.getRadiusStatus() == nullreturn false;
        if (other.getRadiusStatus() != null && other.getRadiusStatus().equals(this.getRadiusStatus()) == falsereturn false
        if (other.getStageReason() == null ^ this.getStageReason() == nullreturn false;
        if (other.getStageReason() != null && other.getStageReason().equals(this.getStageReason()) == falsereturn false
        if (other.isSsoEnabled() == null ^ this.isSsoEnabled() == nullreturn false;
        if (other.isSsoEnabled() != null && other.isSsoEnabled().equals(this.isSsoEnabled()) == falsereturn false
        return true;
    }
    
    @Override
    public DirectoryDescription clone() {
        try {
            return (DirectoryDescriptionsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X