/* * Copyright 2018-2023 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.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateDomainRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* A name for the domain. *

*/ private String domainName; /** *

* The mode of authentication that members use to access the domain. *

*/ private String authMode; /** *

* The default settings to use to create a user profile when UserSettings isn't specified in the call * to the CreateUserProfile API. *

*

* SecurityGroups is aggregated when specified in both calls. For all other settings in * UserSettings, the values specified in CreateUserProfile take precedence over those * specified in CreateDomain. *

*/ private UserSettings defaultUserSettings; /** *

* The VPC subnets that Studio uses for communication. *

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

* The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for communication. *

*/ private String vpcId; /** *

* Tags to associated with the Domain. Each tag consists of a key and an optional value. Tag keys must be unique per * resource. Tags are searchable using the Search API. *

*

* Tags that you specify for the Domain are also added to all Apps that the Domain launches. *

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

* Specifies the VPC used for non-EFS traffic. The default value is PublicInternetOnly. *

* */ private String appNetworkAccessType; /** *

* Use KmsKeyId. *

*/ @Deprecated private String homeEfsFileSystemKmsKeyId; /** *

* SageMaker uses Amazon Web Services KMS to encrypt the EFS volume attached to the domain with an Amazon Web * Services managed key by default. For more control, specify a customer managed key. *

*/ private String kmsKeyId; /** *

* The entity that creates and manages the required security groups for inter-app communication in * VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is VPCOnly * and DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is provided. If setting up * the domain for use with RStudio, this value must be set to Service. *

*/ private String appSecurityGroupManagement; /** *

* A collection of Domain settings. *

*/ private DomainSettings domainSettings; /** *

* The default settings used to create a space. *

*/ private DefaultSpaceSettings defaultSpaceSettings; /** *

* A name for the domain. *

* * @param domainName * A name for the domain. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** *

* A name for the domain. *

* * @return A name for the domain. */ public String getDomainName() { return this.domainName; } /** *

* A name for the domain. *

* * @param domainName * A name for the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withDomainName(String domainName) { setDomainName(domainName); return this; } /** *

* The mode of authentication that members use to access the domain. *

* * @param authMode * The mode of authentication that members use to access the domain. * @see AuthMode */ public void setAuthMode(String authMode) { this.authMode = authMode; } /** *

* The mode of authentication that members use to access the domain. *

* * @return The mode of authentication that members use to access the domain. * @see AuthMode */ public String getAuthMode() { return this.authMode; } /** *

* The mode of authentication that members use to access the domain. *

* * @param authMode * The mode of authentication that members use to access the domain. * @return Returns a reference to this object so that method calls can be chained together. * @see AuthMode */ public CreateDomainRequest withAuthMode(String authMode) { setAuthMode(authMode); return this; } /** *

* The mode of authentication that members use to access the domain. *

* * @param authMode * The mode of authentication that members use to access the domain. * @return Returns a reference to this object so that method calls can be chained together. * @see AuthMode */ public CreateDomainRequest withAuthMode(AuthMode authMode) { this.authMode = authMode.toString(); return this; } /** *

* The default settings to use to create a user profile when UserSettings isn't specified in the call * to the CreateUserProfile API. *

*

* SecurityGroups is aggregated when specified in both calls. For all other settings in * UserSettings, the values specified in CreateUserProfile take precedence over those * specified in CreateDomain. *

* * @param defaultUserSettings * The default settings to use to create a user profile when UserSettings isn't specified in the * call to the CreateUserProfile API.

*

* SecurityGroups is aggregated when specified in both calls. For all other settings in * UserSettings, the values specified in CreateUserProfile take precedence over * those specified in CreateDomain. */ public void setDefaultUserSettings(UserSettings defaultUserSettings) { this.defaultUserSettings = defaultUserSettings; } /** *

* The default settings to use to create a user profile when UserSettings isn't specified in the call * to the CreateUserProfile API. *

*

* SecurityGroups is aggregated when specified in both calls. For all other settings in * UserSettings, the values specified in CreateUserProfile take precedence over those * specified in CreateDomain. *

* * @return The default settings to use to create a user profile when UserSettings isn't specified in * the call to the CreateUserProfile API.

*

* SecurityGroups is aggregated when specified in both calls. For all other settings in * UserSettings, the values specified in CreateUserProfile take precedence over * those specified in CreateDomain. */ public UserSettings getDefaultUserSettings() { return this.defaultUserSettings; } /** *

* The default settings to use to create a user profile when UserSettings isn't specified in the call * to the CreateUserProfile API. *

*

* SecurityGroups is aggregated when specified in both calls. For all other settings in * UserSettings, the values specified in CreateUserProfile take precedence over those * specified in CreateDomain. *

* * @param defaultUserSettings * The default settings to use to create a user profile when UserSettings isn't specified in the * call to the CreateUserProfile API.

*

* SecurityGroups is aggregated when specified in both calls. For all other settings in * UserSettings, the values specified in CreateUserProfile take precedence over * those specified in CreateDomain. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withDefaultUserSettings(UserSettings defaultUserSettings) { setDefaultUserSettings(defaultUserSettings); return this; } /** *

* The VPC subnets that Studio uses for communication. *

* * @return The VPC subnets that Studio uses for communication. */ public java.util.List getSubnetIds() { return subnetIds; } /** *

* The VPC subnets that Studio uses for communication. *

* * @param subnetIds * The VPC subnets that Studio uses for communication. */ public void setSubnetIds(java.util.Collection subnetIds) { if (subnetIds == null) { this.subnetIds = null; return; } this.subnetIds = new java.util.ArrayList(subnetIds); } /** *

* The VPC subnets that Studio uses for communication. *

*

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

* * @param subnetIds * The VPC subnets that Studio uses for communication. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new java.util.ArrayList(subnetIds.length)); } for (String ele : subnetIds) { this.subnetIds.add(ele); } return this; } /** *

* The VPC subnets that Studio uses for communication. *

* * @param subnetIds * The VPC subnets that Studio uses for communication. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withSubnetIds(java.util.Collection subnetIds) { setSubnetIds(subnetIds); return this; } /** *

* The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for communication. *

* * @param vpcId * The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for communication. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** *

* The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for communication. *

* * @return The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for communication. */ public String getVpcId() { return this.vpcId; } /** *

* The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for communication. *

* * @param vpcId * The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for communication. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** *

* Tags to associated with the Domain. Each tag consists of a key and an optional value. Tag keys must be unique per * resource. Tags are searchable using the Search API. *

*

* Tags that you specify for the Domain are also added to all Apps that the Domain launches. *

* * @return Tags to associated with the Domain. Each tag consists of a key and an optional value. Tag keys must be * unique per resource. Tags are searchable using the Search API.

*

* Tags that you specify for the Domain are also added to all Apps that the Domain launches. */ public java.util.List getTags() { return tags; } /** *

* Tags to associated with the Domain. Each tag consists of a key and an optional value. Tag keys must be unique per * resource. Tags are searchable using the Search API. *

*

* Tags that you specify for the Domain are also added to all Apps that the Domain launches. *

* * @param tags * Tags to associated with the Domain. Each tag consists of a key and an optional value. Tag keys must be * unique per resource. Tags are searchable using the Search API.

*

* Tags that you specify for the Domain are also added to all Apps that the Domain launches. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* Tags to associated with the Domain. Each tag consists of a key and an optional value. Tag keys must be unique per * resource. Tags are searchable using the Search API. *

*

* Tags that you specify for the Domain are also added to all Apps that the Domain launches. *

*

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

* * @param tags * Tags to associated with the Domain. Each tag consists of a key and an optional value. Tag keys must be * unique per resource. Tags are searchable using the Search API.

*

* Tags that you specify for the Domain are also added to all Apps that the Domain launches. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* Tags to associated with the Domain. Each tag consists of a key and an optional value. Tag keys must be unique per * resource. Tags are searchable using the Search API. *

*

* Tags that you specify for the Domain are also added to all Apps that the Domain launches. *

* * @param tags * Tags to associated with the Domain. Each tag consists of a key and an optional value. Tag keys must be * unique per resource. Tags are searchable using the Search API.

*

* Tags that you specify for the Domain are also added to all Apps that the Domain launches. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* Specifies the VPC used for non-EFS traffic. The default value is PublicInternetOnly. *

*
    *
  • *

    * PublicInternetOnly - Non-EFS traffic is through a VPC managed by Amazon SageMaker, which allows * direct internet access *

    *
  • *
  • *

    * VpcOnly - All Studio traffic is through the specified VPC and subnets *

    *
  • *
* * @param appNetworkAccessType * Specifies the VPC used for non-EFS traffic. The default value is PublicInternetOnly.

*
    *
  • *

    * PublicInternetOnly - Non-EFS traffic is through a VPC managed by Amazon SageMaker, which * allows direct internet access *

    *
  • *
  • *

    * VpcOnly - All Studio traffic is through the specified VPC and subnets *

    *
  • * @see AppNetworkAccessType */ public void setAppNetworkAccessType(String appNetworkAccessType) { this.appNetworkAccessType = appNetworkAccessType; } /** *

    * Specifies the VPC used for non-EFS traffic. The default value is PublicInternetOnly. *

    *
      *
    • *

      * PublicInternetOnly - Non-EFS traffic is through a VPC managed by Amazon SageMaker, which allows * direct internet access *

      *
    • *
    • *

      * VpcOnly - All Studio traffic is through the specified VPC and subnets *

      *
    • *
    * * @return Specifies the VPC used for non-EFS traffic. The default value is PublicInternetOnly.

    *
      *
    • *

      * PublicInternetOnly - Non-EFS traffic is through a VPC managed by Amazon SageMaker, which * allows direct internet access *

      *
    • *
    • *

      * VpcOnly - All Studio traffic is through the specified VPC and subnets *

      *
    • * @see AppNetworkAccessType */ public String getAppNetworkAccessType() { return this.appNetworkAccessType; } /** *

      * Specifies the VPC used for non-EFS traffic. The default value is PublicInternetOnly. *

      *
        *
      • *

        * PublicInternetOnly - Non-EFS traffic is through a VPC managed by Amazon SageMaker, which allows * direct internet access *

        *
      • *
      • *

        * VpcOnly - All Studio traffic is through the specified VPC and subnets *

        *
      • *
      * * @param appNetworkAccessType * Specifies the VPC used for non-EFS traffic. The default value is PublicInternetOnly.

      *
        *
      • *

        * PublicInternetOnly - Non-EFS traffic is through a VPC managed by Amazon SageMaker, which * allows direct internet access *

        *
      • *
      • *

        * VpcOnly - All Studio traffic is through the specified VPC and subnets *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see AppNetworkAccessType */ public CreateDomainRequest withAppNetworkAccessType(String appNetworkAccessType) { setAppNetworkAccessType(appNetworkAccessType); return this; } /** *

        * Specifies the VPC used for non-EFS traffic. The default value is PublicInternetOnly. *

        *
          *
        • *

          * PublicInternetOnly - Non-EFS traffic is through a VPC managed by Amazon SageMaker, which allows * direct internet access *

          *
        • *
        • *

          * VpcOnly - All Studio traffic is through the specified VPC and subnets *

          *
        • *
        * * @param appNetworkAccessType * Specifies the VPC used for non-EFS traffic. The default value is PublicInternetOnly.

        *
          *
        • *

          * PublicInternetOnly - Non-EFS traffic is through a VPC managed by Amazon SageMaker, which * allows direct internet access *

          *
        • *
        • *

          * VpcOnly - All Studio traffic is through the specified VPC and subnets *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see AppNetworkAccessType */ public CreateDomainRequest withAppNetworkAccessType(AppNetworkAccessType appNetworkAccessType) { this.appNetworkAccessType = appNetworkAccessType.toString(); return this; } /** *

          * Use KmsKeyId. *

          * * @param homeEfsFileSystemKmsKeyId * Use KmsKeyId. */ @Deprecated public void setHomeEfsFileSystemKmsKeyId(String homeEfsFileSystemKmsKeyId) { this.homeEfsFileSystemKmsKeyId = homeEfsFileSystemKmsKeyId; } /** *

          * Use KmsKeyId. *

          * * @return Use KmsKeyId. */ @Deprecated public String getHomeEfsFileSystemKmsKeyId() { return this.homeEfsFileSystemKmsKeyId; } /** *

          * Use KmsKeyId. *

          * * @param homeEfsFileSystemKmsKeyId * Use KmsKeyId. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public CreateDomainRequest withHomeEfsFileSystemKmsKeyId(String homeEfsFileSystemKmsKeyId) { setHomeEfsFileSystemKmsKeyId(homeEfsFileSystemKmsKeyId); return this; } /** *

          * SageMaker uses Amazon Web Services KMS to encrypt the EFS volume attached to the domain with an Amazon Web * Services managed key by default. For more control, specify a customer managed key. *

          * * @param kmsKeyId * SageMaker uses Amazon Web Services KMS to encrypt the EFS volume attached to the domain with an Amazon Web * Services managed key by default. For more control, specify a customer managed key. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** *

          * SageMaker uses Amazon Web Services KMS to encrypt the EFS volume attached to the domain with an Amazon Web * Services managed key by default. For more control, specify a customer managed key. *

          * * @return SageMaker uses Amazon Web Services KMS to encrypt the EFS volume attached to the domain with an Amazon * Web Services managed key by default. For more control, specify a customer managed key. */ public String getKmsKeyId() { return this.kmsKeyId; } /** *

          * SageMaker uses Amazon Web Services KMS to encrypt the EFS volume attached to the domain with an Amazon Web * Services managed key by default. For more control, specify a customer managed key. *

          * * @param kmsKeyId * SageMaker uses Amazon Web Services KMS to encrypt the EFS volume attached to the domain with an Amazon Web * Services managed key by default. For more control, specify a customer managed key. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *

          * The entity that creates and manages the required security groups for inter-app communication in * VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is VPCOnly * and DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is provided. If setting up * the domain for use with RStudio, this value must be set to Service. *

          * * @param appSecurityGroupManagement * The entity that creates and manages the required security groups for inter-app communication in * VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is * VPCOnly and DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn * is provided. If setting up the domain for use with RStudio, this value must be set to Service * . * @see AppSecurityGroupManagement */ public void setAppSecurityGroupManagement(String appSecurityGroupManagement) { this.appSecurityGroupManagement = appSecurityGroupManagement; } /** *

          * The entity that creates and manages the required security groups for inter-app communication in * VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is VPCOnly * and DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is provided. If setting up * the domain for use with RStudio, this value must be set to Service. *

          * * @return The entity that creates and manages the required security groups for inter-app communication in * VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is * VPCOnly and * DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is provided. If setting * up the domain for use with RStudio, this value must be set to Service. * @see AppSecurityGroupManagement */ public String getAppSecurityGroupManagement() { return this.appSecurityGroupManagement; } /** *

          * The entity that creates and manages the required security groups for inter-app communication in * VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is VPCOnly * and DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is provided. If setting up * the domain for use with RStudio, this value must be set to Service. *

          * * @param appSecurityGroupManagement * The entity that creates and manages the required security groups for inter-app communication in * VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is * VPCOnly and DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn * is provided. If setting up the domain for use with RStudio, this value must be set to Service * . * @return Returns a reference to this object so that method calls can be chained together. * @see AppSecurityGroupManagement */ public CreateDomainRequest withAppSecurityGroupManagement(String appSecurityGroupManagement) { setAppSecurityGroupManagement(appSecurityGroupManagement); return this; } /** *

          * The entity that creates and manages the required security groups for inter-app communication in * VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is VPCOnly * and DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is provided. If setting up * the domain for use with RStudio, this value must be set to Service. *

          * * @param appSecurityGroupManagement * The entity that creates and manages the required security groups for inter-app communication in * VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is * VPCOnly and DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn * is provided. If setting up the domain for use with RStudio, this value must be set to Service * . * @return Returns a reference to this object so that method calls can be chained together. * @see AppSecurityGroupManagement */ public CreateDomainRequest withAppSecurityGroupManagement(AppSecurityGroupManagement appSecurityGroupManagement) { this.appSecurityGroupManagement = appSecurityGroupManagement.toString(); return this; } /** *

          * A collection of Domain settings. *

          * * @param domainSettings * A collection of Domain settings. */ public void setDomainSettings(DomainSettings domainSettings) { this.domainSettings = domainSettings; } /** *

          * A collection of Domain settings. *

          * * @return A collection of Domain settings. */ public DomainSettings getDomainSettings() { return this.domainSettings; } /** *

          * A collection of Domain settings. *

          * * @param domainSettings * A collection of Domain settings. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withDomainSettings(DomainSettings domainSettings) { setDomainSettings(domainSettings); return this; } /** *

          * The default settings used to create a space. *

          * * @param defaultSpaceSettings * The default settings used to create a space. */ public void setDefaultSpaceSettings(DefaultSpaceSettings defaultSpaceSettings) { this.defaultSpaceSettings = defaultSpaceSettings; } /** *

          * The default settings used to create a space. *

          * * @return The default settings used to create a space. */ public DefaultSpaceSettings getDefaultSpaceSettings() { return this.defaultSpaceSettings; } /** *

          * The default settings used to create a space. *

          * * @param defaultSpaceSettings * The default settings used to create a space. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withDefaultSpaceSettings(DefaultSpaceSettings defaultSpaceSettings) { setDefaultSpaceSettings(defaultSpaceSettings); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDomainName() != null) sb.append("DomainName: ").append(getDomainName()).append(","); if (getAuthMode() != null) sb.append("AuthMode: ").append(getAuthMode()).append(","); if (getDefaultUserSettings() != null) sb.append("DefaultUserSettings: ").append(getDefaultUserSettings()).append(","); if (getSubnetIds() != null) sb.append("SubnetIds: ").append(getSubnetIds()).append(","); if (getVpcId() != null) sb.append("VpcId: ").append(getVpcId()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getAppNetworkAccessType() != null) sb.append("AppNetworkAccessType: ").append(getAppNetworkAccessType()).append(","); if (getHomeEfsFileSystemKmsKeyId() != null) sb.append("HomeEfsFileSystemKmsKeyId: ").append(getHomeEfsFileSystemKmsKeyId()).append(","); if (getKmsKeyId() != null) sb.append("KmsKeyId: ").append(getKmsKeyId()).append(","); if (getAppSecurityGroupManagement() != null) sb.append("AppSecurityGroupManagement: ").append(getAppSecurityGroupManagement()).append(","); if (getDomainSettings() != null) sb.append("DomainSettings: ").append(getDomainSettings()).append(","); if (getDefaultSpaceSettings() != null) sb.append("DefaultSpaceSettings: ").append(getDefaultSpaceSettings()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateDomainRequest == false) return false; CreateDomainRequest other = (CreateDomainRequest) obj; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getAuthMode() == null ^ this.getAuthMode() == null) return false; if (other.getAuthMode() != null && other.getAuthMode().equals(this.getAuthMode()) == false) return false; if (other.getDefaultUserSettings() == null ^ this.getDefaultUserSettings() == null) return false; if (other.getDefaultUserSettings() != null && other.getDefaultUserSettings().equals(this.getDefaultUserSettings()) == false) return false; if (other.getSubnetIds() == null ^ this.getSubnetIds() == null) return false; if (other.getSubnetIds() != null && other.getSubnetIds().equals(this.getSubnetIds()) == false) return false; if (other.getVpcId() == null ^ this.getVpcId() == null) return false; if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getAppNetworkAccessType() == null ^ this.getAppNetworkAccessType() == null) return false; if (other.getAppNetworkAccessType() != null && other.getAppNetworkAccessType().equals(this.getAppNetworkAccessType()) == false) return false; if (other.getHomeEfsFileSystemKmsKeyId() == null ^ this.getHomeEfsFileSystemKmsKeyId() == null) return false; if (other.getHomeEfsFileSystemKmsKeyId() != null && other.getHomeEfsFileSystemKmsKeyId().equals(this.getHomeEfsFileSystemKmsKeyId()) == false) return false; if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null) return false; if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false) return false; if (other.getAppSecurityGroupManagement() == null ^ this.getAppSecurityGroupManagement() == null) return false; if (other.getAppSecurityGroupManagement() != null && other.getAppSecurityGroupManagement().equals(this.getAppSecurityGroupManagement()) == false) return false; if (other.getDomainSettings() == null ^ this.getDomainSettings() == null) return false; if (other.getDomainSettings() != null && other.getDomainSettings().equals(this.getDomainSettings()) == false) return false; if (other.getDefaultSpaceSettings() == null ^ this.getDefaultSpaceSettings() == null) return false; if (other.getDefaultSpaceSettings() != null && other.getDefaultSpaceSettings().equals(this.getDefaultSpaceSettings()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); hashCode = prime * hashCode + ((getAuthMode() == null) ? 0 : getAuthMode().hashCode()); hashCode = prime * hashCode + ((getDefaultUserSettings() == null) ? 0 : getDefaultUserSettings().hashCode()); hashCode = prime * hashCode + ((getSubnetIds() == null) ? 0 : getSubnetIds().hashCode()); hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getAppNetworkAccessType() == null) ? 0 : getAppNetworkAccessType().hashCode()); hashCode = prime * hashCode + ((getHomeEfsFileSystemKmsKeyId() == null) ? 0 : getHomeEfsFileSystemKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getAppSecurityGroupManagement() == null) ? 0 : getAppSecurityGroupManagement().hashCode()); hashCode = prime * hashCode + ((getDomainSettings() == null) ? 0 : getDomainSettings().hashCode()); hashCode = prime * hashCode + ((getDefaultSpaceSettings() == null) ? 0 : getDefaultSpaceSettings().hashCode()); return hashCode; } @Override public CreateDomainRequest clone() { return (CreateDomainRequest) super.clone(); } }