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

com.amazonaws.services.inspector2.model.CisaData 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 Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability. *

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

* The remediation action recommended by CISA for this vulnerability. *

*/ private String action; /** *

* The date and time CISA added this vulnerability to their catalogue. *

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

* The date and time CISA expects a fix to have been provided vulnerability. *

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

* The remediation action recommended by CISA for this vulnerability. *

* * @param action * The remediation action recommended by CISA for this vulnerability. */ public void setAction(String action) { this.action = action; } /** *

* The remediation action recommended by CISA for this vulnerability. *

* * @return The remediation action recommended by CISA for this vulnerability. */ public String getAction() { return this.action; } /** *

* The remediation action recommended by CISA for this vulnerability. *

* * @param action * The remediation action recommended by CISA for this vulnerability. * @return Returns a reference to this object so that method calls can be chained together. */ public CisaData withAction(String action) { setAction(action); return this; } /** *

* The date and time CISA added this vulnerability to their catalogue. *

* * @param dateAdded * The date and time CISA added this vulnerability to their catalogue. */ public void setDateAdded(java.util.Date dateAdded) { this.dateAdded = dateAdded; } /** *

* The date and time CISA added this vulnerability to their catalogue. *

* * @return The date and time CISA added this vulnerability to their catalogue. */ public java.util.Date getDateAdded() { return this.dateAdded; } /** *

* The date and time CISA added this vulnerability to their catalogue. *

* * @param dateAdded * The date and time CISA added this vulnerability to their catalogue. * @return Returns a reference to this object so that method calls can be chained together. */ public CisaData withDateAdded(java.util.Date dateAdded) { setDateAdded(dateAdded); return this; } /** *

* The date and time CISA expects a fix to have been provided vulnerability. *

* * @param dateDue * The date and time CISA expects a fix to have been provided vulnerability. */ public void setDateDue(java.util.Date dateDue) { this.dateDue = dateDue; } /** *

* The date and time CISA expects a fix to have been provided vulnerability. *

* * @return The date and time CISA expects a fix to have been provided vulnerability. */ public java.util.Date getDateDue() { return this.dateDue; } /** *

* The date and time CISA expects a fix to have been provided vulnerability. *

* * @param dateDue * The date and time CISA expects a fix to have been provided vulnerability. * @return Returns a reference to this object so that method calls can be chained together. */ public CisaData withDateDue(java.util.Date dateDue) { setDateDue(dateDue); 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 (getAction() != null) sb.append("Action: ").append(getAction()).append(","); if (getDateAdded() != null) sb.append("DateAdded: ").append(getDateAdded()).append(","); if (getDateDue() != null) sb.append("DateDue: ").append(getDateDue()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CisaData == false) return false; CisaData other = (CisaData) obj; if (other.getAction() == null ^ this.getAction() == null) return false; if (other.getAction() != null && other.getAction().equals(this.getAction()) == false) return false; if (other.getDateAdded() == null ^ this.getDateAdded() == null) return false; if (other.getDateAdded() != null && other.getDateAdded().equals(this.getDateAdded()) == false) return false; if (other.getDateDue() == null ^ this.getDateDue() == null) return false; if (other.getDateDue() != null && other.getDateDue().equals(this.getDateDue()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAction() == null) ? 0 : getAction().hashCode()); hashCode = prime * hashCode + ((getDateAdded() == null) ? 0 : getDateAdded().hashCode()); hashCode = prime * hashCode + ((getDateDue() == null) ? 0 : getDateDue().hashCode()); return hashCode; } @Override public CisaData clone() { try { return (CisaData) 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.CisaDataMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy