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

com.amazonaws.services.frauddetector.model.UpdateModelVersionRequest Maven / Gradle / Ivy

Go to download

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

The 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.frauddetector.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 UpdateModelVersionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The model ID. *

*/ private String modelId; /** *

* The model type. *

*/ private String modelType; /** *

* The major version number. *

*/ private String majorVersionNumber; /** *

* The details of the external events data used for training the model version. Required if * trainingDataSource is EXTERNAL_EVENTS. *

*/ private ExternalEventsDetail externalEventsDetail; /** *

* The details of the ingested event used for training the model version. Required if your * trainingDataSource is INGESTED_EVENTS. *

*/ private IngestedEventsDetail ingestedEventsDetail; /** *

* A collection of key and value pairs. *

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

* The model ID. *

* * @param modelId * The model ID. */ public void setModelId(String modelId) { this.modelId = modelId; } /** *

* The model ID. *

* * @return The model ID. */ public String getModelId() { return this.modelId; } /** *

* The model ID. *

* * @param modelId * The model ID. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelVersionRequest withModelId(String modelId) { setModelId(modelId); return this; } /** *

* The model type. *

* * @param modelType * The model type. * @see ModelTypeEnum */ public void setModelType(String modelType) { this.modelType = modelType; } /** *

* The model type. *

* * @return The model type. * @see ModelTypeEnum */ public String getModelType() { return this.modelType; } /** *

* The model type. *

* * @param modelType * The model type. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelTypeEnum */ public UpdateModelVersionRequest withModelType(String modelType) { setModelType(modelType); return this; } /** *

* The model type. *

* * @param modelType * The model type. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelTypeEnum */ public UpdateModelVersionRequest withModelType(ModelTypeEnum modelType) { this.modelType = modelType.toString(); return this; } /** *

* The major version number. *

* * @param majorVersionNumber * The major version number. */ public void setMajorVersionNumber(String majorVersionNumber) { this.majorVersionNumber = majorVersionNumber; } /** *

* The major version number. *

* * @return The major version number. */ public String getMajorVersionNumber() { return this.majorVersionNumber; } /** *

* The major version number. *

* * @param majorVersionNumber * The major version number. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelVersionRequest withMajorVersionNumber(String majorVersionNumber) { setMajorVersionNumber(majorVersionNumber); return this; } /** *

* The details of the external events data used for training the model version. Required if * trainingDataSource is EXTERNAL_EVENTS. *

* * @param externalEventsDetail * The details of the external events data used for training the model version. Required if * trainingDataSource is EXTERNAL_EVENTS. */ public void setExternalEventsDetail(ExternalEventsDetail externalEventsDetail) { this.externalEventsDetail = externalEventsDetail; } /** *

* The details of the external events data used for training the model version. Required if * trainingDataSource is EXTERNAL_EVENTS. *

* * @return The details of the external events data used for training the model version. Required if * trainingDataSource is EXTERNAL_EVENTS. */ public ExternalEventsDetail getExternalEventsDetail() { return this.externalEventsDetail; } /** *

* The details of the external events data used for training the model version. Required if * trainingDataSource is EXTERNAL_EVENTS. *

* * @param externalEventsDetail * The details of the external events data used for training the model version. Required if * trainingDataSource is EXTERNAL_EVENTS. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelVersionRequest withExternalEventsDetail(ExternalEventsDetail externalEventsDetail) { setExternalEventsDetail(externalEventsDetail); return this; } /** *

* The details of the ingested event used for training the model version. Required if your * trainingDataSource is INGESTED_EVENTS. *

* * @param ingestedEventsDetail * The details of the ingested event used for training the model version. Required if your * trainingDataSource is INGESTED_EVENTS. */ public void setIngestedEventsDetail(IngestedEventsDetail ingestedEventsDetail) { this.ingestedEventsDetail = ingestedEventsDetail; } /** *

* The details of the ingested event used for training the model version. Required if your * trainingDataSource is INGESTED_EVENTS. *

* * @return The details of the ingested event used for training the model version. Required if your * trainingDataSource is INGESTED_EVENTS. */ public IngestedEventsDetail getIngestedEventsDetail() { return this.ingestedEventsDetail; } /** *

* The details of the ingested event used for training the model version. Required if your * trainingDataSource is INGESTED_EVENTS. *

* * @param ingestedEventsDetail * The details of the ingested event used for training the model version. Required if your * trainingDataSource is INGESTED_EVENTS. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelVersionRequest withIngestedEventsDetail(IngestedEventsDetail ingestedEventsDetail) { setIngestedEventsDetail(ingestedEventsDetail); return this; } /** *

* A collection of key and value pairs. *

* * @return A collection of key and value pairs. */ public java.util.List getTags() { return tags; } /** *

* A collection of key and value pairs. *

* * @param tags * A collection of key and value pairs. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* A collection of key and value pairs. *

*

* 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 collection of key and value pairs. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelVersionRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* A collection of key and value pairs. *

* * @param tags * A collection of key and value pairs. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelVersionRequest withTags(java.util.Collection tags) { setTags(tags); 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 (getModelId() != null) sb.append("ModelId: ").append(getModelId()).append(","); if (getModelType() != null) sb.append("ModelType: ").append(getModelType()).append(","); if (getMajorVersionNumber() != null) sb.append("MajorVersionNumber: ").append(getMajorVersionNumber()).append(","); if (getExternalEventsDetail() != null) sb.append("ExternalEventsDetail: ").append(getExternalEventsDetail()).append(","); if (getIngestedEventsDetail() != null) sb.append("IngestedEventsDetail: ").append(getIngestedEventsDetail()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateModelVersionRequest == false) return false; UpdateModelVersionRequest other = (UpdateModelVersionRequest) obj; if (other.getModelId() == null ^ this.getModelId() == null) return false; if (other.getModelId() != null && other.getModelId().equals(this.getModelId()) == false) return false; if (other.getModelType() == null ^ this.getModelType() == null) return false; if (other.getModelType() != null && other.getModelType().equals(this.getModelType()) == false) return false; if (other.getMajorVersionNumber() == null ^ this.getMajorVersionNumber() == null) return false; if (other.getMajorVersionNumber() != null && other.getMajorVersionNumber().equals(this.getMajorVersionNumber()) == false) return false; if (other.getExternalEventsDetail() == null ^ this.getExternalEventsDetail() == null) return false; if (other.getExternalEventsDetail() != null && other.getExternalEventsDetail().equals(this.getExternalEventsDetail()) == false) return false; if (other.getIngestedEventsDetail() == null ^ this.getIngestedEventsDetail() == null) return false; if (other.getIngestedEventsDetail() != null && other.getIngestedEventsDetail().equals(this.getIngestedEventsDetail()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getModelId() == null) ? 0 : getModelId().hashCode()); hashCode = prime * hashCode + ((getModelType() == null) ? 0 : getModelType().hashCode()); hashCode = prime * hashCode + ((getMajorVersionNumber() == null) ? 0 : getMajorVersionNumber().hashCode()); hashCode = prime * hashCode + ((getExternalEventsDetail() == null) ? 0 : getExternalEventsDetail().hashCode()); hashCode = prime * hashCode + ((getIngestedEventsDetail() == null) ? 0 : getIngestedEventsDetail().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public UpdateModelVersionRequest clone() { return (UpdateModelVersionRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy