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

com.amazonaws.services.inspector2.model.CisScanResultDetails Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show 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.inspector2.model;

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

/**
 * 

* The CIS scan result details. *

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

* The CIS scan result details' account ID. *

*/ private String accountId; /** *

* The account ID that's associated with the CIS scan result details. *

*/ private String checkDescription; /** *

* The CIS scan result details' check ID. *

*/ private String checkId; /** *

* The CIS scan result details' finding ARN. *

*/ private String findingArn; /** *

* The CIS scan result details' level. *

*/ private String level; /** *

* The CIS scan result details' platform. *

*/ private String platform; /** *

* The CIS scan result details' remediation. *

*/ private String remediation; /** *

* The CIS scan result details' scan ARN. *

*/ private String scanArn; /** *

* The CIS scan result details' status. *

*/ private String status; /** *

* The CIS scan result details' status reason. *

*/ private String statusReason; /** *

* The CIS scan result details' target resource ID. *

*/ private String targetResourceId; /** *

* The CIS scan result details' title. *

*/ private String title; /** *

* The CIS scan result details' account ID. *

* * @param accountId * The CIS scan result details' account ID. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** *

* The CIS scan result details' account ID. *

* * @return The CIS scan result details' account ID. */ public String getAccountId() { return this.accountId; } /** *

* The CIS scan result details' account ID. *

* * @param accountId * The CIS scan result details' account ID. * @return Returns a reference to this object so that method calls can be chained together. */ public CisScanResultDetails withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

* The account ID that's associated with the CIS scan result details. *

* * @param checkDescription * The account ID that's associated with the CIS scan result details. */ public void setCheckDescription(String checkDescription) { this.checkDescription = checkDescription; } /** *

* The account ID that's associated with the CIS scan result details. *

* * @return The account ID that's associated with the CIS scan result details. */ public String getCheckDescription() { return this.checkDescription; } /** *

* The account ID that's associated with the CIS scan result details. *

* * @param checkDescription * The account ID that's associated with the CIS scan result details. * @return Returns a reference to this object so that method calls can be chained together. */ public CisScanResultDetails withCheckDescription(String checkDescription) { setCheckDescription(checkDescription); return this; } /** *

* The CIS scan result details' check ID. *

* * @param checkId * The CIS scan result details' check ID. */ public void setCheckId(String checkId) { this.checkId = checkId; } /** *

* The CIS scan result details' check ID. *

* * @return The CIS scan result details' check ID. */ public String getCheckId() { return this.checkId; } /** *

* The CIS scan result details' check ID. *

* * @param checkId * The CIS scan result details' check ID. * @return Returns a reference to this object so that method calls can be chained together. */ public CisScanResultDetails withCheckId(String checkId) { setCheckId(checkId); return this; } /** *

* The CIS scan result details' finding ARN. *

* * @param findingArn * The CIS scan result details' finding ARN. */ public void setFindingArn(String findingArn) { this.findingArn = findingArn; } /** *

* The CIS scan result details' finding ARN. *

* * @return The CIS scan result details' finding ARN. */ public String getFindingArn() { return this.findingArn; } /** *

* The CIS scan result details' finding ARN. *

* * @param findingArn * The CIS scan result details' finding ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public CisScanResultDetails withFindingArn(String findingArn) { setFindingArn(findingArn); return this; } /** *

* The CIS scan result details' level. *

* * @param level * The CIS scan result details' level. * @see CisSecurityLevel */ public void setLevel(String level) { this.level = level; } /** *

* The CIS scan result details' level. *

* * @return The CIS scan result details' level. * @see CisSecurityLevel */ public String getLevel() { return this.level; } /** *

* The CIS scan result details' level. *

* * @param level * The CIS scan result details' level. * @return Returns a reference to this object so that method calls can be chained together. * @see CisSecurityLevel */ public CisScanResultDetails withLevel(String level) { setLevel(level); return this; } /** *

* The CIS scan result details' level. *

* * @param level * The CIS scan result details' level. * @return Returns a reference to this object so that method calls can be chained together. * @see CisSecurityLevel */ public CisScanResultDetails withLevel(CisSecurityLevel level) { this.level = level.toString(); return this; } /** *

* The CIS scan result details' platform. *

* * @param platform * The CIS scan result details' platform. */ public void setPlatform(String platform) { this.platform = platform; } /** *

* The CIS scan result details' platform. *

* * @return The CIS scan result details' platform. */ public String getPlatform() { return this.platform; } /** *

* The CIS scan result details' platform. *

* * @param platform * The CIS scan result details' platform. * @return Returns a reference to this object so that method calls can be chained together. */ public CisScanResultDetails withPlatform(String platform) { setPlatform(platform); return this; } /** *

* The CIS scan result details' remediation. *

* * @param remediation * The CIS scan result details' remediation. */ public void setRemediation(String remediation) { this.remediation = remediation; } /** *

* The CIS scan result details' remediation. *

* * @return The CIS scan result details' remediation. */ public String getRemediation() { return this.remediation; } /** *

* The CIS scan result details' remediation. *

* * @param remediation * The CIS scan result details' remediation. * @return Returns a reference to this object so that method calls can be chained together. */ public CisScanResultDetails withRemediation(String remediation) { setRemediation(remediation); return this; } /** *

* The CIS scan result details' scan ARN. *

* * @param scanArn * The CIS scan result details' scan ARN. */ public void setScanArn(String scanArn) { this.scanArn = scanArn; } /** *

* The CIS scan result details' scan ARN. *

* * @return The CIS scan result details' scan ARN. */ public String getScanArn() { return this.scanArn; } /** *

* The CIS scan result details' scan ARN. *

* * @param scanArn * The CIS scan result details' scan ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public CisScanResultDetails withScanArn(String scanArn) { setScanArn(scanArn); return this; } /** *

* The CIS scan result details' status. *

* * @param status * The CIS scan result details' status. * @see CisFindingStatus */ public void setStatus(String status) { this.status = status; } /** *

* The CIS scan result details' status. *

* * @return The CIS scan result details' status. * @see CisFindingStatus */ public String getStatus() { return this.status; } /** *

* The CIS scan result details' status. *

* * @param status * The CIS scan result details' status. * @return Returns a reference to this object so that method calls can be chained together. * @see CisFindingStatus */ public CisScanResultDetails withStatus(String status) { setStatus(status); return this; } /** *

* The CIS scan result details' status. *

* * @param status * The CIS scan result details' status. * @return Returns a reference to this object so that method calls can be chained together. * @see CisFindingStatus */ public CisScanResultDetails withStatus(CisFindingStatus status) { this.status = status.toString(); return this; } /** *

* The CIS scan result details' status reason. *

* * @param statusReason * The CIS scan result details' status reason. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** *

* The CIS scan result details' status reason. *

* * @return The CIS scan result details' status reason. */ public String getStatusReason() { return this.statusReason; } /** *

* The CIS scan result details' status reason. *

* * @param statusReason * The CIS scan result details' status reason. * @return Returns a reference to this object so that method calls can be chained together. */ public CisScanResultDetails withStatusReason(String statusReason) { setStatusReason(statusReason); return this; } /** *

* The CIS scan result details' target resource ID. *

* * @param targetResourceId * The CIS scan result details' target resource ID. */ public void setTargetResourceId(String targetResourceId) { this.targetResourceId = targetResourceId; } /** *

* The CIS scan result details' target resource ID. *

* * @return The CIS scan result details' target resource ID. */ public String getTargetResourceId() { return this.targetResourceId; } /** *

* The CIS scan result details' target resource ID. *

* * @param targetResourceId * The CIS scan result details' target resource ID. * @return Returns a reference to this object so that method calls can be chained together. */ public CisScanResultDetails withTargetResourceId(String targetResourceId) { setTargetResourceId(targetResourceId); return this; } /** *

* The CIS scan result details' title. *

* * @param title * The CIS scan result details' title. */ public void setTitle(String title) { this.title = title; } /** *

* The CIS scan result details' title. *

* * @return The CIS scan result details' title. */ public String getTitle() { return this.title; } /** *

* The CIS scan result details' title. *

* * @param title * The CIS scan result details' title. * @return Returns a reference to this object so that method calls can be chained together. */ public CisScanResultDetails withTitle(String title) { setTitle(title); 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 (getAccountId() != null) sb.append("AccountId: ").append(getAccountId()).append(","); if (getCheckDescription() != null) sb.append("CheckDescription: ").append(getCheckDescription()).append(","); if (getCheckId() != null) sb.append("CheckId: ").append(getCheckId()).append(","); if (getFindingArn() != null) sb.append("FindingArn: ").append(getFindingArn()).append(","); if (getLevel() != null) sb.append("Level: ").append(getLevel()).append(","); if (getPlatform() != null) sb.append("Platform: ").append(getPlatform()).append(","); if (getRemediation() != null) sb.append("Remediation: ").append(getRemediation()).append(","); if (getScanArn() != null) sb.append("ScanArn: ").append(getScanArn()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusReason() != null) sb.append("StatusReason: ").append(getStatusReason()).append(","); if (getTargetResourceId() != null) sb.append("TargetResourceId: ").append(getTargetResourceId()).append(","); if (getTitle() != null) sb.append("Title: ").append(getTitle()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CisScanResultDetails == false) return false; CisScanResultDetails other = (CisScanResultDetails) obj; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getCheckDescription() == null ^ this.getCheckDescription() == null) return false; if (other.getCheckDescription() != null && other.getCheckDescription().equals(this.getCheckDescription()) == false) return false; if (other.getCheckId() == null ^ this.getCheckId() == null) return false; if (other.getCheckId() != null && other.getCheckId().equals(this.getCheckId()) == false) return false; if (other.getFindingArn() == null ^ this.getFindingArn() == null) return false; if (other.getFindingArn() != null && other.getFindingArn().equals(this.getFindingArn()) == false) return false; if (other.getLevel() == null ^ this.getLevel() == null) return false; if (other.getLevel() != null && other.getLevel().equals(this.getLevel()) == false) return false; if (other.getPlatform() == null ^ this.getPlatform() == null) return false; if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false) return false; if (other.getRemediation() == null ^ this.getRemediation() == null) return false; if (other.getRemediation() != null && other.getRemediation().equals(this.getRemediation()) == false) return false; if (other.getScanArn() == null ^ this.getScanArn() == null) return false; if (other.getScanArn() != null && other.getScanArn().equals(this.getScanArn()) == 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.getStatusReason() == null ^ this.getStatusReason() == null) return false; if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false) return false; if (other.getTargetResourceId() == null ^ this.getTargetResourceId() == null) return false; if (other.getTargetResourceId() != null && other.getTargetResourceId().equals(this.getTargetResourceId()) == false) return false; if (other.getTitle() == null ^ this.getTitle() == null) return false; if (other.getTitle() != null && other.getTitle().equals(this.getTitle()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getCheckDescription() == null) ? 0 : getCheckDescription().hashCode()); hashCode = prime * hashCode + ((getCheckId() == null) ? 0 : getCheckId().hashCode()); hashCode = prime * hashCode + ((getFindingArn() == null) ? 0 : getFindingArn().hashCode()); hashCode = prime * hashCode + ((getLevel() == null) ? 0 : getLevel().hashCode()); hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode()); hashCode = prime * hashCode + ((getRemediation() == null) ? 0 : getRemediation().hashCode()); hashCode = prime * hashCode + ((getScanArn() == null) ? 0 : getScanArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); hashCode = prime * hashCode + ((getTargetResourceId() == null) ? 0 : getTargetResourceId().hashCode()); hashCode = prime * hashCode + ((getTitle() == null) ? 0 : getTitle().hashCode()); return hashCode; } @Override public CisScanResultDetails clone() { try { return (CisScanResultDetails) 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.inspector2.model.transform.CisScanResultDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy