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

com.amazonaws.services.securityhub.model.ThreatIntelIndicator Maven / Gradle / Ivy

/*
 * Copyright 2016-2021 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.securityhub.model;

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

/**
 * 

* Details about the threat intelligence related to a finding. *

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

* The type of threat intelligence indicator. *

*/ private String type; /** *

* The value of a threat intelligence indicator. *

*/ private String value; /** *

* The category of a threat intelligence indicator. *

*/ private String category; /** *

* Indicates when the most recent instance of a threat intelligence indicator was observed. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, * 2020-03-22T13:22:13.933Z. *

*/ private String lastObservedAt; /** *

* The source of the threat intelligence indicator. *

*/ private String source; /** *

* The URL to the page or site where you can get more information about the threat intelligence indicator. *

*/ private String sourceUrl; /** *

* The type of threat intelligence indicator. *

* * @param type * The type of threat intelligence indicator. * @see ThreatIntelIndicatorType */ public void setType(String type) { this.type = type; } /** *

* The type of threat intelligence indicator. *

* * @return The type of threat intelligence indicator. * @see ThreatIntelIndicatorType */ public String getType() { return this.type; } /** *

* The type of threat intelligence indicator. *

* * @param type * The type of threat intelligence indicator. * @return Returns a reference to this object so that method calls can be chained together. * @see ThreatIntelIndicatorType */ public ThreatIntelIndicator withType(String type) { setType(type); return this; } /** *

* The type of threat intelligence indicator. *

* * @param type * The type of threat intelligence indicator. * @return Returns a reference to this object so that method calls can be chained together. * @see ThreatIntelIndicatorType */ public ThreatIntelIndicator withType(ThreatIntelIndicatorType type) { this.type = type.toString(); return this; } /** *

* The value of a threat intelligence indicator. *

* * @param value * The value of a threat intelligence indicator. */ public void setValue(String value) { this.value = value; } /** *

* The value of a threat intelligence indicator. *

* * @return The value of a threat intelligence indicator. */ public String getValue() { return this.value; } /** *

* The value of a threat intelligence indicator. *

* * @param value * The value of a threat intelligence indicator. * @return Returns a reference to this object so that method calls can be chained together. */ public ThreatIntelIndicator withValue(String value) { setValue(value); return this; } /** *

* The category of a threat intelligence indicator. *

* * @param category * The category of a threat intelligence indicator. * @see ThreatIntelIndicatorCategory */ public void setCategory(String category) { this.category = category; } /** *

* The category of a threat intelligence indicator. *

* * @return The category of a threat intelligence indicator. * @see ThreatIntelIndicatorCategory */ public String getCategory() { return this.category; } /** *

* The category of a threat intelligence indicator. *

* * @param category * The category of a threat intelligence indicator. * @return Returns a reference to this object so that method calls can be chained together. * @see ThreatIntelIndicatorCategory */ public ThreatIntelIndicator withCategory(String category) { setCategory(category); return this; } /** *

* The category of a threat intelligence indicator. *

* * @param category * The category of a threat intelligence indicator. * @return Returns a reference to this object so that method calls can be chained together. * @see ThreatIntelIndicatorCategory */ public ThreatIntelIndicator withCategory(ThreatIntelIndicatorCategory category) { this.category = category.toString(); return this; } /** *

* Indicates when the most recent instance of a threat intelligence indicator was observed. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, * 2020-03-22T13:22:13.933Z. *

* * @param lastObservedAt * Indicates when the most recent instance of a threat intelligence indicator was observed.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z. */ public void setLastObservedAt(String lastObservedAt) { this.lastObservedAt = lastObservedAt; } /** *

* Indicates when the most recent instance of a threat intelligence indicator was observed. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, * 2020-03-22T13:22:13.933Z. *

* * @return Indicates when the most recent instance of a threat intelligence indicator was observed.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z. */ public String getLastObservedAt() { return this.lastObservedAt; } /** *

* Indicates when the most recent instance of a threat intelligence indicator was observed. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, * 2020-03-22T13:22:13.933Z. *

* * @param lastObservedAt * Indicates when the most recent instance of a threat intelligence indicator was observed.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z. * @return Returns a reference to this object so that method calls can be chained together. */ public ThreatIntelIndicator withLastObservedAt(String lastObservedAt) { setLastObservedAt(lastObservedAt); return this; } /** *

* The source of the threat intelligence indicator. *

* * @param source * The source of the threat intelligence indicator. */ public void setSource(String source) { this.source = source; } /** *

* The source of the threat intelligence indicator. *

* * @return The source of the threat intelligence indicator. */ public String getSource() { return this.source; } /** *

* The source of the threat intelligence indicator. *

* * @param source * The source of the threat intelligence indicator. * @return Returns a reference to this object so that method calls can be chained together. */ public ThreatIntelIndicator withSource(String source) { setSource(source); return this; } /** *

* The URL to the page or site where you can get more information about the threat intelligence indicator. *

* * @param sourceUrl * The URL to the page or site where you can get more information about the threat intelligence indicator. */ public void setSourceUrl(String sourceUrl) { this.sourceUrl = sourceUrl; } /** *

* The URL to the page or site where you can get more information about the threat intelligence indicator. *

* * @return The URL to the page or site where you can get more information about the threat intelligence indicator. */ public String getSourceUrl() { return this.sourceUrl; } /** *

* The URL to the page or site where you can get more information about the threat intelligence indicator. *

* * @param sourceUrl * The URL to the page or site where you can get more information about the threat intelligence indicator. * @return Returns a reference to this object so that method calls can be chained together. */ public ThreatIntelIndicator withSourceUrl(String sourceUrl) { setSourceUrl(sourceUrl); 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 (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getValue() != null) sb.append("Value: ").append(getValue()).append(","); if (getCategory() != null) sb.append("Category: ").append(getCategory()).append(","); if (getLastObservedAt() != null) sb.append("LastObservedAt: ").append(getLastObservedAt()).append(","); if (getSource() != null) sb.append("Source: ").append(getSource()).append(","); if (getSourceUrl() != null) sb.append("SourceUrl: ").append(getSourceUrl()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThreatIntelIndicator == false) return false; ThreatIntelIndicator other = (ThreatIntelIndicator) obj; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getValue() == null ^ this.getValue() == null) return false; if (other.getValue() != null && other.getValue().equals(this.getValue()) == false) return false; if (other.getCategory() == null ^ this.getCategory() == null) return false; if (other.getCategory() != null && other.getCategory().equals(this.getCategory()) == false) return false; if (other.getLastObservedAt() == null ^ this.getLastObservedAt() == null) return false; if (other.getLastObservedAt() != null && other.getLastObservedAt().equals(this.getLastObservedAt()) == false) return false; if (other.getSource() == null ^ this.getSource() == null) return false; if (other.getSource() != null && other.getSource().equals(this.getSource()) == false) return false; if (other.getSourceUrl() == null ^ this.getSourceUrl() == null) return false; if (other.getSourceUrl() != null && other.getSourceUrl().equals(this.getSourceUrl()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getValue() == null) ? 0 : getValue().hashCode()); hashCode = prime * hashCode + ((getCategory() == null) ? 0 : getCategory().hashCode()); hashCode = prime * hashCode + ((getLastObservedAt() == null) ? 0 : getLastObservedAt().hashCode()); hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode()); hashCode = prime * hashCode + ((getSourceUrl() == null) ? 0 : getSourceUrl().hashCode()); return hashCode; } @Override public ThreatIntelIndicator clone() { try { return (ThreatIntelIndicator) 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.securityhub.model.transform.ThreatIntelIndicatorMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy