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

com.amazonaws.services.frauddetector.model.GetDetectorVersionResult 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;

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

    /**
     * 

* The detector ID. *

*/ private String detectorId; /** *

* The detector version ID. *

*/ private String detectorVersionId; /** *

* The detector version description. *

*/ private String description; /** *

* The Amazon SageMaker model endpoints included in the detector version. *

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

* The model versions included in the detector version. *

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

* The rules included in the detector version. *

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

* The status of the detector version. *

*/ private String status; /** *

* The timestamp when the detector version was last updated. *

*/ private String lastUpdatedTime; /** *

* The timestamp when the detector version was created. *

*/ private String createdTime; /** *

* The execution mode of the rule in the dectector *

*

* FIRST_MATCHED indicates that Amazon Fraud Detector evaluates rules sequentially, first to last, * stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule. *

*

* ALL_MATCHED indicates that Amazon Fraud Detector evaluates all rules and returns the outcomes for * all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft * status. *

*/ private String ruleExecutionMode; /** *

* The detector version ARN. *

*/ private String arn; /** *

* The detector ID. *

* * @param detectorId * The detector ID. */ public void setDetectorId(String detectorId) { this.detectorId = detectorId; } /** *

* The detector ID. *

* * @return The detector ID. */ public String getDetectorId() { return this.detectorId; } /** *

* The detector ID. *

* * @param detectorId * The detector ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorVersionResult withDetectorId(String detectorId) { setDetectorId(detectorId); return this; } /** *

* The detector version ID. *

* * @param detectorVersionId * The detector version ID. */ public void setDetectorVersionId(String detectorVersionId) { this.detectorVersionId = detectorVersionId; } /** *

* The detector version ID. *

* * @return The detector version ID. */ public String getDetectorVersionId() { return this.detectorVersionId; } /** *

* The detector version ID. *

* * @param detectorVersionId * The detector version ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorVersionResult withDetectorVersionId(String detectorVersionId) { setDetectorVersionId(detectorVersionId); return this; } /** *

* The detector version description. *

* * @param description * The detector version description. */ public void setDescription(String description) { this.description = description; } /** *

* The detector version description. *

* * @return The detector version description. */ public String getDescription() { return this.description; } /** *

* The detector version description. *

* * @param description * The detector version description. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorVersionResult withDescription(String description) { setDescription(description); return this; } /** *

* The Amazon SageMaker model endpoints included in the detector version. *

* * @return The Amazon SageMaker model endpoints included in the detector version. */ public java.util.List getExternalModelEndpoints() { return externalModelEndpoints; } /** *

* The Amazon SageMaker model endpoints included in the detector version. *

* * @param externalModelEndpoints * The Amazon SageMaker model endpoints included in the detector version. */ public void setExternalModelEndpoints(java.util.Collection externalModelEndpoints) { if (externalModelEndpoints == null) { this.externalModelEndpoints = null; return; } this.externalModelEndpoints = new java.util.ArrayList(externalModelEndpoints); } /** *

* The Amazon SageMaker model endpoints included in the detector version. *

*

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

* * @param externalModelEndpoints * The Amazon SageMaker model endpoints included in the detector version. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorVersionResult withExternalModelEndpoints(String... externalModelEndpoints) { if (this.externalModelEndpoints == null) { setExternalModelEndpoints(new java.util.ArrayList(externalModelEndpoints.length)); } for (String ele : externalModelEndpoints) { this.externalModelEndpoints.add(ele); } return this; } /** *

* The Amazon SageMaker model endpoints included in the detector version. *

* * @param externalModelEndpoints * The Amazon SageMaker model endpoints included in the detector version. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorVersionResult withExternalModelEndpoints(java.util.Collection externalModelEndpoints) { setExternalModelEndpoints(externalModelEndpoints); return this; } /** *

* The model versions included in the detector version. *

* * @return The model versions included in the detector version. */ public java.util.List getModelVersions() { return modelVersions; } /** *

* The model versions included in the detector version. *

* * @param modelVersions * The model versions included in the detector version. */ public void setModelVersions(java.util.Collection modelVersions) { if (modelVersions == null) { this.modelVersions = null; return; } this.modelVersions = new java.util.ArrayList(modelVersions); } /** *

* The model versions included in the detector version. *

*

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

* * @param modelVersions * The model versions included in the detector version. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorVersionResult withModelVersions(ModelVersion... modelVersions) { if (this.modelVersions == null) { setModelVersions(new java.util.ArrayList(modelVersions.length)); } for (ModelVersion ele : modelVersions) { this.modelVersions.add(ele); } return this; } /** *

* The model versions included in the detector version. *

* * @param modelVersions * The model versions included in the detector version. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorVersionResult withModelVersions(java.util.Collection modelVersions) { setModelVersions(modelVersions); return this; } /** *

* The rules included in the detector version. *

* * @return The rules included in the detector version. */ public java.util.List getRules() { return rules; } /** *

* The rules included in the detector version. *

* * @param rules * The rules included in the detector version. */ public void setRules(java.util.Collection rules) { if (rules == null) { this.rules = null; return; } this.rules = new java.util.ArrayList(rules); } /** *

* The rules included in the detector version. *

*

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

* * @param rules * The rules included in the detector version. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorVersionResult withRules(Rule... rules) { if (this.rules == null) { setRules(new java.util.ArrayList(rules.length)); } for (Rule ele : rules) { this.rules.add(ele); } return this; } /** *

* The rules included in the detector version. *

* * @param rules * The rules included in the detector version. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorVersionResult withRules(java.util.Collection rules) { setRules(rules); return this; } /** *

* The status of the detector version. *

* * @param status * The status of the detector version. * @see DetectorVersionStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the detector version. *

* * @return The status of the detector version. * @see DetectorVersionStatus */ public String getStatus() { return this.status; } /** *

* The status of the detector version. *

* * @param status * The status of the detector version. * @return Returns a reference to this object so that method calls can be chained together. * @see DetectorVersionStatus */ public GetDetectorVersionResult withStatus(String status) { setStatus(status); return this; } /** *

* The status of the detector version. *

* * @param status * The status of the detector version. * @return Returns a reference to this object so that method calls can be chained together. * @see DetectorVersionStatus */ public GetDetectorVersionResult withStatus(DetectorVersionStatus status) { this.status = status.toString(); return this; } /** *

* The timestamp when the detector version was last updated. *

* * @param lastUpdatedTime * The timestamp when the detector version was last updated. */ public void setLastUpdatedTime(String lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** *

* The timestamp when the detector version was last updated. *

* * @return The timestamp when the detector version was last updated. */ public String getLastUpdatedTime() { return this.lastUpdatedTime; } /** *

* The timestamp when the detector version was last updated. *

* * @param lastUpdatedTime * The timestamp when the detector version was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorVersionResult withLastUpdatedTime(String lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** *

* The timestamp when the detector version was created. *

* * @param createdTime * The timestamp when the detector version was created. */ public void setCreatedTime(String createdTime) { this.createdTime = createdTime; } /** *

* The timestamp when the detector version was created. *

* * @return The timestamp when the detector version was created. */ public String getCreatedTime() { return this.createdTime; } /** *

* The timestamp when the detector version was created. *

* * @param createdTime * The timestamp when the detector version was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorVersionResult withCreatedTime(String createdTime) { setCreatedTime(createdTime); return this; } /** *

* The execution mode of the rule in the dectector *

*

* FIRST_MATCHED indicates that Amazon Fraud Detector evaluates rules sequentially, first to last, * stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule. *

*

* ALL_MATCHED indicates that Amazon Fraud Detector evaluates all rules and returns the outcomes for * all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft * status. *

* * @param ruleExecutionMode * The execution mode of the rule in the dectector

*

* FIRST_MATCHED indicates that Amazon Fraud Detector evaluates rules sequentially, first to * last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that * single rule. *

*

* ALL_MATCHED indicates that Amazon Fraud Detector evaluates all rules and returns the outcomes * for all matched rules. You can define and edit the rule mode at the detector version level, when it is in * draft status. * @see RuleExecutionMode */ public void setRuleExecutionMode(String ruleExecutionMode) { this.ruleExecutionMode = ruleExecutionMode; } /** *

* The execution mode of the rule in the dectector *

*

* FIRST_MATCHED indicates that Amazon Fraud Detector evaluates rules sequentially, first to last, * stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule. *

*

* ALL_MATCHED indicates that Amazon Fraud Detector evaluates all rules and returns the outcomes for * all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft * status. *

* * @return The execution mode of the rule in the dectector

*

* FIRST_MATCHED indicates that Amazon Fraud Detector evaluates rules sequentially, first to * last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that * single rule. *

*

* ALL_MATCHED indicates that Amazon Fraud Detector evaluates all rules and returns the * outcomes for all matched rules. You can define and edit the rule mode at the detector version level, when * it is in draft status. * @see RuleExecutionMode */ public String getRuleExecutionMode() { return this.ruleExecutionMode; } /** *

* The execution mode of the rule in the dectector *

*

* FIRST_MATCHED indicates that Amazon Fraud Detector evaluates rules sequentially, first to last, * stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule. *

*

* ALL_MATCHED indicates that Amazon Fraud Detector evaluates all rules and returns the outcomes for * all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft * status. *

* * @param ruleExecutionMode * The execution mode of the rule in the dectector

*

* FIRST_MATCHED indicates that Amazon Fraud Detector evaluates rules sequentially, first to * last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that * single rule. *

*

* ALL_MATCHED indicates that Amazon Fraud Detector evaluates all rules and returns the outcomes * for all matched rules. You can define and edit the rule mode at the detector version level, when it is in * draft status. * @return Returns a reference to this object so that method calls can be chained together. * @see RuleExecutionMode */ public GetDetectorVersionResult withRuleExecutionMode(String ruleExecutionMode) { setRuleExecutionMode(ruleExecutionMode); return this; } /** *

* The execution mode of the rule in the dectector *

*

* FIRST_MATCHED indicates that Amazon Fraud Detector evaluates rules sequentially, first to last, * stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule. *

*

* ALL_MATCHED indicates that Amazon Fraud Detector evaluates all rules and returns the outcomes for * all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft * status. *

* * @param ruleExecutionMode * The execution mode of the rule in the dectector

*

* FIRST_MATCHED indicates that Amazon Fraud Detector evaluates rules sequentially, first to * last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that * single rule. *

*

* ALL_MATCHED indicates that Amazon Fraud Detector evaluates all rules and returns the outcomes * for all matched rules. You can define and edit the rule mode at the detector version level, when it is in * draft status. * @return Returns a reference to this object so that method calls can be chained together. * @see RuleExecutionMode */ public GetDetectorVersionResult withRuleExecutionMode(RuleExecutionMode ruleExecutionMode) { this.ruleExecutionMode = ruleExecutionMode.toString(); return this; } /** *

* The detector version ARN. *

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

* The detector version ARN. *

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

* The detector version ARN. *

* * @param arn * The detector version ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorVersionResult 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 (getDetectorId() != null) sb.append("DetectorId: ").append(getDetectorId()).append(","); if (getDetectorVersionId() != null) sb.append("DetectorVersionId: ").append(getDetectorVersionId()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getExternalModelEndpoints() != null) sb.append("ExternalModelEndpoints: ").append(getExternalModelEndpoints()).append(","); if (getModelVersions() != null) sb.append("ModelVersions: ").append(getModelVersions()).append(","); if (getRules() != null) sb.append("Rules: ").append(getRules()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(","); if (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()).append(","); if (getRuleExecutionMode() != null) sb.append("RuleExecutionMode: ").append(getRuleExecutionMode()).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 GetDetectorVersionResult == false) return false; GetDetectorVersionResult other = (GetDetectorVersionResult) obj; if (other.getDetectorId() == null ^ this.getDetectorId() == null) return false; if (other.getDetectorId() != null && other.getDetectorId().equals(this.getDetectorId()) == false) return false; if (other.getDetectorVersionId() == null ^ this.getDetectorVersionId() == null) return false; if (other.getDetectorVersionId() != null && other.getDetectorVersionId().equals(this.getDetectorVersionId()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getExternalModelEndpoints() == null ^ this.getExternalModelEndpoints() == null) return false; if (other.getExternalModelEndpoints() != null && other.getExternalModelEndpoints().equals(this.getExternalModelEndpoints()) == false) return false; if (other.getModelVersions() == null ^ this.getModelVersions() == null) return false; if (other.getModelVersions() != null && other.getModelVersions().equals(this.getModelVersions()) == false) return false; if (other.getRules() == null ^ this.getRules() == null) return false; if (other.getRules() != null && other.getRules().equals(this.getRules()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == 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.getRuleExecutionMode() == null ^ this.getRuleExecutionMode() == null) return false; if (other.getRuleExecutionMode() != null && other.getRuleExecutionMode().equals(this.getRuleExecutionMode()) == 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 + ((getDetectorId() == null) ? 0 : getDetectorId().hashCode()); hashCode = prime * hashCode + ((getDetectorVersionId() == null) ? 0 : getDetectorVersionId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getExternalModelEndpoints() == null) ? 0 : getExternalModelEndpoints().hashCode()); hashCode = prime * hashCode + ((getModelVersions() == null) ? 0 : getModelVersions().hashCode()); hashCode = prime * hashCode + ((getRules() == null) ? 0 : getRules().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getRuleExecutionMode() == null) ? 0 : getRuleExecutionMode().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); return hashCode; } @Override public GetDetectorVersionResult clone() { try { return (GetDetectorVersionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy