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

com.amazonaws.services.frauddetector.model.ExternalModel 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The Amazon SageMaker model. *

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

* The Amazon SageMaker model endpoints. *

*/ private String modelEndpoint; /** *

* The source of the model. *

*/ private String modelSource; /** *

* The role used to invoke the model. *

*/ private String invokeModelEndpointRoleArn; /** *

* The input configuration. *

*/ private ModelInputConfiguration inputConfiguration; /** *

* The output configuration. *

*/ private ModelOutputConfiguration outputConfiguration; /** *

* The Amazon Fraud Detector status for the external model endpoint *

*/ private String modelEndpointStatus; /** *

* Timestamp of when the model was last updated. *

*/ private String lastUpdatedTime; /** *

* Timestamp of when the model was last created. *

*/ private String createdTime; /** *

* The model ARN. *

*/ private String arn; /** *

* The Amazon SageMaker model endpoints. *

* * @param modelEndpoint * The Amazon SageMaker model endpoints. */ public void setModelEndpoint(String modelEndpoint) { this.modelEndpoint = modelEndpoint; } /** *

* The Amazon SageMaker model endpoints. *

* * @return The Amazon SageMaker model endpoints. */ public String getModelEndpoint() { return this.modelEndpoint; } /** *

* The Amazon SageMaker model endpoints. *

* * @param modelEndpoint * The Amazon SageMaker model endpoints. * @return Returns a reference to this object so that method calls can be chained together. */ public ExternalModel withModelEndpoint(String modelEndpoint) { setModelEndpoint(modelEndpoint); return this; } /** *

* The source of the model. *

* * @param modelSource * The source of the model. * @see ModelSource */ public void setModelSource(String modelSource) { this.modelSource = modelSource; } /** *

* The source of the model. *

* * @return The source of the model. * @see ModelSource */ public String getModelSource() { return this.modelSource; } /** *

* The source of the model. *

* * @param modelSource * The source of the model. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelSource */ public ExternalModel withModelSource(String modelSource) { setModelSource(modelSource); return this; } /** *

* The source of the model. *

* * @param modelSource * The source of the model. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelSource */ public ExternalModel withModelSource(ModelSource modelSource) { this.modelSource = modelSource.toString(); return this; } /** *

* The role used to invoke the model. *

* * @param invokeModelEndpointRoleArn * The role used to invoke the model. */ public void setInvokeModelEndpointRoleArn(String invokeModelEndpointRoleArn) { this.invokeModelEndpointRoleArn = invokeModelEndpointRoleArn; } /** *

* The role used to invoke the model. *

* * @return The role used to invoke the model. */ public String getInvokeModelEndpointRoleArn() { return this.invokeModelEndpointRoleArn; } /** *

* The role used to invoke the model. *

* * @param invokeModelEndpointRoleArn * The role used to invoke the model. * @return Returns a reference to this object so that method calls can be chained together. */ public ExternalModel withInvokeModelEndpointRoleArn(String invokeModelEndpointRoleArn) { setInvokeModelEndpointRoleArn(invokeModelEndpointRoleArn); return this; } /** *

* The input configuration. *

* * @param inputConfiguration * The input configuration. */ public void setInputConfiguration(ModelInputConfiguration inputConfiguration) { this.inputConfiguration = inputConfiguration; } /** *

* The input configuration. *

* * @return The input configuration. */ public ModelInputConfiguration getInputConfiguration() { return this.inputConfiguration; } /** *

* The input configuration. *

* * @param inputConfiguration * The input configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public ExternalModel withInputConfiguration(ModelInputConfiguration inputConfiguration) { setInputConfiguration(inputConfiguration); return this; } /** *

* The output configuration. *

* * @param outputConfiguration * The output configuration. */ public void setOutputConfiguration(ModelOutputConfiguration outputConfiguration) { this.outputConfiguration = outputConfiguration; } /** *

* The output configuration. *

* * @return The output configuration. */ public ModelOutputConfiguration getOutputConfiguration() { return this.outputConfiguration; } /** *

* The output configuration. *

* * @param outputConfiguration * The output configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public ExternalModel withOutputConfiguration(ModelOutputConfiguration outputConfiguration) { setOutputConfiguration(outputConfiguration); return this; } /** *

* The Amazon Fraud Detector status for the external model endpoint *

* * @param modelEndpointStatus * The Amazon Fraud Detector status for the external model endpoint * @see ModelEndpointStatus */ public void setModelEndpointStatus(String modelEndpointStatus) { this.modelEndpointStatus = modelEndpointStatus; } /** *

* The Amazon Fraud Detector status for the external model endpoint *

* * @return The Amazon Fraud Detector status for the external model endpoint * @see ModelEndpointStatus */ public String getModelEndpointStatus() { return this.modelEndpointStatus; } /** *

* The Amazon Fraud Detector status for the external model endpoint *

* * @param modelEndpointStatus * The Amazon Fraud Detector status for the external model endpoint * @return Returns a reference to this object so that method calls can be chained together. * @see ModelEndpointStatus */ public ExternalModel withModelEndpointStatus(String modelEndpointStatus) { setModelEndpointStatus(modelEndpointStatus); return this; } /** *

* The Amazon Fraud Detector status for the external model endpoint *

* * @param modelEndpointStatus * The Amazon Fraud Detector status for the external model endpoint * @return Returns a reference to this object so that method calls can be chained together. * @see ModelEndpointStatus */ public ExternalModel withModelEndpointStatus(ModelEndpointStatus modelEndpointStatus) { this.modelEndpointStatus = modelEndpointStatus.toString(); return this; } /** *

* Timestamp of when the model was last updated. *

* * @param lastUpdatedTime * Timestamp of when the model was last updated. */ public void setLastUpdatedTime(String lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** *

* Timestamp of when the model was last updated. *

* * @return Timestamp of when the model was last updated. */ public String getLastUpdatedTime() { return this.lastUpdatedTime; } /** *

* Timestamp of when the model was last updated. *

* * @param lastUpdatedTime * Timestamp of when the model was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public ExternalModel withLastUpdatedTime(String lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** *

* Timestamp of when the model was last created. *

* * @param createdTime * Timestamp of when the model was last created. */ public void setCreatedTime(String createdTime) { this.createdTime = createdTime; } /** *

* Timestamp of when the model was last created. *

* * @return Timestamp of when the model was last created. */ public String getCreatedTime() { return this.createdTime; } /** *

* Timestamp of when the model was last created. *

* * @param createdTime * Timestamp of when the model was last created. * @return Returns a reference to this object so that method calls can be chained together. */ public ExternalModel withCreatedTime(String createdTime) { setCreatedTime(createdTime); return this; } /** *

* The model ARN. *

* * @param arn * The model ARN. */ public void setArn(String arn) { this.arn = arn; } /** *

* The model ARN. *

* * @return The model ARN. */ public String getArn() { return this.arn; } /** *

* The model ARN. *

* * @param arn * The model ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public ExternalModel withArn(String arn) { setArn(arn); 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 (getModelEndpoint() != null) sb.append("ModelEndpoint: ").append(getModelEndpoint()).append(","); if (getModelSource() != null) sb.append("ModelSource: ").append(getModelSource()).append(","); if (getInvokeModelEndpointRoleArn() != null) sb.append("InvokeModelEndpointRoleArn: ").append(getInvokeModelEndpointRoleArn()).append(","); if (getInputConfiguration() != null) sb.append("InputConfiguration: ").append(getInputConfiguration()).append(","); if (getOutputConfiguration() != null) sb.append("OutputConfiguration: ").append(getOutputConfiguration()).append(","); if (getModelEndpointStatus() != null) sb.append("ModelEndpointStatus: ").append(getModelEndpointStatus()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(","); if (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ExternalModel == false) return false; ExternalModel other = (ExternalModel) obj; if (other.getModelEndpoint() == null ^ this.getModelEndpoint() == null) return false; if (other.getModelEndpoint() != null && other.getModelEndpoint().equals(this.getModelEndpoint()) == false) return false; if (other.getModelSource() == null ^ this.getModelSource() == null) return false; if (other.getModelSource() != null && other.getModelSource().equals(this.getModelSource()) == false) return false; if (other.getInvokeModelEndpointRoleArn() == null ^ this.getInvokeModelEndpointRoleArn() == null) return false; if (other.getInvokeModelEndpointRoleArn() != null && other.getInvokeModelEndpointRoleArn().equals(this.getInvokeModelEndpointRoleArn()) == false) return false; if (other.getInputConfiguration() == null ^ this.getInputConfiguration() == null) return false; if (other.getInputConfiguration() != null && other.getInputConfiguration().equals(this.getInputConfiguration()) == false) return false; if (other.getOutputConfiguration() == null ^ this.getOutputConfiguration() == null) return false; if (other.getOutputConfiguration() != null && other.getOutputConfiguration().equals(this.getOutputConfiguration()) == false) return false; if (other.getModelEndpointStatus() == null ^ this.getModelEndpointStatus() == null) return false; if (other.getModelEndpointStatus() != null && other.getModelEndpointStatus().equals(this.getModelEndpointStatus()) == false) return false; if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; if (other.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getModelEndpoint() == null) ? 0 : getModelEndpoint().hashCode()); hashCode = prime * hashCode + ((getModelSource() == null) ? 0 : getModelSource().hashCode()); hashCode = prime * hashCode + ((getInvokeModelEndpointRoleArn() == null) ? 0 : getInvokeModelEndpointRoleArn().hashCode()); hashCode = prime * hashCode + ((getInputConfiguration() == null) ? 0 : getInputConfiguration().hashCode()); hashCode = prime * hashCode + ((getOutputConfiguration() == null) ? 0 : getOutputConfiguration().hashCode()); hashCode = prime * hashCode + ((getModelEndpointStatus() == null) ? 0 : getModelEndpointStatus().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); return hashCode; } @Override public ExternalModel clone() { try { return (ExternalModel) 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.frauddetector.model.transform.ExternalModelMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy