/* * 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; /** *
* A monitoring schedule for a model displayed in the Amazon SageMaker Model Dashboard. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ModelDashboardMonitoringSchedule implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) of a monitoring schedule. *
*/ private String monitoringScheduleArn; /** ** The name of a monitoring schedule. *
*/ private String monitoringScheduleName; /** ** The status of the monitoring schedule. *
*/ private String monitoringScheduleStatus; /** ** The monitor type of a model monitor. *
*/ private String monitoringType; /** ** If a monitoring job failed, provides the reason. *
*/ private String failureReason; /** ** A timestamp that indicates when the monitoring schedule was created. *
*/ private java.util.Date creationTime; /** ** A timestamp that indicates when the monitoring schedule was last updated. *
*/ private java.util.Date lastModifiedTime; private MonitoringScheduleConfig monitoringScheduleConfig; /** ** The endpoint which is monitored. *
*/ private String endpointName; /** ** A JSON array where each element is a summary for a monitoring alert. *
*/ private java.util.List* The Amazon Resource Name (ARN) of a monitoring schedule. *
* * @param monitoringScheduleArn * The Amazon Resource Name (ARN) of a monitoring schedule. */ public void setMonitoringScheduleArn(String monitoringScheduleArn) { this.monitoringScheduleArn = monitoringScheduleArn; } /** ** The Amazon Resource Name (ARN) of a monitoring schedule. *
* * @return The Amazon Resource Name (ARN) of a monitoring schedule. */ public String getMonitoringScheduleArn() { return this.monitoringScheduleArn; } /** ** The Amazon Resource Name (ARN) of a monitoring schedule. *
* * @param monitoringScheduleArn * The Amazon Resource Name (ARN) of a monitoring schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelDashboardMonitoringSchedule withMonitoringScheduleArn(String monitoringScheduleArn) { setMonitoringScheduleArn(monitoringScheduleArn); return this; } /** ** The name of a monitoring schedule. *
* * @param monitoringScheduleName * The name of a monitoring schedule. */ public void setMonitoringScheduleName(String monitoringScheduleName) { this.monitoringScheduleName = monitoringScheduleName; } /** ** The name of a monitoring schedule. *
* * @return The name of a monitoring schedule. */ public String getMonitoringScheduleName() { return this.monitoringScheduleName; } /** ** The name of a monitoring schedule. *
* * @param monitoringScheduleName * The name of a monitoring schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelDashboardMonitoringSchedule withMonitoringScheduleName(String monitoringScheduleName) { setMonitoringScheduleName(monitoringScheduleName); return this; } /** ** The status of the monitoring schedule. *
* * @param monitoringScheduleStatus * The status of the monitoring schedule. * @see ScheduleStatus */ public void setMonitoringScheduleStatus(String monitoringScheduleStatus) { this.monitoringScheduleStatus = monitoringScheduleStatus; } /** ** The status of the monitoring schedule. *
* * @return The status of the monitoring schedule. * @see ScheduleStatus */ public String getMonitoringScheduleStatus() { return this.monitoringScheduleStatus; } /** ** The status of the monitoring schedule. *
* * @param monitoringScheduleStatus * The status of the monitoring schedule. * @return Returns a reference to this object so that method calls can be chained together. * @see ScheduleStatus */ public ModelDashboardMonitoringSchedule withMonitoringScheduleStatus(String monitoringScheduleStatus) { setMonitoringScheduleStatus(monitoringScheduleStatus); return this; } /** ** The status of the monitoring schedule. *
* * @param monitoringScheduleStatus * The status of the monitoring schedule. * @return Returns a reference to this object so that method calls can be chained together. * @see ScheduleStatus */ public ModelDashboardMonitoringSchedule withMonitoringScheduleStatus(ScheduleStatus monitoringScheduleStatus) { this.monitoringScheduleStatus = monitoringScheduleStatus.toString(); return this; } /** ** The monitor type of a model monitor. *
* * @param monitoringType * The monitor type of a model monitor. * @see MonitoringType */ public void setMonitoringType(String monitoringType) { this.monitoringType = monitoringType; } /** ** The monitor type of a model monitor. *
* * @return The monitor type of a model monitor. * @see MonitoringType */ public String getMonitoringType() { return this.monitoringType; } /** ** The monitor type of a model monitor. *
* * @param monitoringType * The monitor type of a model monitor. * @return Returns a reference to this object so that method calls can be chained together. * @see MonitoringType */ public ModelDashboardMonitoringSchedule withMonitoringType(String monitoringType) { setMonitoringType(monitoringType); return this; } /** ** The monitor type of a model monitor. *
* * @param monitoringType * The monitor type of a model monitor. * @return Returns a reference to this object so that method calls can be chained together. * @see MonitoringType */ public ModelDashboardMonitoringSchedule withMonitoringType(MonitoringType monitoringType) { this.monitoringType = monitoringType.toString(); return this; } /** ** If a monitoring job failed, provides the reason. *
* * @param failureReason * If a monitoring job failed, provides the reason. */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** ** If a monitoring job failed, provides the reason. *
* * @return If a monitoring job failed, provides the reason. */ public String getFailureReason() { return this.failureReason; } /** ** If a monitoring job failed, provides the reason. *
* * @param failureReason * If a monitoring job failed, provides the reason. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelDashboardMonitoringSchedule withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** ** A timestamp that indicates when the monitoring schedule was created. *
* * @param creationTime * A timestamp that indicates when the monitoring schedule was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** A timestamp that indicates when the monitoring schedule was created. *
* * @return A timestamp that indicates when the monitoring schedule was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** A timestamp that indicates when the monitoring schedule was created. *
* * @param creationTime * A timestamp that indicates when the monitoring schedule was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelDashboardMonitoringSchedule withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** A timestamp that indicates when the monitoring schedule was last updated. *
* * @param lastModifiedTime * A timestamp that indicates when the monitoring schedule was last updated. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** ** A timestamp that indicates when the monitoring schedule was last updated. *
* * @return A timestamp that indicates when the monitoring schedule was last updated. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** A timestamp that indicates when the monitoring schedule was last updated. *
* * @param lastModifiedTime * A timestamp that indicates when the monitoring schedule was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelDashboardMonitoringSchedule withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** * @param monitoringScheduleConfig */ public void setMonitoringScheduleConfig(MonitoringScheduleConfig monitoringScheduleConfig) { this.monitoringScheduleConfig = monitoringScheduleConfig; } /** * @return */ public MonitoringScheduleConfig getMonitoringScheduleConfig() { return this.monitoringScheduleConfig; } /** * @param monitoringScheduleConfig * @return Returns a reference to this object so that method calls can be chained together. */ public ModelDashboardMonitoringSchedule withMonitoringScheduleConfig(MonitoringScheduleConfig monitoringScheduleConfig) { setMonitoringScheduleConfig(monitoringScheduleConfig); return this; } /** ** The endpoint which is monitored. *
* * @param endpointName * The endpoint which is monitored. */ public void setEndpointName(String endpointName) { this.endpointName = endpointName; } /** ** The endpoint which is monitored. *
* * @return The endpoint which is monitored. */ public String getEndpointName() { return this.endpointName; } /** ** The endpoint which is monitored. *
* * @param endpointName * The endpoint which is monitored. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelDashboardMonitoringSchedule withEndpointName(String endpointName) { setEndpointName(endpointName); return this; } /** ** A JSON array where each element is a summary for a monitoring alert. *
* * @return A JSON array where each element is a summary for a monitoring alert. */ public java.util.List* A JSON array where each element is a summary for a monitoring alert. *
* * @param monitoringAlertSummaries * A JSON array where each element is a summary for a monitoring alert. */ public void setMonitoringAlertSummaries(java.util.Collection* A JSON array where each element is a summary for a monitoring alert. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMonitoringAlertSummaries(java.util.Collection)} or * {@link #withMonitoringAlertSummaries(java.util.Collection)} if you want to override the existing values. *
* * @param monitoringAlertSummaries * A JSON array where each element is a summary for a monitoring alert. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelDashboardMonitoringSchedule withMonitoringAlertSummaries(MonitoringAlertSummary... monitoringAlertSummaries) { if (this.monitoringAlertSummaries == null) { setMonitoringAlertSummaries(new java.util.ArrayList* A JSON array where each element is a summary for a monitoring alert. *
* * @param monitoringAlertSummaries * A JSON array where each element is a summary for a monitoring alert. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelDashboardMonitoringSchedule withMonitoringAlertSummaries(java.util.Collection