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

com.amazonaws.services.lookoutequipment.model.ImportModelVersionRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show newest version
/*
 * 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.lookoutequipment.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 ImportModelVersionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Name (ARN) of the model version to import. *

*/ private String sourceModelVersionArn; /** *

* The name for the machine learning model to be created. If the model already exists, Amazon Lookout for Equipment * creates a new version. If you do not specify this field, it is filled with the name of the source model. *

*/ private String modelName; /** *

* The name of the dataset for the machine learning model being imported. *

*/ private String datasetName; private LabelsInputConfiguration labelsInputConfiguration; /** *

* A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment * generates one. *

*/ private String clientToken; /** *

* The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create the * machine learning model. *

*/ private String roleArn; /** *

* Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment. *

*/ private String serverSideKmsKeyId; /** *

* The tags associated with the machine learning model to be created. *

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

* Indicates how to import the accumulated inference data when a model version is imported. The possible values are * as follows: *

*
    *
  • *

    * NO_IMPORT – Don't import the data. *

    *
  • *
  • *

    * ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target model. *

    *
  • *
  • *

    * OVERWRITE – Import the data from the source model and overwrite the existing data in the target model. *

    *
  • *
*/ private String inferenceDataImportStrategy; /** *

* The Amazon Resource Name (ARN) of the model version to import. *

* * @param sourceModelVersionArn * The Amazon Resource Name (ARN) of the model version to import. */ public void setSourceModelVersionArn(String sourceModelVersionArn) { this.sourceModelVersionArn = sourceModelVersionArn; } /** *

* The Amazon Resource Name (ARN) of the model version to import. *

* * @return The Amazon Resource Name (ARN) of the model version to import. */ public String getSourceModelVersionArn() { return this.sourceModelVersionArn; } /** *

* The Amazon Resource Name (ARN) of the model version to import. *

* * @param sourceModelVersionArn * The Amazon Resource Name (ARN) of the model version to import. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportModelVersionRequest withSourceModelVersionArn(String sourceModelVersionArn) { setSourceModelVersionArn(sourceModelVersionArn); return this; } /** *

* The name for the machine learning model to be created. If the model already exists, Amazon Lookout for Equipment * creates a new version. If you do not specify this field, it is filled with the name of the source model. *

* * @param modelName * The name for the machine learning model to be created. If the model already exists, Amazon Lookout for * Equipment creates a new version. If you do not specify this field, it is filled with the name of the * source model. */ public void setModelName(String modelName) { this.modelName = modelName; } /** *

* The name for the machine learning model to be created. If the model already exists, Amazon Lookout for Equipment * creates a new version. If you do not specify this field, it is filled with the name of the source model. *

* * @return The name for the machine learning model to be created. If the model already exists, Amazon Lookout for * Equipment creates a new version. If you do not specify this field, it is filled with the name of the * source model. */ public String getModelName() { return this.modelName; } /** *

* The name for the machine learning model to be created. If the model already exists, Amazon Lookout for Equipment * creates a new version. If you do not specify this field, it is filled with the name of the source model. *

* * @param modelName * The name for the machine learning model to be created. If the model already exists, Amazon Lookout for * Equipment creates a new version. If you do not specify this field, it is filled with the name of the * source model. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportModelVersionRequest withModelName(String modelName) { setModelName(modelName); return this; } /** *

* The name of the dataset for the machine learning model being imported. *

* * @param datasetName * The name of the dataset for the machine learning model being imported. */ public void setDatasetName(String datasetName) { this.datasetName = datasetName; } /** *

* The name of the dataset for the machine learning model being imported. *

* * @return The name of the dataset for the machine learning model being imported. */ public String getDatasetName() { return this.datasetName; } /** *

* The name of the dataset for the machine learning model being imported. *

* * @param datasetName * The name of the dataset for the machine learning model being imported. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportModelVersionRequest withDatasetName(String datasetName) { setDatasetName(datasetName); return this; } /** * @param labelsInputConfiguration */ public void setLabelsInputConfiguration(LabelsInputConfiguration labelsInputConfiguration) { this.labelsInputConfiguration = labelsInputConfiguration; } /** * @return */ public LabelsInputConfiguration getLabelsInputConfiguration() { return this.labelsInputConfiguration; } /** * @param labelsInputConfiguration * @return Returns a reference to this object so that method calls can be chained together. */ public ImportModelVersionRequest withLabelsInputConfiguration(LabelsInputConfiguration labelsInputConfiguration) { setLabelsInputConfiguration(labelsInputConfiguration); return this; } /** *

* A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment * generates one. *

* * @param clientToken * A unique identifier for the request. If you do not set the client request token, Amazon Lookout for * Equipment generates one. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment * generates one. *

* * @return A unique identifier for the request. If you do not set the client request token, Amazon Lookout for * Equipment generates one. */ public String getClientToken() { return this.clientToken; } /** *

* A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment * generates one. *

* * @param clientToken * A unique identifier for the request. If you do not set the client request token, Amazon Lookout for * Equipment generates one. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportModelVersionRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create the * machine learning model. *

* * @param roleArn * The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create * the machine learning model. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create the * machine learning model. *

* * @return The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create * the machine learning model. */ public String getRoleArn() { return this.roleArn; } /** *

* The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create the * machine learning model. *

* * @param roleArn * The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create * the machine learning model. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportModelVersionRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment. *

* * @param serverSideKmsKeyId * Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment. */ public void setServerSideKmsKeyId(String serverSideKmsKeyId) { this.serverSideKmsKeyId = serverSideKmsKeyId; } /** *

* Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment. *

* * @return Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment. */ public String getServerSideKmsKeyId() { return this.serverSideKmsKeyId; } /** *

* Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment. *

* * @param serverSideKmsKeyId * Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportModelVersionRequest withServerSideKmsKeyId(String serverSideKmsKeyId) { setServerSideKmsKeyId(serverSideKmsKeyId); return this; } /** *

* The tags associated with the machine learning model to be created. *

* * @return The tags associated with the machine learning model to be created. */ public java.util.List getTags() { return tags; } /** *

* The tags associated with the machine learning model to be created. *

* * @param tags * The tags associated with the machine learning model to be created. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* The tags associated with the machine learning model to be created. *

*

* 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 * The tags associated with the machine learning model to be created. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportModelVersionRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* The tags associated with the machine learning model to be created. *

* * @param tags * The tags associated with the machine learning model to be created. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportModelVersionRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* Indicates how to import the accumulated inference data when a model version is imported. The possible values are * as follows: *

*
    *
  • *

    * NO_IMPORT – Don't import the data. *

    *
  • *
  • *

    * ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target model. *

    *
  • *
  • *

    * OVERWRITE – Import the data from the source model and overwrite the existing data in the target model. *

    *
  • *
* * @param inferenceDataImportStrategy * Indicates how to import the accumulated inference data when a model version is imported. The possible * values are as follows:

*
    *
  • *

    * NO_IMPORT – Don't import the data. *

    *
  • *
  • *

    * ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target * model. *

    *
  • *
  • *

    * OVERWRITE – Import the data from the source model and overwrite the existing data in the target model. *

    *
  • * @see InferenceDataImportStrategy */ public void setInferenceDataImportStrategy(String inferenceDataImportStrategy) { this.inferenceDataImportStrategy = inferenceDataImportStrategy; } /** *

    * Indicates how to import the accumulated inference data when a model version is imported. The possible values are * as follows: *

    *
      *
    • *

      * NO_IMPORT – Don't import the data. *

      *
    • *
    • *

      * ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target model. *

      *
    • *
    • *

      * OVERWRITE – Import the data from the source model and overwrite the existing data in the target model. *

      *
    • *
    * * @return Indicates how to import the accumulated inference data when a model version is imported. The possible * values are as follows:

    *
      *
    • *

      * NO_IMPORT – Don't import the data. *

      *
    • *
    • *

      * ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target * model. *

      *
    • *
    • *

      * OVERWRITE – Import the data from the source model and overwrite the existing data in the target model. *

      *
    • * @see InferenceDataImportStrategy */ public String getInferenceDataImportStrategy() { return this.inferenceDataImportStrategy; } /** *

      * Indicates how to import the accumulated inference data when a model version is imported. The possible values are * as follows: *

      *
        *
      • *

        * NO_IMPORT – Don't import the data. *

        *
      • *
      • *

        * ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target model. *

        *
      • *
      • *

        * OVERWRITE – Import the data from the source model and overwrite the existing data in the target model. *

        *
      • *
      * * @param inferenceDataImportStrategy * Indicates how to import the accumulated inference data when a model version is imported. The possible * values are as follows:

      *
        *
      • *

        * NO_IMPORT – Don't import the data. *

        *
      • *
      • *

        * ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target * model. *

        *
      • *
      • *

        * OVERWRITE – Import the data from the source model and overwrite the existing data in the target model. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see InferenceDataImportStrategy */ public ImportModelVersionRequest withInferenceDataImportStrategy(String inferenceDataImportStrategy) { setInferenceDataImportStrategy(inferenceDataImportStrategy); return this; } /** *

        * Indicates how to import the accumulated inference data when a model version is imported. The possible values are * as follows: *

        *
          *
        • *

          * NO_IMPORT – Don't import the data. *

          *
        • *
        • *

          * ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target model. *

          *
        • *
        • *

          * OVERWRITE – Import the data from the source model and overwrite the existing data in the target model. *

          *
        • *
        * * @param inferenceDataImportStrategy * Indicates how to import the accumulated inference data when a model version is imported. The possible * values are as follows:

        *
          *
        • *

          * NO_IMPORT – Don't import the data. *

          *
        • *
        • *

          * ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target * model. *

          *
        • *
        • *

          * OVERWRITE – Import the data from the source model and overwrite the existing data in the target model. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see InferenceDataImportStrategy */ public ImportModelVersionRequest withInferenceDataImportStrategy(InferenceDataImportStrategy inferenceDataImportStrategy) { this.inferenceDataImportStrategy = inferenceDataImportStrategy.toString(); 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 (getSourceModelVersionArn() != null) sb.append("SourceModelVersionArn: ").append(getSourceModelVersionArn()).append(","); if (getModelName() != null) sb.append("ModelName: ").append(getModelName()).append(","); if (getDatasetName() != null) sb.append("DatasetName: ").append(getDatasetName()).append(","); if (getLabelsInputConfiguration() != null) sb.append("LabelsInputConfiguration: ").append(getLabelsInputConfiguration()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getServerSideKmsKeyId() != null) sb.append("ServerSideKmsKeyId: ").append(getServerSideKmsKeyId()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getInferenceDataImportStrategy() != null) sb.append("InferenceDataImportStrategy: ").append(getInferenceDataImportStrategy()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ImportModelVersionRequest == false) return false; ImportModelVersionRequest other = (ImportModelVersionRequest) obj; if (other.getSourceModelVersionArn() == null ^ this.getSourceModelVersionArn() == null) return false; if (other.getSourceModelVersionArn() != null && other.getSourceModelVersionArn().equals(this.getSourceModelVersionArn()) == false) return false; if (other.getModelName() == null ^ this.getModelName() == null) return false; if (other.getModelName() != null && other.getModelName().equals(this.getModelName()) == false) return false; if (other.getDatasetName() == null ^ this.getDatasetName() == null) return false; if (other.getDatasetName() != null && other.getDatasetName().equals(this.getDatasetName()) == false) return false; if (other.getLabelsInputConfiguration() == null ^ this.getLabelsInputConfiguration() == null) return false; if (other.getLabelsInputConfiguration() != null && other.getLabelsInputConfiguration().equals(this.getLabelsInputConfiguration()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getServerSideKmsKeyId() == null ^ this.getServerSideKmsKeyId() == null) return false; if (other.getServerSideKmsKeyId() != null && other.getServerSideKmsKeyId().equals(this.getServerSideKmsKeyId()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getInferenceDataImportStrategy() == null ^ this.getInferenceDataImportStrategy() == null) return false; if (other.getInferenceDataImportStrategy() != null && other.getInferenceDataImportStrategy().equals(this.getInferenceDataImportStrategy()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceModelVersionArn() == null) ? 0 : getSourceModelVersionArn().hashCode()); hashCode = prime * hashCode + ((getModelName() == null) ? 0 : getModelName().hashCode()); hashCode = prime * hashCode + ((getDatasetName() == null) ? 0 : getDatasetName().hashCode()); hashCode = prime * hashCode + ((getLabelsInputConfiguration() == null) ? 0 : getLabelsInputConfiguration().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getServerSideKmsKeyId() == null) ? 0 : getServerSideKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getInferenceDataImportStrategy() == null) ? 0 : getInferenceDataImportStrategy().hashCode()); return hashCode; } @Override public ImportModelVersionRequest clone() { return (ImportModelVersionRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy