/* * 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 CreateMonitoringScheduleRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the monitoring schedule. The name must be unique within an Amazon Web Services Region within an * Amazon Web Services account. *
*/ private String monitoringScheduleName; /** ** The configuration object that specifies the monitoring schedule and defines the monitoring job. *
*/ private MonitoringScheduleConfig monitoringScheduleConfig; /** ** (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. *
*/ private java.util.List* The name of the monitoring schedule. The name must be unique within an Amazon Web Services Region within an * Amazon Web Services account. *
* * @param monitoringScheduleName * The name of the monitoring schedule. The name must be unique within an Amazon Web Services Region within * an Amazon Web Services account. */ public void setMonitoringScheduleName(String monitoringScheduleName) { this.monitoringScheduleName = monitoringScheduleName; } /** ** The name of the monitoring schedule. The name must be unique within an Amazon Web Services Region within an * Amazon Web Services account. *
* * @return The name of the monitoring schedule. The name must be unique within an Amazon Web Services Region within * an Amazon Web Services account. */ public String getMonitoringScheduleName() { return this.monitoringScheduleName; } /** ** The name of the monitoring schedule. The name must be unique within an Amazon Web Services Region within an * Amazon Web Services account. *
* * @param monitoringScheduleName * The name of the monitoring schedule. The name must be unique within an Amazon Web Services Region within * an Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMonitoringScheduleRequest withMonitoringScheduleName(String monitoringScheduleName) { setMonitoringScheduleName(monitoringScheduleName); return this; } /** ** The configuration object that specifies the monitoring schedule and defines the monitoring job. *
* * @param monitoringScheduleConfig * The configuration object that specifies the monitoring schedule and defines the monitoring job. */ public void setMonitoringScheduleConfig(MonitoringScheduleConfig monitoringScheduleConfig) { this.monitoringScheduleConfig = monitoringScheduleConfig; } /** ** The configuration object that specifies the monitoring schedule and defines the monitoring job. *
* * @return The configuration object that specifies the monitoring schedule and defines the monitoring job. */ public MonitoringScheduleConfig getMonitoringScheduleConfig() { return this.monitoringScheduleConfig; } /** ** The configuration object that specifies the monitoring schedule and defines the monitoring job. *
* * @param monitoringScheduleConfig * The configuration object that specifies the monitoring schedule and defines the monitoring job. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMonitoringScheduleRequest withMonitoringScheduleConfig(MonitoringScheduleConfig monitoringScheduleConfig) { setMonitoringScheduleConfig(monitoringScheduleConfig); return this; } /** ** (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. *
* * @return (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. */ public java.util.List* (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. *
* * @param tags * (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. */ public void setTags(java.util.Collection* (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User 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 * (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMonitoringScheduleRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. *
* * @param tags * (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMonitoringScheduleRequest withTags(java.util.Collection