/* * 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 UpdateDomainRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the domain to be updated. *
*/ private String domainId; /** ** A collection of settings. *
*/ private UserSettings defaultUserSettings; /** *
* A collection of DomainSettings
configuration values to update.
*
* The default settings used to create a space within the Domain. *
*/ private DefaultSpaceSettings defaultSpaceSettings; /** *
* 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
.
*
* The ID of the domain to be updated. *
* * @param domainId * The ID of the domain to be updated. */ public void setDomainId(String domainId) { this.domainId = domainId; } /** ** The ID of the domain to be updated. *
* * @return The ID of the domain to be updated. */ public String getDomainId() { return this.domainId; } /** ** The ID of the domain to be updated. *
* * @param domainId * The ID of the domain to be updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainRequest withDomainId(String domainId) { setDomainId(domainId); return this; } /** ** A collection of settings. *
* * @param defaultUserSettings * A collection of settings. */ public void setDefaultUserSettings(UserSettings defaultUserSettings) { this.defaultUserSettings = defaultUserSettings; } /** ** A collection of settings. *
* * @return A collection of settings. */ public UserSettings getDefaultUserSettings() { return this.defaultUserSettings; } /** ** A collection of settings. *
* * @param defaultUserSettings * A collection of settings. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainRequest withDefaultUserSettings(UserSettings defaultUserSettings) { setDefaultUserSettings(defaultUserSettings); return this; } /** *
* A collection of DomainSettings
configuration values to update.
*
DomainSettings
configuration values to update.
*/
public void setDomainSettingsForUpdate(DomainSettingsForUpdate domainSettingsForUpdate) {
this.domainSettingsForUpdate = domainSettingsForUpdate;
}
/**
*
* A collection of DomainSettings
configuration values to update.
*
DomainSettings
configuration values to update.
*/
public DomainSettingsForUpdate getDomainSettingsForUpdate() {
return this.domainSettingsForUpdate;
}
/**
*
* A collection of DomainSettings
configuration values to update.
*
DomainSettings
configuration values to update.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateDomainRequest withDomainSettingsForUpdate(DomainSettingsForUpdate domainSettingsForUpdate) {
setDomainSettingsForUpdate(domainSettingsForUpdate);
return this;
}
/**
* * The default settings used to create a space within the Domain. *
* * @param defaultSpaceSettings * The default settings used to create a space within the Domain. */ public void setDefaultSpaceSettings(DefaultSpaceSettings defaultSpaceSettings) { this.defaultSpaceSettings = defaultSpaceSettings; } /** ** The default settings used to create a space within the Domain. *
* * @return The default settings used to create a space within the Domain. */ public DefaultSpaceSettings getDefaultSpaceSettings() { return this.defaultSpaceSettings; } /** ** The default settings used to create a space within the Domain. *
* * @param defaultSpaceSettings * The default settings used to create a space within the Domain. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainRequest withDefaultSpaceSettings(DefaultSpaceSettings defaultSpaceSettings) { setDefaultSpaceSettings(defaultSpaceSettings); 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
.
*
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
.
*
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
.
*
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 UpdateDomainRequest 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
.
*
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 UpdateDomainRequest withAppSecurityGroupManagement(AppSecurityGroupManagement appSecurityGroupManagement) {
this.appSecurityGroupManagement = appSecurityGroupManagement.toString();
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 (getDomainId() != null)
sb.append("DomainId: ").append(getDomainId()).append(",");
if (getDefaultUserSettings() != null)
sb.append("DefaultUserSettings: ").append(getDefaultUserSettings()).append(",");
if (getDomainSettingsForUpdate() != null)
sb.append("DomainSettingsForUpdate: ").append(getDomainSettingsForUpdate()).append(",");
if (getDefaultSpaceSettings() != null)
sb.append("DefaultSpaceSettings: ").append(getDefaultSpaceSettings()).append(",");
if (getAppSecurityGroupManagement() != null)
sb.append("AppSecurityGroupManagement: ").append(getAppSecurityGroupManagement());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateDomainRequest == false)
return false;
UpdateDomainRequest other = (UpdateDomainRequest) obj;
if (other.getDomainId() == null ^ this.getDomainId() == null)
return false;
if (other.getDomainId() != null && other.getDomainId().equals(this.getDomainId()) == 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.getDomainSettingsForUpdate() == null ^ this.getDomainSettingsForUpdate() == null)
return false;
if (other.getDomainSettingsForUpdate() != null && other.getDomainSettingsForUpdate().equals(this.getDomainSettingsForUpdate()) == false)
return false;
if (other.getDefaultSpaceSettings() == null ^ this.getDefaultSpaceSettings() == null)
return false;
if (other.getDefaultSpaceSettings() != null && other.getDefaultSpaceSettings().equals(this.getDefaultSpaceSettings()) == false)
return false;
if (other.getAppSecurityGroupManagement() == null ^ this.getAppSecurityGroupManagement() == null)
return false;
if (other.getAppSecurityGroupManagement() != null && other.getAppSecurityGroupManagement().equals(this.getAppSecurityGroupManagement()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDomainId() == null) ? 0 : getDomainId().hashCode());
hashCode = prime * hashCode + ((getDefaultUserSettings() == null) ? 0 : getDefaultUserSettings().hashCode());
hashCode = prime * hashCode + ((getDomainSettingsForUpdate() == null) ? 0 : getDomainSettingsForUpdate().hashCode());
hashCode = prime * hashCode + ((getDefaultSpaceSettings() == null) ? 0 : getDefaultSpaceSettings().hashCode());
hashCode = prime * hashCode + ((getAppSecurityGroupManagement() == null) ? 0 : getAppSecurityGroupManagement().hashCode());
return hashCode;
}
@Override
public UpdateDomainRequest clone() {
return (UpdateDomainRequest) super.clone();
}
}