/* * 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 collection of components that defines the time-series. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TimeSeriesConfig implements Serializable, Cloneable, StructuredPojo { /** ** The name of the column representing the target variable that you want to predict for each item in your dataset. * The data type of the target variable must be numerical. *
*/ private String targetAttributeName; /** ** The name of the column indicating a point in time at which the target value of a given item is recorded. *
*/ private String timestampAttributeName; /** ** The name of the column that represents the set of item identifiers for which you want to predict the target * value. *
*/ private String itemIdentifierAttributeName; /** ** A set of columns names that can be grouped with the item identifier column to create a composite key for which a * target value is predicted. *
*/ private java.util.List* The name of the column representing the target variable that you want to predict for each item in your dataset. * The data type of the target variable must be numerical. *
* * @param targetAttributeName * The name of the column representing the target variable that you want to predict for each item in your * dataset. The data type of the target variable must be numerical. */ public void setTargetAttributeName(String targetAttributeName) { this.targetAttributeName = targetAttributeName; } /** ** The name of the column representing the target variable that you want to predict for each item in your dataset. * The data type of the target variable must be numerical. *
* * @return The name of the column representing the target variable that you want to predict for each item in your * dataset. The data type of the target variable must be numerical. */ public String getTargetAttributeName() { return this.targetAttributeName; } /** ** The name of the column representing the target variable that you want to predict for each item in your dataset. * The data type of the target variable must be numerical. *
* * @param targetAttributeName * The name of the column representing the target variable that you want to predict for each item in your * dataset. The data type of the target variable must be numerical. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeriesConfig withTargetAttributeName(String targetAttributeName) { setTargetAttributeName(targetAttributeName); return this; } /** ** The name of the column indicating a point in time at which the target value of a given item is recorded. *
* * @param timestampAttributeName * The name of the column indicating a point in time at which the target value of a given item is recorded. */ public void setTimestampAttributeName(String timestampAttributeName) { this.timestampAttributeName = timestampAttributeName; } /** ** The name of the column indicating a point in time at which the target value of a given item is recorded. *
* * @return The name of the column indicating a point in time at which the target value of a given item is recorded. */ public String getTimestampAttributeName() { return this.timestampAttributeName; } /** ** The name of the column indicating a point in time at which the target value of a given item is recorded. *
* * @param timestampAttributeName * The name of the column indicating a point in time at which the target value of a given item is recorded. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeriesConfig withTimestampAttributeName(String timestampAttributeName) { setTimestampAttributeName(timestampAttributeName); return this; } /** ** The name of the column that represents the set of item identifiers for which you want to predict the target * value. *
* * @param itemIdentifierAttributeName * The name of the column that represents the set of item identifiers for which you want to predict the * target value. */ public void setItemIdentifierAttributeName(String itemIdentifierAttributeName) { this.itemIdentifierAttributeName = itemIdentifierAttributeName; } /** ** The name of the column that represents the set of item identifiers for which you want to predict the target * value. *
* * @return The name of the column that represents the set of item identifiers for which you want to predict the * target value. */ public String getItemIdentifierAttributeName() { return this.itemIdentifierAttributeName; } /** ** The name of the column that represents the set of item identifiers for which you want to predict the target * value. *
* * @param itemIdentifierAttributeName * The name of the column that represents the set of item identifiers for which you want to predict the * target value. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeriesConfig withItemIdentifierAttributeName(String itemIdentifierAttributeName) { setItemIdentifierAttributeName(itemIdentifierAttributeName); return this; } /** ** A set of columns names that can be grouped with the item identifier column to create a composite key for which a * target value is predicted. *
* * @return A set of columns names that can be grouped with the item identifier column to create a composite key for * which a target value is predicted. */ public java.util.List* A set of columns names that can be grouped with the item identifier column to create a composite key for which a * target value is predicted. *
* * @param groupingAttributeNames * A set of columns names that can be grouped with the item identifier column to create a composite key for * which a target value is predicted. */ public void setGroupingAttributeNames(java.util.Collection* A set of columns names that can be grouped with the item identifier column to create a composite key for which a * target value is predicted. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGroupingAttributeNames(java.util.Collection)} or * {@link #withGroupingAttributeNames(java.util.Collection)} if you want to override the existing values. *
* * @param groupingAttributeNames * A set of columns names that can be grouped with the item identifier column to create a composite key for * which a target value is predicted. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeriesConfig withGroupingAttributeNames(String... groupingAttributeNames) { if (this.groupingAttributeNames == null) { setGroupingAttributeNames(new java.util.ArrayList* A set of columns names that can be grouped with the item identifier column to create a composite key for which a * target value is predicted. *
* * @param groupingAttributeNames * A set of columns names that can be grouped with the item identifier column to create a composite key for * which a target value is predicted. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeriesConfig withGroupingAttributeNames(java.util.Collection