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

com.amazonaws.services.frauddetector.model.DetectorVersionSummary 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 summary of the detector version. *

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

* The detector version ID. *

*/ private String detectorVersionId; /** *

* The detector version status. *

*/ private String status; /** *

* The detector version description. *

*/ private String description; /** *

* Timestamp of when the detector version was last updated. *

*/ private String lastUpdatedTime; /** *

* 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 DetectorVersionSummary withDetectorVersionId(String detectorVersionId) { setDetectorVersionId(detectorVersionId); return this; } /** *

* The detector version status. *

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

* The detector version status. *

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

* The detector version status. *

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

* The detector version status. *

* * @param status * The detector version status. * @return Returns a reference to this object so that method calls can be chained together. * @see DetectorVersionStatus */ public DetectorVersionSummary withStatus(DetectorVersionStatus status) { this.status = status.toString(); 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 DetectorVersionSummary withDescription(String description) { setDescription(description); return this; } /** *

* Timestamp of when the detector version was last updated. *

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

* Timestamp of when the detector version was last updated. *

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

* Timestamp of when the detector version was last updated. *

* * @param lastUpdatedTime * Timestamp of when the detector version was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectorVersionSummary withLastUpdatedTime(String lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); 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 (getDetectorVersionId() != null) sb.append("DetectorVersionId: ").append(getDetectorVersionId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DetectorVersionSummary == false) return false; DetectorVersionSummary other = (DetectorVersionSummary) obj; if (other.getDetectorVersionId() == null ^ this.getDetectorVersionId() == null) return false; if (other.getDetectorVersionId() != null && other.getDetectorVersionId().equals(this.getDetectorVersionId()) == 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.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDetectorVersionId() == null) ? 0 : getDetectorVersionId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); return hashCode; } @Override public DetectorVersionSummary clone() { try { return (DetectorVersionSummary) 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.DetectorVersionSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy