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

com.amazonaws.services.securityhub.model.ProcessDetails 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

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.securityhub.model;

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

/**
 * 

* The details of process-related information about a finding. *

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

* The name of the process. *

*

* Length Constraints: Minimum of 1. Maximum of 64. *

*/ private String name; /** *

* The path to the process executable. *

*

* Length Constraints: Minimum of 1. Maximum of 512. *

*/ private String path; /** *

* The process ID. *

*/ private Integer pid; /** *

* The parent process ID. This field accepts positive integers between O and 2147483647. *

*/ private Integer parentPid; /** *

* Indicates when the process was launched. *

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

    *
  • *
*/ private String launchedAt; /** *

* Indicates when the process was terminated. *

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

    *
  • *
*/ private String terminatedAt; /** *

* The name of the process. *

*

* Length Constraints: Minimum of 1. Maximum of 64. *

* * @param name * The name of the process.

*

* Length Constraints: Minimum of 1. Maximum of 64. */ public void setName(String name) { this.name = name; } /** *

* The name of the process. *

*

* Length Constraints: Minimum of 1. Maximum of 64. *

* * @return The name of the process.

*

* Length Constraints: Minimum of 1. Maximum of 64. */ public String getName() { return this.name; } /** *

* The name of the process. *

*

* Length Constraints: Minimum of 1. Maximum of 64. *

* * @param name * The name of the process.

*

* Length Constraints: Minimum of 1. Maximum of 64. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withName(String name) { setName(name); return this; } /** *

* The path to the process executable. *

*

* Length Constraints: Minimum of 1. Maximum of 512. *

* * @param path * The path to the process executable.

*

* Length Constraints: Minimum of 1. Maximum of 512. */ public void setPath(String path) { this.path = path; } /** *

* The path to the process executable. *

*

* Length Constraints: Minimum of 1. Maximum of 512. *

* * @return The path to the process executable.

*

* Length Constraints: Minimum of 1. Maximum of 512. */ public String getPath() { return this.path; } /** *

* The path to the process executable. *

*

* Length Constraints: Minimum of 1. Maximum of 512. *

* * @param path * The path to the process executable.

*

* Length Constraints: Minimum of 1. Maximum of 512. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withPath(String path) { setPath(path); return this; } /** *

* The process ID. *

* * @param pid * The process ID. */ public void setPid(Integer pid) { this.pid = pid; } /** *

* The process ID. *

* * @return The process ID. */ public Integer getPid() { return this.pid; } /** *

* The process ID. *

* * @param pid * The process ID. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withPid(Integer pid) { setPid(pid); return this; } /** *

* The parent process ID. This field accepts positive integers between O and 2147483647. *

* * @param parentPid * The parent process ID. This field accepts positive integers between O and * 2147483647. */ public void setParentPid(Integer parentPid) { this.parentPid = parentPid; } /** *

* The parent process ID. This field accepts positive integers between O and 2147483647. *

* * @return The parent process ID. This field accepts positive integers between O and * 2147483647. */ public Integer getParentPid() { return this.parentPid; } /** *

* The parent process ID. This field accepts positive integers between O and 2147483647. *

* * @param parentPid * The parent process ID. This field accepts positive integers between O and * 2147483647. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withParentPid(Integer parentPid) { setParentPid(parentPid); return this; } /** *

* Indicates when the process was launched. *

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

    *
  • *
* * @param launchedAt * Indicates when the process was launched.

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

    *
  • */ public void setLaunchedAt(String launchedAt) { this.launchedAt = launchedAt; } /** *

    * Indicates when the process was launched. *

    *

    * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

    *
      *
    • *

      * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

      *
    • *
    * * @return Indicates when the process was launched.

    *

    * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

    *
      *
    • *

      * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

      *
    • */ public String getLaunchedAt() { return this.launchedAt; } /** *

      * Indicates when the process was launched. *

      *

      * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

      *
        *
      • *

        * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

        *
      • *
      * * @param launchedAt * Indicates when the process was launched.

      *

      * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

      *
        *
      • *

        * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withLaunchedAt(String launchedAt) { setLaunchedAt(launchedAt); return this; } /** *

        * Indicates when the process was terminated. *

        *

        * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

        *
          *
        • *

          * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

          *
        • *
        * * @param terminatedAt * Indicates when the process was terminated.

        *

        * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

        *
          *
        • *

          * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

          *
        • */ public void setTerminatedAt(String terminatedAt) { this.terminatedAt = terminatedAt; } /** *

          * Indicates when the process was terminated. *

          *

          * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

          *
            *
          • *

            * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

            *
          • *
          * * @return Indicates when the process was terminated.

          *

          * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

          *
            *
          • *

            * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

            *
          • */ public String getTerminatedAt() { return this.terminatedAt; } /** *

            * Indicates when the process was terminated. *

            *

            * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

            *
              *
            • *

              * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

              *
            • *
            * * @param terminatedAt * Indicates when the process was terminated.

            *

            * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

            *
              *
            • *

              * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

              *
            • * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withTerminatedAt(String terminatedAt) { setTerminatedAt(terminatedAt); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getPath() != null) sb.append("Path: ").append(getPath()).append(","); if (getPid() != null) sb.append("Pid: ").append(getPid()).append(","); if (getParentPid() != null) sb.append("ParentPid: ").append(getParentPid()).append(","); if (getLaunchedAt() != null) sb.append("LaunchedAt: ").append(getLaunchedAt()).append(","); if (getTerminatedAt() != null) sb.append("TerminatedAt: ").append(getTerminatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ProcessDetails == false) return false; ProcessDetails other = (ProcessDetails) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getPath() == null ^ this.getPath() == null) return false; if (other.getPath() != null && other.getPath().equals(this.getPath()) == false) return false; if (other.getPid() == null ^ this.getPid() == null) return false; if (other.getPid() != null && other.getPid().equals(this.getPid()) == false) return false; if (other.getParentPid() == null ^ this.getParentPid() == null) return false; if (other.getParentPid() != null && other.getParentPid().equals(this.getParentPid()) == false) return false; if (other.getLaunchedAt() == null ^ this.getLaunchedAt() == null) return false; if (other.getLaunchedAt() != null && other.getLaunchedAt().equals(this.getLaunchedAt()) == false) return false; if (other.getTerminatedAt() == null ^ this.getTerminatedAt() == null) return false; if (other.getTerminatedAt() != null && other.getTerminatedAt().equals(this.getTerminatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getPath() == null) ? 0 : getPath().hashCode()); hashCode = prime * hashCode + ((getPid() == null) ? 0 : getPid().hashCode()); hashCode = prime * hashCode + ((getParentPid() == null) ? 0 : getParentPid().hashCode()); hashCode = prime * hashCode + ((getLaunchedAt() == null) ? 0 : getLaunchedAt().hashCode()); hashCode = prime * hashCode + ((getTerminatedAt() == null) ? 0 : getTerminatedAt().hashCode()); return hashCode; } @Override public ProcessDetails clone() { try { return (ProcessDetails) 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.ProcessDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy