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

com.amazonaws.services.personalize.model.HyperParameterRanges Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
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.personalize.model;

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

/**
 * 

* Specifies the hyperparameters and their ranges. Hyperparameters can be categorical, continuous, or integer-valued. *

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

* The integer-valued hyperparameters and their ranges. *

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

* The continuous hyperparameters and their ranges. *

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

* The categorical hyperparameters and their ranges. *

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

* The integer-valued hyperparameters and their ranges. *

* * @return The integer-valued hyperparameters and their ranges. */ public java.util.List getIntegerHyperParameterRanges() { return integerHyperParameterRanges; } /** *

* The integer-valued hyperparameters and their ranges. *

* * @param integerHyperParameterRanges * The integer-valued hyperparameters and their ranges. */ public void setIntegerHyperParameterRanges(java.util.Collection integerHyperParameterRanges) { if (integerHyperParameterRanges == null) { this.integerHyperParameterRanges = null; return; } this.integerHyperParameterRanges = new java.util.ArrayList(integerHyperParameterRanges); } /** *

* The integer-valued hyperparameters and their ranges. *

*

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

* * @param integerHyperParameterRanges * The integer-valued hyperparameters and their ranges. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterRanges withIntegerHyperParameterRanges(IntegerHyperParameterRange... integerHyperParameterRanges) { if (this.integerHyperParameterRanges == null) { setIntegerHyperParameterRanges(new java.util.ArrayList(integerHyperParameterRanges.length)); } for (IntegerHyperParameterRange ele : integerHyperParameterRanges) { this.integerHyperParameterRanges.add(ele); } return this; } /** *

* The integer-valued hyperparameters and their ranges. *

* * @param integerHyperParameterRanges * The integer-valued hyperparameters and their ranges. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterRanges withIntegerHyperParameterRanges(java.util.Collection integerHyperParameterRanges) { setIntegerHyperParameterRanges(integerHyperParameterRanges); return this; } /** *

* The continuous hyperparameters and their ranges. *

* * @return The continuous hyperparameters and their ranges. */ public java.util.List getContinuousHyperParameterRanges() { return continuousHyperParameterRanges; } /** *

* The continuous hyperparameters and their ranges. *

* * @param continuousHyperParameterRanges * The continuous hyperparameters and their ranges. */ public void setContinuousHyperParameterRanges(java.util.Collection continuousHyperParameterRanges) { if (continuousHyperParameterRanges == null) { this.continuousHyperParameterRanges = null; return; } this.continuousHyperParameterRanges = new java.util.ArrayList(continuousHyperParameterRanges); } /** *

* The continuous hyperparameters and their ranges. *

*

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

* * @param continuousHyperParameterRanges * The continuous hyperparameters and their ranges. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterRanges withContinuousHyperParameterRanges(ContinuousHyperParameterRange... continuousHyperParameterRanges) { if (this.continuousHyperParameterRanges == null) { setContinuousHyperParameterRanges(new java.util.ArrayList(continuousHyperParameterRanges.length)); } for (ContinuousHyperParameterRange ele : continuousHyperParameterRanges) { this.continuousHyperParameterRanges.add(ele); } return this; } /** *

* The continuous hyperparameters and their ranges. *

* * @param continuousHyperParameterRanges * The continuous hyperparameters and their ranges. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterRanges withContinuousHyperParameterRanges(java.util.Collection continuousHyperParameterRanges) { setContinuousHyperParameterRanges(continuousHyperParameterRanges); return this; } /** *

* The categorical hyperparameters and their ranges. *

* * @return The categorical hyperparameters and their ranges. */ public java.util.List getCategoricalHyperParameterRanges() { return categoricalHyperParameterRanges; } /** *

* The categorical hyperparameters and their ranges. *

* * @param categoricalHyperParameterRanges * The categorical hyperparameters and their ranges. */ public void setCategoricalHyperParameterRanges(java.util.Collection categoricalHyperParameterRanges) { if (categoricalHyperParameterRanges == null) { this.categoricalHyperParameterRanges = null; return; } this.categoricalHyperParameterRanges = new java.util.ArrayList(categoricalHyperParameterRanges); } /** *

* The categorical hyperparameters and their ranges. *

*

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

* * @param categoricalHyperParameterRanges * The categorical hyperparameters and their ranges. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterRanges withCategoricalHyperParameterRanges(CategoricalHyperParameterRange... categoricalHyperParameterRanges) { if (this.categoricalHyperParameterRanges == null) { setCategoricalHyperParameterRanges(new java.util.ArrayList(categoricalHyperParameterRanges.length)); } for (CategoricalHyperParameterRange ele : categoricalHyperParameterRanges) { this.categoricalHyperParameterRanges.add(ele); } return this; } /** *

* The categorical hyperparameters and their ranges. *

* * @param categoricalHyperParameterRanges * The categorical hyperparameters and their ranges. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterRanges withCategoricalHyperParameterRanges(java.util.Collection categoricalHyperParameterRanges) { setCategoricalHyperParameterRanges(categoricalHyperParameterRanges); 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 (getIntegerHyperParameterRanges() != null) sb.append("IntegerHyperParameterRanges: ").append(getIntegerHyperParameterRanges()).append(","); if (getContinuousHyperParameterRanges() != null) sb.append("ContinuousHyperParameterRanges: ").append(getContinuousHyperParameterRanges()).append(","); if (getCategoricalHyperParameterRanges() != null) sb.append("CategoricalHyperParameterRanges: ").append(getCategoricalHyperParameterRanges()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof HyperParameterRanges == false) return false; HyperParameterRanges other = (HyperParameterRanges) obj; if (other.getIntegerHyperParameterRanges() == null ^ this.getIntegerHyperParameterRanges() == null) return false; if (other.getIntegerHyperParameterRanges() != null && other.getIntegerHyperParameterRanges().equals(this.getIntegerHyperParameterRanges()) == false) return false; if (other.getContinuousHyperParameterRanges() == null ^ this.getContinuousHyperParameterRanges() == null) return false; if (other.getContinuousHyperParameterRanges() != null && other.getContinuousHyperParameterRanges().equals(this.getContinuousHyperParameterRanges()) == false) return false; if (other.getCategoricalHyperParameterRanges() == null ^ this.getCategoricalHyperParameterRanges() == null) return false; if (other.getCategoricalHyperParameterRanges() != null && other.getCategoricalHyperParameterRanges().equals(this.getCategoricalHyperParameterRanges()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIntegerHyperParameterRanges() == null) ? 0 : getIntegerHyperParameterRanges().hashCode()); hashCode = prime * hashCode + ((getContinuousHyperParameterRanges() == null) ? 0 : getContinuousHyperParameterRanges().hashCode()); hashCode = prime * hashCode + ((getCategoricalHyperParameterRanges() == null) ? 0 : getCategoricalHyperParameterRanges().hashCode()); return hashCode; } @Override public HyperParameterRanges clone() { try { return (HyperParameterRanges) 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.personalize.model.transform.HyperParameterRangesMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy