All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.forecast.model.DataConfig Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Forecast module holds the client classes that are used for communicating with Amazon Forecast Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 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.forecast.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The data configuration for your dataset group and any additional datasets. *

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

* The ARN of the dataset group used to train the predictor. *

*/ private String datasetGroupArn; /** *

* Aggregation and filling options for attributes in your dataset group. *

*/ private java.util.List attributeConfigs; /** *

* Additional built-in datasets like Holidays and the Weather Index. *

*/ private java.util.List additionalDatasets; /** *

* The ARN of the dataset group used to train the predictor. *

* * @param datasetGroupArn * The ARN of the dataset group used to train the predictor. */ public void setDatasetGroupArn(String datasetGroupArn) { this.datasetGroupArn = datasetGroupArn; } /** *

* The ARN of the dataset group used to train the predictor. *

* * @return The ARN of the dataset group used to train the predictor. */ public String getDatasetGroupArn() { return this.datasetGroupArn; } /** *

* The ARN of the dataset group used to train the predictor. *

* * @param datasetGroupArn * The ARN of the dataset group used to train the predictor. * @return Returns a reference to this object so that method calls can be chained together. */ public DataConfig withDatasetGroupArn(String datasetGroupArn) { setDatasetGroupArn(datasetGroupArn); return this; } /** *

* Aggregation and filling options for attributes in your dataset group. *

* * @return Aggregation and filling options for attributes in your dataset group. */ public java.util.List getAttributeConfigs() { return attributeConfigs; } /** *

* Aggregation and filling options for attributes in your dataset group. *

* * @param attributeConfigs * Aggregation and filling options for attributes in your dataset group. */ public void setAttributeConfigs(java.util.Collection attributeConfigs) { if (attributeConfigs == null) { this.attributeConfigs = null; return; } this.attributeConfigs = new java.util.ArrayList(attributeConfigs); } /** *

* Aggregation and filling options for attributes in your dataset group. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAttributeConfigs(java.util.Collection)} or {@link #withAttributeConfigs(java.util.Collection)} if you * want to override the existing values. *

* * @param attributeConfigs * Aggregation and filling options for attributes in your dataset group. * @return Returns a reference to this object so that method calls can be chained together. */ public DataConfig withAttributeConfigs(AttributeConfig... attributeConfigs) { if (this.attributeConfigs == null) { setAttributeConfigs(new java.util.ArrayList(attributeConfigs.length)); } for (AttributeConfig ele : attributeConfigs) { this.attributeConfigs.add(ele); } return this; } /** *

* Aggregation and filling options for attributes in your dataset group. *

* * @param attributeConfigs * Aggregation and filling options for attributes in your dataset group. * @return Returns a reference to this object so that method calls can be chained together. */ public DataConfig withAttributeConfigs(java.util.Collection attributeConfigs) { setAttributeConfigs(attributeConfigs); return this; } /** *

* Additional built-in datasets like Holidays and the Weather Index. *

* * @return Additional built-in datasets like Holidays and the Weather Index. */ public java.util.List getAdditionalDatasets() { return additionalDatasets; } /** *

* Additional built-in datasets like Holidays and the Weather Index. *

* * @param additionalDatasets * Additional built-in datasets like Holidays and the Weather Index. */ public void setAdditionalDatasets(java.util.Collection additionalDatasets) { if (additionalDatasets == null) { this.additionalDatasets = null; return; } this.additionalDatasets = new java.util.ArrayList(additionalDatasets); } /** *

* Additional built-in datasets like Holidays and the Weather Index. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAdditionalDatasets(java.util.Collection)} or {@link #withAdditionalDatasets(java.util.Collection)} if * you want to override the existing values. *

* * @param additionalDatasets * Additional built-in datasets like Holidays and the Weather Index. * @return Returns a reference to this object so that method calls can be chained together. */ public DataConfig withAdditionalDatasets(AdditionalDataset... additionalDatasets) { if (this.additionalDatasets == null) { setAdditionalDatasets(new java.util.ArrayList(additionalDatasets.length)); } for (AdditionalDataset ele : additionalDatasets) { this.additionalDatasets.add(ele); } return this; } /** *

* Additional built-in datasets like Holidays and the Weather Index. *

* * @param additionalDatasets * Additional built-in datasets like Holidays and the Weather Index. * @return Returns a reference to this object so that method calls can be chained together. */ public DataConfig withAdditionalDatasets(java.util.Collection additionalDatasets) { setAdditionalDatasets(additionalDatasets); 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 (getDatasetGroupArn() != null) sb.append("DatasetGroupArn: ").append(getDatasetGroupArn()).append(","); if (getAttributeConfigs() != null) sb.append("AttributeConfigs: ").append(getAttributeConfigs()).append(","); if (getAdditionalDatasets() != null) sb.append("AdditionalDatasets: ").append(getAdditionalDatasets()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DataConfig == false) return false; DataConfig other = (DataConfig) obj; if (other.getDatasetGroupArn() == null ^ this.getDatasetGroupArn() == null) return false; if (other.getDatasetGroupArn() != null && other.getDatasetGroupArn().equals(this.getDatasetGroupArn()) == false) return false; if (other.getAttributeConfigs() == null ^ this.getAttributeConfigs() == null) return false; if (other.getAttributeConfigs() != null && other.getAttributeConfigs().equals(this.getAttributeConfigs()) == false) return false; if (other.getAdditionalDatasets() == null ^ this.getAdditionalDatasets() == null) return false; if (other.getAdditionalDatasets() != null && other.getAdditionalDatasets().equals(this.getAdditionalDatasets()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDatasetGroupArn() == null) ? 0 : getDatasetGroupArn().hashCode()); hashCode = prime * hashCode + ((getAttributeConfigs() == null) ? 0 : getAttributeConfigs().hashCode()); hashCode = prime * hashCode + ((getAdditionalDatasets() == null) ? 0 : getAdditionalDatasets().hashCode()); return hashCode; } @Override public DataConfig clone() { try { return (DataConfig) 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.forecast.model.transform.DataConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy