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

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

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * 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;

/**
 * 

* Updates to the severity information for a finding. *

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

* The normalized severity for the finding. This attribute is to be deprecated in favor of Label. *

*

* If you provide Normalized and do not provide Label, Label is set * automatically as follows. *

*
    *
  • *

    * 0 - INFORMATIONAL *

    *
  • *
  • *

    * 1–39 - LOW *

    *
  • *
  • *

    * 40–69 - MEDIUM *

    *
  • *
  • *

    * 70–89 - HIGH *

    *
  • *
  • *

    * 90–100 - CRITICAL *

    *
  • *
*/ private Integer normalized; /** *

* The native severity as defined by the Amazon Web Services service or integrated partner product that generated * the finding. *

*/ private Double product; /** *

* The severity value of the finding. The allowed values are the following. *

*
    *
  • *

    * INFORMATIONAL - No issue was found. *

    *
  • *
  • *

    * LOW - The issue does not require action on its own. *

    *
  • *
  • *

    * MEDIUM - The issue must be addressed but not urgently. *

    *
  • *
  • *

    * HIGH - The issue must be addressed as a priority. *

    *
  • *
  • *

    * CRITICAL - The issue must be remediated immediately to avoid it escalating. *

    *
  • *
*/ private String label; /** *

* The normalized severity for the finding. This attribute is to be deprecated in favor of Label. *

*

* If you provide Normalized and do not provide Label, Label is set * automatically as follows. *

*
    *
  • *

    * 0 - INFORMATIONAL *

    *
  • *
  • *

    * 1–39 - LOW *

    *
  • *
  • *

    * 40–69 - MEDIUM *

    *
  • *
  • *

    * 70–89 - HIGH *

    *
  • *
  • *

    * 90–100 - CRITICAL *

    *
  • *
* * @param normalized * The normalized severity for the finding. This attribute is to be deprecated in favor of Label * .

*

* If you provide Normalized and do not provide Label, Label is set * automatically as follows. *

*
    *
  • *

    * 0 - INFORMATIONAL *

    *
  • *
  • *

    * 1–39 - LOW *

    *
  • *
  • *

    * 40–69 - MEDIUM *

    *
  • *
  • *

    * 70–89 - HIGH *

    *
  • *
  • *

    * 90–100 - CRITICAL *

    *
  • */ public void setNormalized(Integer normalized) { this.normalized = normalized; } /** *

    * The normalized severity for the finding. This attribute is to be deprecated in favor of Label. *

    *

    * If you provide Normalized and do not provide Label, Label is set * automatically as follows. *

    *
      *
    • *

      * 0 - INFORMATIONAL *

      *
    • *
    • *

      * 1–39 - LOW *

      *
    • *
    • *

      * 40–69 - MEDIUM *

      *
    • *
    • *

      * 70–89 - HIGH *

      *
    • *
    • *

      * 90–100 - CRITICAL *

      *
    • *
    * * @return The normalized severity for the finding. This attribute is to be deprecated in favor of * Label.

    *

    * If you provide Normalized and do not provide Label, Label is set * automatically as follows. *

    *
      *
    • *

      * 0 - INFORMATIONAL *

      *
    • *
    • *

      * 1–39 - LOW *

      *
    • *
    • *

      * 40–69 - MEDIUM *

      *
    • *
    • *

      * 70–89 - HIGH *

      *
    • *
    • *

      * 90–100 - CRITICAL *

      *
    • */ public Integer getNormalized() { return this.normalized; } /** *

      * The normalized severity for the finding. This attribute is to be deprecated in favor of Label. *

      *

      * If you provide Normalized and do not provide Label, Label is set * automatically as follows. *

      *
        *
      • *

        * 0 - INFORMATIONAL *

        *
      • *
      • *

        * 1–39 - LOW *

        *
      • *
      • *

        * 40–69 - MEDIUM *

        *
      • *
      • *

        * 70–89 - HIGH *

        *
      • *
      • *

        * 90–100 - CRITICAL *

        *
      • *
      * * @param normalized * The normalized severity for the finding. This attribute is to be deprecated in favor of Label * .

      *

      * If you provide Normalized and do not provide Label, Label is set * automatically as follows. *

      *
        *
      • *

        * 0 - INFORMATIONAL *

        *
      • *
      • *

        * 1–39 - LOW *

        *
      • *
      • *

        * 40–69 - MEDIUM *

        *
      • *
      • *

        * 70–89 - HIGH *

        *
      • *
      • *

        * 90–100 - CRITICAL *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public SeverityUpdate withNormalized(Integer normalized) { setNormalized(normalized); return this; } /** *

        * The native severity as defined by the Amazon Web Services service or integrated partner product that generated * the finding. *

        * * @param product * The native severity as defined by the Amazon Web Services service or integrated partner product that * generated the finding. */ public void setProduct(Double product) { this.product = product; } /** *

        * The native severity as defined by the Amazon Web Services service or integrated partner product that generated * the finding. *

        * * @return The native severity as defined by the Amazon Web Services service or integrated partner product that * generated the finding. */ public Double getProduct() { return this.product; } /** *

        * The native severity as defined by the Amazon Web Services service or integrated partner product that generated * the finding. *

        * * @param product * The native severity as defined by the Amazon Web Services service or integrated partner product that * generated the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public SeverityUpdate withProduct(Double product) { setProduct(product); return this; } /** *

        * The severity value of the finding. The allowed values are the following. *

        *
          *
        • *

          * INFORMATIONAL - No issue was found. *

          *
        • *
        • *

          * LOW - The issue does not require action on its own. *

          *
        • *
        • *

          * MEDIUM - The issue must be addressed but not urgently. *

          *
        • *
        • *

          * HIGH - The issue must be addressed as a priority. *

          *
        • *
        • *

          * CRITICAL - The issue must be remediated immediately to avoid it escalating. *

          *
        • *
        * * @param label * The severity value of the finding. The allowed values are the following.

        *
          *
        • *

          * INFORMATIONAL - No issue was found. *

          *
        • *
        • *

          * LOW - The issue does not require action on its own. *

          *
        • *
        • *

          * MEDIUM - The issue must be addressed but not urgently. *

          *
        • *
        • *

          * HIGH - The issue must be addressed as a priority. *

          *
        • *
        • *

          * CRITICAL - The issue must be remediated immediately to avoid it escalating. *

          *
        • * @see SeverityLabel */ public void setLabel(String label) { this.label = label; } /** *

          * The severity value of the finding. The allowed values are the following. *

          *
            *
          • *

            * INFORMATIONAL - No issue was found. *

            *
          • *
          • *

            * LOW - The issue does not require action on its own. *

            *
          • *
          • *

            * MEDIUM - The issue must be addressed but not urgently. *

            *
          • *
          • *

            * HIGH - The issue must be addressed as a priority. *

            *
          • *
          • *

            * CRITICAL - The issue must be remediated immediately to avoid it escalating. *

            *
          • *
          * * @return The severity value of the finding. The allowed values are the following.

          *
            *
          • *

            * INFORMATIONAL - No issue was found. *

            *
          • *
          • *

            * LOW - The issue does not require action on its own. *

            *
          • *
          • *

            * MEDIUM - The issue must be addressed but not urgently. *

            *
          • *
          • *

            * HIGH - The issue must be addressed as a priority. *

            *
          • *
          • *

            * CRITICAL - The issue must be remediated immediately to avoid it escalating. *

            *
          • * @see SeverityLabel */ public String getLabel() { return this.label; } /** *

            * The severity value of the finding. The allowed values are the following. *

            *
              *
            • *

              * INFORMATIONAL - No issue was found. *

              *
            • *
            • *

              * LOW - The issue does not require action on its own. *

              *
            • *
            • *

              * MEDIUM - The issue must be addressed but not urgently. *

              *
            • *
            • *

              * HIGH - The issue must be addressed as a priority. *

              *
            • *
            • *

              * CRITICAL - The issue must be remediated immediately to avoid it escalating. *

              *
            • *
            * * @param label * The severity value of the finding. The allowed values are the following.

            *
              *
            • *

              * INFORMATIONAL - No issue was found. *

              *
            • *
            • *

              * LOW - The issue does not require action on its own. *

              *
            • *
            • *

              * MEDIUM - The issue must be addressed but not urgently. *

              *
            • *
            • *

              * HIGH - The issue must be addressed as a priority. *

              *
            • *
            • *

              * CRITICAL - The issue must be remediated immediately to avoid it escalating. *

              *
            • * @return Returns a reference to this object so that method calls can be chained together. * @see SeverityLabel */ public SeverityUpdate withLabel(String label) { setLabel(label); return this; } /** *

              * The severity value of the finding. The allowed values are the following. *

              *
                *
              • *

                * INFORMATIONAL - No issue was found. *

                *
              • *
              • *

                * LOW - The issue does not require action on its own. *

                *
              • *
              • *

                * MEDIUM - The issue must be addressed but not urgently. *

                *
              • *
              • *

                * HIGH - The issue must be addressed as a priority. *

                *
              • *
              • *

                * CRITICAL - The issue must be remediated immediately to avoid it escalating. *

                *
              • *
              * * @param label * The severity value of the finding. The allowed values are the following.

              *
                *
              • *

                * INFORMATIONAL - No issue was found. *

                *
              • *
              • *

                * LOW - The issue does not require action on its own. *

                *
              • *
              • *

                * MEDIUM - The issue must be addressed but not urgently. *

                *
              • *
              • *

                * HIGH - The issue must be addressed as a priority. *

                *
              • *
              • *

                * CRITICAL - The issue must be remediated immediately to avoid it escalating. *

                *
              • * @return Returns a reference to this object so that method calls can be chained together. * @see SeverityLabel */ public SeverityUpdate withLabel(SeverityLabel label) { this.label = label.toString(); 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 (getNormalized() != null) sb.append("Normalized: ").append(getNormalized()).append(","); if (getProduct() != null) sb.append("Product: ").append(getProduct()).append(","); if (getLabel() != null) sb.append("Label: ").append(getLabel()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SeverityUpdate == false) return false; SeverityUpdate other = (SeverityUpdate) obj; if (other.getNormalized() == null ^ this.getNormalized() == null) return false; if (other.getNormalized() != null && other.getNormalized().equals(this.getNormalized()) == false) return false; if (other.getProduct() == null ^ this.getProduct() == null) return false; if (other.getProduct() != null && other.getProduct().equals(this.getProduct()) == false) return false; if (other.getLabel() == null ^ this.getLabel() == null) return false; if (other.getLabel() != null && other.getLabel().equals(this.getLabel()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNormalized() == null) ? 0 : getNormalized().hashCode()); hashCode = prime * hashCode + ((getProduct() == null) ? 0 : getProduct().hashCode()); hashCode = prime * hashCode + ((getLabel() == null) ? 0 : getLabel().hashCode()); return hashCode; } @Override public SeverityUpdate clone() { try { return (SeverityUpdate) 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.SeverityUpdateMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy