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

com.amazonaws.services.codegurusecurity.model.ScanSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon CodeGuru Security module holds the client classes that are used for communicating with Amazon CodeGuru Security 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.codegurusecurity.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Information about a scan. *

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

* The time when the scan was created. *

*/ private java.util.Date createdAt; /** *

* The identifier for the scan run. *

*/ private String runId; /** *

* The name of the scan. *

*/ private String scanName; /** *

* The ARN for the scan name. *

*/ private String scanNameArn; /** *

* The state of the scan. A scan can be In Progress, Complete, or Failed. *

*/ private String scanState; /** *

* The time the scan was last updated. A scan is updated when it is re-run. *

*/ private java.util.Date updatedAt; /** *

* The time when the scan was created. *

* * @param createdAt * The time when the scan was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The time when the scan was created. *

* * @return The time when the scan was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The time when the scan was created. *

* * @param createdAt * The time when the scan was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanSummary withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* The identifier for the scan run. *

* * @param runId * The identifier for the scan run. */ public void setRunId(String runId) { this.runId = runId; } /** *

* The identifier for the scan run. *

* * @return The identifier for the scan run. */ public String getRunId() { return this.runId; } /** *

* The identifier for the scan run. *

* * @param runId * The identifier for the scan run. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanSummary withRunId(String runId) { setRunId(runId); return this; } /** *

* The name of the scan. *

* * @param scanName * The name of the scan. */ public void setScanName(String scanName) { this.scanName = scanName; } /** *

* The name of the scan. *

* * @return The name of the scan. */ public String getScanName() { return this.scanName; } /** *

* The name of the scan. *

* * @param scanName * The name of the scan. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanSummary withScanName(String scanName) { setScanName(scanName); return this; } /** *

* The ARN for the scan name. *

* * @param scanNameArn * The ARN for the scan name. */ public void setScanNameArn(String scanNameArn) { this.scanNameArn = scanNameArn; } /** *

* The ARN for the scan name. *

* * @return The ARN for the scan name. */ public String getScanNameArn() { return this.scanNameArn; } /** *

* The ARN for the scan name. *

* * @param scanNameArn * The ARN for the scan name. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanSummary withScanNameArn(String scanNameArn) { setScanNameArn(scanNameArn); return this; } /** *

* The state of the scan. A scan can be In Progress, Complete, or Failed. *

* * @param scanState * The state of the scan. A scan can be In Progress, Complete, or * Failed. * @see ScanState */ public void setScanState(String scanState) { this.scanState = scanState; } /** *

* The state of the scan. A scan can be In Progress, Complete, or Failed. *

* * @return The state of the scan. A scan can be In Progress, Complete, or * Failed. * @see ScanState */ public String getScanState() { return this.scanState; } /** *

* The state of the scan. A scan can be In Progress, Complete, or Failed. *

* * @param scanState * The state of the scan. A scan can be In Progress, Complete, or * Failed. * @return Returns a reference to this object so that method calls can be chained together. * @see ScanState */ public ScanSummary withScanState(String scanState) { setScanState(scanState); return this; } /** *

* The state of the scan. A scan can be In Progress, Complete, or Failed. *

* * @param scanState * The state of the scan. A scan can be In Progress, Complete, or * Failed. * @return Returns a reference to this object so that method calls can be chained together. * @see ScanState */ public ScanSummary withScanState(ScanState scanState) { this.scanState = scanState.toString(); return this; } /** *

* The time the scan was last updated. A scan is updated when it is re-run. *

* * @param updatedAt * The time the scan was last updated. A scan is updated when it is re-run. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** *

* The time the scan was last updated. A scan is updated when it is re-run. *

* * @return The time the scan was last updated. A scan is updated when it is re-run. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** *

* The time the scan was last updated. A scan is updated when it is re-run. *

* * @param updatedAt * The time the scan was last updated. A scan is updated when it is re-run. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanSummary withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); 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 (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getRunId() != null) sb.append("RunId: ").append(getRunId()).append(","); if (getScanName() != null) sb.append("ScanName: ").append(getScanName()).append(","); if (getScanNameArn() != null) sb.append("ScanNameArn: ").append(getScanNameArn()).append(","); if (getScanState() != null) sb.append("ScanState: ").append(getScanState()).append(","); if (getUpdatedAt() != null) sb.append("UpdatedAt: ").append(getUpdatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ScanSummary == false) return false; ScanSummary other = (ScanSummary) obj; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getRunId() == null ^ this.getRunId() == null) return false; if (other.getRunId() != null && other.getRunId().equals(this.getRunId()) == false) return false; if (other.getScanName() == null ^ this.getScanName() == null) return false; if (other.getScanName() != null && other.getScanName().equals(this.getScanName()) == false) return false; if (other.getScanNameArn() == null ^ this.getScanNameArn() == null) return false; if (other.getScanNameArn() != null && other.getScanNameArn().equals(this.getScanNameArn()) == false) return false; if (other.getScanState() == null ^ this.getScanState() == null) return false; if (other.getScanState() != null && other.getScanState().equals(this.getScanState()) == false) return false; if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null) return false; if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getRunId() == null) ? 0 : getRunId().hashCode()); hashCode = prime * hashCode + ((getScanName() == null) ? 0 : getScanName().hashCode()); hashCode = prime * hashCode + ((getScanNameArn() == null) ? 0 : getScanNameArn().hashCode()); hashCode = prime * hashCode + ((getScanState() == null) ? 0 : getScanState().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); return hashCode; } @Override public ScanSummary clone() { try { return (ScanSummary) 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.codegurusecurity.model.transform.ScanSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy