/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

The details of process-related information about a finding.

See * Also:

AWS * API Reference

*/ class AWS_SECURITYHUB_API ProcessDetails { public: ProcessDetails(); ProcessDetails(Aws::Utils::Json::JsonView jsonValue); ProcessDetails& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the process.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the process.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the process.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the process.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the process.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the process.

*/ inline ProcessDetails& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the process.

*/ inline ProcessDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the process.

*/ inline ProcessDetails& WithName(const char* value) { SetName(value); return *this;} /** *

The path to the process executable.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

The path to the process executable.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

The path to the process executable.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

The path to the process executable.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

The path to the process executable.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

The path to the process executable.

*/ inline ProcessDetails& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

The path to the process executable.

*/ inline ProcessDetails& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

The path to the process executable.

*/ inline ProcessDetails& WithPath(const char* value) { SetPath(value); return *this;} /** *

The process ID.

*/ inline int GetPid() const{ return m_pid; } /** *

The process ID.

*/ inline bool PidHasBeenSet() const { return m_pidHasBeenSet; } /** *

The process ID.

*/ inline void SetPid(int value) { m_pidHasBeenSet = true; m_pid = value; } /** *

The process ID.

*/ inline ProcessDetails& WithPid(int value) { SetPid(value); return *this;} /** *

The parent process ID.

*/ inline int GetParentPid() const{ return m_parentPid; } /** *

The parent process ID.

*/ inline bool ParentPidHasBeenSet() const { return m_parentPidHasBeenSet; } /** *

The parent process ID.

*/ inline void SetParentPid(int value) { m_parentPidHasBeenSet = true; m_parentPid = value; } /** *

The parent process ID.

*/ inline ProcessDetails& WithParentPid(int value) { SetParentPid(value); return *this;} /** *

Indicates when the process was launched.

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.

*/ inline const Aws::String& GetLaunchedAt() const{ return m_launchedAt; } /** *

Indicates when the process was launched.

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.

*/ inline bool LaunchedAtHasBeenSet() const { return m_launchedAtHasBeenSet; } /** *

Indicates when the process was launched.

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.

*/ inline void SetLaunchedAt(const Aws::String& value) { m_launchedAtHasBeenSet = true; m_launchedAt = value; } /** *

Indicates when the process was launched.

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.

*/ inline void SetLaunchedAt(Aws::String&& value) { m_launchedAtHasBeenSet = true; m_launchedAt = std::move(value); } /** *

Indicates when the process was launched.

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.

*/ inline void SetLaunchedAt(const char* value) { m_launchedAtHasBeenSet = true; m_launchedAt.assign(value); } /** *

Indicates when the process was launched.

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.

*/ inline ProcessDetails& WithLaunchedAt(const Aws::String& value) { SetLaunchedAt(value); return *this;} /** *

Indicates when the process was launched.

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.

*/ inline ProcessDetails& WithLaunchedAt(Aws::String&& value) { SetLaunchedAt(std::move(value)); return *this;} /** *

Indicates when the process was launched.

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.

*/ inline ProcessDetails& WithLaunchedAt(const char* value) { SetLaunchedAt(value); return *this;} /** *

Indicates when the process was terminated.

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.

*/ inline const Aws::String& GetTerminatedAt() const{ return m_terminatedAt; } /** *

Indicates when the process was terminated.

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.

*/ inline bool TerminatedAtHasBeenSet() const { return m_terminatedAtHasBeenSet; } /** *

Indicates when the process was terminated.

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.

*/ inline void SetTerminatedAt(const Aws::String& value) { m_terminatedAtHasBeenSet = true; m_terminatedAt = value; } /** *

Indicates when the process was terminated.

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.

*/ inline void SetTerminatedAt(Aws::String&& value) { m_terminatedAtHasBeenSet = true; m_terminatedAt = std::move(value); } /** *

Indicates when the process was terminated.

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.

*/ inline void SetTerminatedAt(const char* value) { m_terminatedAtHasBeenSet = true; m_terminatedAt.assign(value); } /** *

Indicates when the process was terminated.

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.

*/ inline ProcessDetails& WithTerminatedAt(const Aws::String& value) { SetTerminatedAt(value); return *this;} /** *

Indicates when the process was terminated.

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.

*/ inline ProcessDetails& WithTerminatedAt(Aws::String&& value) { SetTerminatedAt(std::move(value)); return *this;} /** *

Indicates when the process was terminated.

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.

*/ inline ProcessDetails& WithTerminatedAt(const char* value) { SetTerminatedAt(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_path; bool m_pathHasBeenSet; int m_pid; bool m_pidHasBeenSet; int m_parentPid; bool m_parentPidHasBeenSet; Aws::String m_launchedAt; bool m_launchedAtHasBeenSet; Aws::String m_terminatedAt; bool m_terminatedAtHasBeenSet; }; } // namespace Model } // namespace SecurityHub } // namespace Aws