/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* The SageMaker Canvas application settings. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CanvasAppSettings implements Serializable, Cloneable, StructuredPojo { /** *

* Time series forecast settings for the Canvas application. *

*/ private TimeSeriesForecastingSettings timeSeriesForecastingSettings; /** *

* The model registry settings for the SageMaker Canvas application. *

*/ private ModelRegisterSettings modelRegisterSettings; /** *

* The workspace settings for the SageMaker Canvas application. *

*/ private WorkspaceSettings workspaceSettings; /** *

* Time series forecast settings for the Canvas application. *

* * @param timeSeriesForecastingSettings * Time series forecast settings for the Canvas application. */ public void setTimeSeriesForecastingSettings(TimeSeriesForecastingSettings timeSeriesForecastingSettings) { this.timeSeriesForecastingSettings = timeSeriesForecastingSettings; } /** *

* Time series forecast settings for the Canvas application. *

* * @return Time series forecast settings for the Canvas application. */ public TimeSeriesForecastingSettings getTimeSeriesForecastingSettings() { return this.timeSeriesForecastingSettings; } /** *

* Time series forecast settings for the Canvas application. *

* * @param timeSeriesForecastingSettings * Time series forecast settings for the Canvas application. * @return Returns a reference to this object so that method calls can be chained together. */ public CanvasAppSettings withTimeSeriesForecastingSettings(TimeSeriesForecastingSettings timeSeriesForecastingSettings) { setTimeSeriesForecastingSettings(timeSeriesForecastingSettings); return this; } /** *

* The model registry settings for the SageMaker Canvas application. *

* * @param modelRegisterSettings * The model registry settings for the SageMaker Canvas application. */ public void setModelRegisterSettings(ModelRegisterSettings modelRegisterSettings) { this.modelRegisterSettings = modelRegisterSettings; } /** *

* The model registry settings for the SageMaker Canvas application. *

* * @return The model registry settings for the SageMaker Canvas application. */ public ModelRegisterSettings getModelRegisterSettings() { return this.modelRegisterSettings; } /** *

* The model registry settings for the SageMaker Canvas application. *

* * @param modelRegisterSettings * The model registry settings for the SageMaker Canvas application. * @return Returns a reference to this object so that method calls can be chained together. */ public CanvasAppSettings withModelRegisterSettings(ModelRegisterSettings modelRegisterSettings) { setModelRegisterSettings(modelRegisterSettings); return this; } /** *

* The workspace settings for the SageMaker Canvas application. *

* * @param workspaceSettings * The workspace settings for the SageMaker Canvas application. */ public void setWorkspaceSettings(WorkspaceSettings workspaceSettings) { this.workspaceSettings = workspaceSettings; } /** *

* The workspace settings for the SageMaker Canvas application. *

* * @return The workspace settings for the SageMaker Canvas application. */ public WorkspaceSettings getWorkspaceSettings() { return this.workspaceSettings; } /** *

* The workspace settings for the SageMaker Canvas application. *

* * @param workspaceSettings * The workspace settings for the SageMaker Canvas application. * @return Returns a reference to this object so that method calls can be chained together. */ public CanvasAppSettings withWorkspaceSettings(WorkspaceSettings workspaceSettings) { setWorkspaceSettings(workspaceSettings); 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 (getTimeSeriesForecastingSettings() != null) sb.append("TimeSeriesForecastingSettings: ").append(getTimeSeriesForecastingSettings()).append(","); if (getModelRegisterSettings() != null) sb.append("ModelRegisterSettings: ").append(getModelRegisterSettings()).append(","); if (getWorkspaceSettings() != null) sb.append("WorkspaceSettings: ").append(getWorkspaceSettings()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CanvasAppSettings == false) return false; CanvasAppSettings other = (CanvasAppSettings) obj; if (other.getTimeSeriesForecastingSettings() == null ^ this.getTimeSeriesForecastingSettings() == null) return false; if (other.getTimeSeriesForecastingSettings() != null && other.getTimeSeriesForecastingSettings().equals(this.getTimeSeriesForecastingSettings()) == false) return false; if (other.getModelRegisterSettings() == null ^ this.getModelRegisterSettings() == null) return false; if (other.getModelRegisterSettings() != null && other.getModelRegisterSettings().equals(this.getModelRegisterSettings()) == false) return false; if (other.getWorkspaceSettings() == null ^ this.getWorkspaceSettings() == null) return false; if (other.getWorkspaceSettings() != null && other.getWorkspaceSettings().equals(this.getWorkspaceSettings()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTimeSeriesForecastingSettings() == null) ? 0 : getTimeSeriesForecastingSettings().hashCode()); hashCode = prime * hashCode + ((getModelRegisterSettings() == null) ? 0 : getModelRegisterSettings().hashCode()); hashCode = prime * hashCode + ((getWorkspaceSettings() == null) ? 0 : getWorkspaceSettings().hashCode()); return hashCode; } @Override public CanvasAppSettings clone() { try { return (CanvasAppSettings) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.sagemaker.model.transform.CanvasAppSettingsMarshaller.getInstance().marshall(this, protocolMarshaller); } }