/* * Copyright 2018-2023 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.guardduty.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about the observed process. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ProcessDetails implements Serializable, Cloneable, StructuredPojo { /** ** The name of the process. *
*/ private String name; /** ** The absolute path of the process executable file. *
*/ private String executablePath; /** *
* The SHA256
hash of the process executable.
*
* The ID of the child process. *
*/ private Integer namespacePid; /** ** The present working directory of the process. *
*/ private String pwd; /** ** The ID of the process. *
*/ private Integer pid; /** ** The time when the process started. This is in UTC format. *
*/ private java.util.Date startTime; /** ** The unique ID assigned to the process by GuardDuty. *
*/ private String uuid; /** ** The unique ID of the parent process. This ID is assigned to the parent process by GuardDuty. *
*/ private String parentUuid; /** ** The user that executed the process. *
*/ private String user; /** ** The unique ID of the user that executed the process. *
*/ private Integer userId; /** ** The effective user ID of the user that executed the process. *
*/ private Integer euid; /** ** Information about the process's lineage. *
*/ private java.util.List* The name of the process. *
* * @param name * The name of the process. */ public void setName(String name) { this.name = name; } /** ** The name of the process. *
* * @return The name of the process. */ public String getName() { return this.name; } /** ** The name of the process. *
* * @param name * The name of the process. * @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 absolute path of the process executable file. *
* * @param executablePath * The absolute path of the process executable file. */ public void setExecutablePath(String executablePath) { this.executablePath = executablePath; } /** ** The absolute path of the process executable file. *
* * @return The absolute path of the process executable file. */ public String getExecutablePath() { return this.executablePath; } /** ** The absolute path of the process executable file. *
* * @param executablePath * The absolute path of the process executable file. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withExecutablePath(String executablePath) { setExecutablePath(executablePath); return this; } /** *
* The SHA256
hash of the process executable.
*
SHA256
hash of the process executable.
*/
public void setExecutableSha256(String executableSha256) {
this.executableSha256 = executableSha256;
}
/**
*
* The SHA256
hash of the process executable.
*
SHA256
hash of the process executable.
*/
public String getExecutableSha256() {
return this.executableSha256;
}
/**
*
* The SHA256
hash of the process executable.
*
SHA256
hash of the process executable.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ProcessDetails withExecutableSha256(String executableSha256) {
setExecutableSha256(executableSha256);
return this;
}
/**
* * The ID of the child process. *
* * @param namespacePid * The ID of the child process. */ public void setNamespacePid(Integer namespacePid) { this.namespacePid = namespacePid; } /** ** The ID of the child process. *
* * @return The ID of the child process. */ public Integer getNamespacePid() { return this.namespacePid; } /** ** The ID of the child process. *
* * @param namespacePid * The ID of the child process. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withNamespacePid(Integer namespacePid) { setNamespacePid(namespacePid); return this; } /** ** The present working directory of the process. *
* * @param pwd * The present working directory of the process. */ public void setPwd(String pwd) { this.pwd = pwd; } /** ** The present working directory of the process. *
* * @return The present working directory of the process. */ public String getPwd() { return this.pwd; } /** ** The present working directory of the process. *
* * @param pwd * The present working directory of the process. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withPwd(String pwd) { setPwd(pwd); return this; } /** ** The ID of the process. *
* * @param pid * The ID of the process. */ public void setPid(Integer pid) { this.pid = pid; } /** ** The ID of the process. *
* * @return The ID of the process. */ public Integer getPid() { return this.pid; } /** ** The ID of the process. *
* * @param pid * The ID of the process. * @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 time when the process started. This is in UTC format. *
* * @param startTime * The time when the process started. This is in UTC format. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** The time when the process started. This is in UTC format. *
* * @return The time when the process started. This is in UTC format. */ public java.util.Date getStartTime() { return this.startTime; } /** ** The time when the process started. This is in UTC format. *
* * @param startTime * The time when the process started. This is in UTC format. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** The unique ID assigned to the process by GuardDuty. *
* * @param uuid * The unique ID assigned to the process by GuardDuty. */ public void setUuid(String uuid) { this.uuid = uuid; } /** ** The unique ID assigned to the process by GuardDuty. *
* * @return The unique ID assigned to the process by GuardDuty. */ public String getUuid() { return this.uuid; } /** ** The unique ID assigned to the process by GuardDuty. *
* * @param uuid * The unique ID assigned to the process by GuardDuty. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withUuid(String uuid) { setUuid(uuid); return this; } /** ** The unique ID of the parent process. This ID is assigned to the parent process by GuardDuty. *
* * @param parentUuid * The unique ID of the parent process. This ID is assigned to the parent process by GuardDuty. */ public void setParentUuid(String parentUuid) { this.parentUuid = parentUuid; } /** ** The unique ID of the parent process. This ID is assigned to the parent process by GuardDuty. *
* * @return The unique ID of the parent process. This ID is assigned to the parent process by GuardDuty. */ public String getParentUuid() { return this.parentUuid; } /** ** The unique ID of the parent process. This ID is assigned to the parent process by GuardDuty. *
* * @param parentUuid * The unique ID of the parent process. This ID is assigned to the parent process by GuardDuty. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withParentUuid(String parentUuid) { setParentUuid(parentUuid); return this; } /** ** The user that executed the process. *
* * @param user * The user that executed the process. */ public void setUser(String user) { this.user = user; } /** ** The user that executed the process. *
* * @return The user that executed the process. */ public String getUser() { return this.user; } /** ** The user that executed the process. *
* * @param user * The user that executed the process. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withUser(String user) { setUser(user); return this; } /** ** The unique ID of the user that executed the process. *
* * @param userId * The unique ID of the user that executed the process. */ public void setUserId(Integer userId) { this.userId = userId; } /** ** The unique ID of the user that executed the process. *
* * @return The unique ID of the user that executed the process. */ public Integer getUserId() { return this.userId; } /** ** The unique ID of the user that executed the process. *
* * @param userId * The unique ID of the user that executed the process. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withUserId(Integer userId) { setUserId(userId); return this; } /** ** The effective user ID of the user that executed the process. *
* * @param euid * The effective user ID of the user that executed the process. */ public void setEuid(Integer euid) { this.euid = euid; } /** ** The effective user ID of the user that executed the process. *
* * @return The effective user ID of the user that executed the process. */ public Integer getEuid() { return this.euid; } /** ** The effective user ID of the user that executed the process. *
* * @param euid * The effective user ID of the user that executed the process. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withEuid(Integer euid) { setEuid(euid); return this; } /** ** Information about the process's lineage. *
* * @return Information about the process's lineage. */ public java.util.List* Information about the process's lineage. *
* * @param lineage * Information about the process's lineage. */ public void setLineage(java.util.Collection* Information about the process's lineage. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLineage(java.util.Collection)} or {@link #withLineage(java.util.Collection)} if you want to override * the existing values. *
* * @param lineage * Information about the process's lineage. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withLineage(LineageObject... lineage) { if (this.lineage == null) { setLineage(new java.util.ArrayList* Information about the process's lineage. *
* * @param lineage * Information about the process's lineage. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessDetails withLineage(java.util.Collection