/* * 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 schedule for a model monitoring job. For information about model monitor, see Amazon SageMaker Model Monitor. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MonitoringSchedule implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) of the monitoring schedule. *
*/ private String monitoringScheduleArn; /** ** The name of the monitoring schedule. *
*/ private String monitoringScheduleName; /** ** The status of the monitoring schedule. This can be one of the following values. *
*
* PENDING
- The schedule is pending being created.
*
* FAILED
- The schedule failed.
*
* SCHEDULED
- The schedule was successfully created.
*
* STOPPED
- The schedule was stopped.
*
* The type of the monitoring job definition to schedule. *
*/ private String monitoringType; /** ** If the monitoring schedule failed, the reason it failed. *
*/ private String failureReason; /** ** The time that the monitoring schedule was created. *
*/ private java.util.Date creationTime; /** ** The last time the monitoring schedule was changed. *
*/ private java.util.Date lastModifiedTime; private MonitoringScheduleConfig monitoringScheduleConfig; /** ** The endpoint that hosts the model being monitored. *
*/ private String endpointName; private MonitoringExecutionSummary lastMonitoringExecutionSummary; /** ** A list of the tags associated with the monitoring schedlue. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the monitoring schedule. *
* * @param monitoringScheduleArn * The Amazon Resource Name (ARN) of the monitoring schedule. */ public void setMonitoringScheduleArn(String monitoringScheduleArn) { this.monitoringScheduleArn = monitoringScheduleArn; } /** ** The Amazon Resource Name (ARN) of the monitoring schedule. *
* * @return The Amazon Resource Name (ARN) of the monitoring schedule. */ public String getMonitoringScheduleArn() { return this.monitoringScheduleArn; } /** ** The Amazon Resource Name (ARN) of the monitoring schedule. *
* * @param monitoringScheduleArn * The Amazon Resource Name (ARN) of the monitoring schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public MonitoringSchedule withMonitoringScheduleArn(String monitoringScheduleArn) { setMonitoringScheduleArn(monitoringScheduleArn); return this; } /** ** The name of the monitoring schedule. *
* * @param monitoringScheduleName * The name of the monitoring schedule. */ public void setMonitoringScheduleName(String monitoringScheduleName) { this.monitoringScheduleName = monitoringScheduleName; } /** ** The name of the monitoring schedule. *
* * @return The name of the monitoring schedule. */ public String getMonitoringScheduleName() { return this.monitoringScheduleName; } /** ** The name of the monitoring schedule. *
* * @param monitoringScheduleName * The name of the monitoring schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public MonitoringSchedule withMonitoringScheduleName(String monitoringScheduleName) { setMonitoringScheduleName(monitoringScheduleName); return this; } /** ** The status of the monitoring schedule. This can be one of the following values. *
*
* PENDING
- The schedule is pending being created.
*
* FAILED
- The schedule failed.
*
* SCHEDULED
- The schedule was successfully created.
*
* STOPPED
- The schedule was stopped.
*
* PENDING
- The schedule is pending being created.
*
* FAILED
- The schedule failed.
*
* SCHEDULED
- The schedule was successfully created.
*
* STOPPED
- The schedule was stopped.
*
* The status of the monitoring schedule. This can be one of the following values. *
*
* PENDING
- The schedule is pending being created.
*
* FAILED
- The schedule failed.
*
* SCHEDULED
- The schedule was successfully created.
*
* STOPPED
- The schedule was stopped.
*
* PENDING
- The schedule is pending being created.
*
* FAILED
- The schedule failed.
*
* SCHEDULED
- The schedule was successfully created.
*
* STOPPED
- The schedule was stopped.
*
* The status of the monitoring schedule. This can be one of the following values. *
*
* PENDING
- The schedule is pending being created.
*
* FAILED
- The schedule failed.
*
* SCHEDULED
- The schedule was successfully created.
*
* STOPPED
- The schedule was stopped.
*
* PENDING
- The schedule is pending being created.
*
* FAILED
- The schedule failed.
*
* SCHEDULED
- The schedule was successfully created.
*
* STOPPED
- The schedule was stopped.
*
* The status of the monitoring schedule. This can be one of the following values. *
*
* PENDING
- The schedule is pending being created.
*
* FAILED
- The schedule failed.
*
* SCHEDULED
- The schedule was successfully created.
*
* STOPPED
- The schedule was stopped.
*
* PENDING
- The schedule is pending being created.
*
* FAILED
- The schedule failed.
*
* SCHEDULED
- The schedule was successfully created.
*
* STOPPED
- The schedule was stopped.
*
* The type of the monitoring job definition to schedule. *
* * @param monitoringType * The type of the monitoring job definition to schedule. * @see MonitoringType */ public void setMonitoringType(String monitoringType) { this.monitoringType = monitoringType; } /** ** The type of the monitoring job definition to schedule. *
* * @return The type of the monitoring job definition to schedule. * @see MonitoringType */ public String getMonitoringType() { return this.monitoringType; } /** ** The type of the monitoring job definition to schedule. *
* * @param monitoringType * The type of the monitoring job definition to schedule. * @return Returns a reference to this object so that method calls can be chained together. * @see MonitoringType */ public MonitoringSchedule withMonitoringType(String monitoringType) { setMonitoringType(monitoringType); return this; } /** ** The type of the monitoring job definition to schedule. *
* * @param monitoringType * The type of the monitoring job definition to schedule. * @return Returns a reference to this object so that method calls can be chained together. * @see MonitoringType */ public MonitoringSchedule withMonitoringType(MonitoringType monitoringType) { this.monitoringType = monitoringType.toString(); return this; } /** ** If the monitoring schedule failed, the reason it failed. *
* * @param failureReason * If the monitoring schedule failed, the reason it failed. */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** ** If the monitoring schedule failed, the reason it failed. *
* * @return If the monitoring schedule failed, the reason it failed. */ public String getFailureReason() { return this.failureReason; } /** ** If the monitoring schedule failed, the reason it failed. *
* * @param failureReason * If the monitoring schedule failed, the reason it failed. * @return Returns a reference to this object so that method calls can be chained together. */ public MonitoringSchedule withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** ** The time that the monitoring schedule was created. *
* * @param creationTime * The time that the monitoring schedule was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The time that the monitoring schedule was created. *
* * @return The time that the monitoring schedule was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The time that the monitoring schedule was created. *
* * @param creationTime * The time that the monitoring schedule was created. * @return Returns a reference to this object so that method calls can be chained together. */ public MonitoringSchedule withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The last time the monitoring schedule was changed. *
* * @param lastModifiedTime * The last time the monitoring schedule was changed. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** ** The last time the monitoring schedule was changed. *
* * @return The last time the monitoring schedule was changed. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** The last time the monitoring schedule was changed. *
* * @param lastModifiedTime * The last time the monitoring schedule was changed. * @return Returns a reference to this object so that method calls can be chained together. */ public MonitoringSchedule 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 MonitoringSchedule withMonitoringScheduleConfig(MonitoringScheduleConfig monitoringScheduleConfig) { setMonitoringScheduleConfig(monitoringScheduleConfig); return this; } /** ** The endpoint that hosts the model being monitored. *
* * @param endpointName * The endpoint that hosts the model being monitored. */ public void setEndpointName(String endpointName) { this.endpointName = endpointName; } /** ** The endpoint that hosts the model being monitored. *
* * @return The endpoint that hosts the model being monitored. */ public String getEndpointName() { return this.endpointName; } /** ** The endpoint that hosts the model being monitored. *
* * @param endpointName * The endpoint that hosts the model being monitored. * @return Returns a reference to this object so that method calls can be chained together. */ public MonitoringSchedule withEndpointName(String endpointName) { setEndpointName(endpointName); return this; } /** * @param lastMonitoringExecutionSummary */ public void setLastMonitoringExecutionSummary(MonitoringExecutionSummary lastMonitoringExecutionSummary) { this.lastMonitoringExecutionSummary = lastMonitoringExecutionSummary; } /** * @return */ public MonitoringExecutionSummary getLastMonitoringExecutionSummary() { return this.lastMonitoringExecutionSummary; } /** * @param lastMonitoringExecutionSummary * @return Returns a reference to this object so that method calls can be chained together. */ public MonitoringSchedule withLastMonitoringExecutionSummary(MonitoringExecutionSummary lastMonitoringExecutionSummary) { setLastMonitoringExecutionSummary(lastMonitoringExecutionSummary); return this; } /** ** A list of the tags associated with the monitoring schedlue. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
* * @return A list of the tags associated with the monitoring schedlue. For more information, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference Guide. */ public java.util.List* A list of the tags associated with the monitoring schedlue. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
* * @param tags * A list of the tags associated with the monitoring schedlue. For more information, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference Guide. */ public void setTags(java.util.Collection* A list of the tags associated with the monitoring schedlue. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
** 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 * A list of the tags associated with the monitoring schedlue. For more information, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public MonitoringSchedule withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of the tags associated with the monitoring schedlue. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
* * @param tags * A list of the tags associated with the monitoring schedlue. For more information, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public MonitoringSchedule withTags(java.util.Collection