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

Describes the information about a task invocation for a particular target as * part of a task execution performed as part of a maintenance window * execution.

See Also:

AWS * API Reference

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

The ID of the maintenance window execution that ran the task.

*/ inline const Aws::String& GetWindowExecutionId() const{ return m_windowExecutionId; } /** *

The ID of the maintenance window execution that ran the task.

*/ inline bool WindowExecutionIdHasBeenSet() const { return m_windowExecutionIdHasBeenSet; } /** *

The ID of the maintenance window execution that ran the task.

*/ inline void SetWindowExecutionId(const Aws::String& value) { m_windowExecutionIdHasBeenSet = true; m_windowExecutionId = value; } /** *

The ID of the maintenance window execution that ran the task.

*/ inline void SetWindowExecutionId(Aws::String&& value) { m_windowExecutionIdHasBeenSet = true; m_windowExecutionId = std::move(value); } /** *

The ID of the maintenance window execution that ran the task.

*/ inline void SetWindowExecutionId(const char* value) { m_windowExecutionIdHasBeenSet = true; m_windowExecutionId.assign(value); } /** *

The ID of the maintenance window execution that ran the task.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithWindowExecutionId(const Aws::String& value) { SetWindowExecutionId(value); return *this;} /** *

The ID of the maintenance window execution that ran the task.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithWindowExecutionId(Aws::String&& value) { SetWindowExecutionId(std::move(value)); return *this;} /** *

The ID of the maintenance window execution that ran the task.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithWindowExecutionId(const char* value) { SetWindowExecutionId(value); return *this;} /** *

The ID of the specific task execution in the maintenance window * execution.

*/ inline const Aws::String& GetTaskExecutionId() const{ return m_taskExecutionId; } /** *

The ID of the specific task execution in the maintenance window * execution.

*/ inline bool TaskExecutionIdHasBeenSet() const { return m_taskExecutionIdHasBeenSet; } /** *

The ID of the specific task execution in the maintenance window * execution.

*/ inline void SetTaskExecutionId(const Aws::String& value) { m_taskExecutionIdHasBeenSet = true; m_taskExecutionId = value; } /** *

The ID of the specific task execution in the maintenance window * execution.

*/ inline void SetTaskExecutionId(Aws::String&& value) { m_taskExecutionIdHasBeenSet = true; m_taskExecutionId = std::move(value); } /** *

The ID of the specific task execution in the maintenance window * execution.

*/ inline void SetTaskExecutionId(const char* value) { m_taskExecutionIdHasBeenSet = true; m_taskExecutionId.assign(value); } /** *

The ID of the specific task execution in the maintenance window * execution.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithTaskExecutionId(const Aws::String& value) { SetTaskExecutionId(value); return *this;} /** *

The ID of the specific task execution in the maintenance window * execution.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithTaskExecutionId(Aws::String&& value) { SetTaskExecutionId(std::move(value)); return *this;} /** *

The ID of the specific task execution in the maintenance window * execution.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithTaskExecutionId(const char* value) { SetTaskExecutionId(value); return *this;} /** *

The ID of the task invocation.

*/ inline const Aws::String& GetInvocationId() const{ return m_invocationId; } /** *

The ID of the task invocation.

*/ inline bool InvocationIdHasBeenSet() const { return m_invocationIdHasBeenSet; } /** *

The ID of the task invocation.

*/ inline void SetInvocationId(const Aws::String& value) { m_invocationIdHasBeenSet = true; m_invocationId = value; } /** *

The ID of the task invocation.

*/ inline void SetInvocationId(Aws::String&& value) { m_invocationIdHasBeenSet = true; m_invocationId = std::move(value); } /** *

The ID of the task invocation.

*/ inline void SetInvocationId(const char* value) { m_invocationIdHasBeenSet = true; m_invocationId.assign(value); } /** *

The ID of the task invocation.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithInvocationId(const Aws::String& value) { SetInvocationId(value); return *this;} /** *

The ID of the task invocation.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithInvocationId(Aws::String&& value) { SetInvocationId(std::move(value)); return *this;} /** *

The ID of the task invocation.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithInvocationId(const char* value) { SetInvocationId(value); return *this;} /** *

The ID of the action performed in the service that actually handled the task * invocation. If the task type is RUN_COMMAND, this value is the * command ID.

*/ inline const Aws::String& GetExecutionId() const{ return m_executionId; } /** *

The ID of the action performed in the service that actually handled the task * invocation. If the task type is RUN_COMMAND, this value is the * command ID.

*/ inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; } /** *

The ID of the action performed in the service that actually handled the task * invocation. If the task type is RUN_COMMAND, this value is the * command ID.

*/ inline void SetExecutionId(const Aws::String& value) { m_executionIdHasBeenSet = true; m_executionId = value; } /** *

The ID of the action performed in the service that actually handled the task * invocation. If the task type is RUN_COMMAND, this value is the * command ID.

*/ inline void SetExecutionId(Aws::String&& value) { m_executionIdHasBeenSet = true; m_executionId = std::move(value); } /** *

The ID of the action performed in the service that actually handled the task * invocation. If the task type is RUN_COMMAND, this value is the * command ID.

*/ inline void SetExecutionId(const char* value) { m_executionIdHasBeenSet = true; m_executionId.assign(value); } /** *

The ID of the action performed in the service that actually handled the task * invocation. If the task type is RUN_COMMAND, this value is the * command ID.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;} /** *

The ID of the action performed in the service that actually handled the task * invocation. If the task type is RUN_COMMAND, this value is the * command ID.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;} /** *

The ID of the action performed in the service that actually handled the task * invocation. If the task type is RUN_COMMAND, this value is the * command ID.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithExecutionId(const char* value) { SetExecutionId(value); return *this;} /** *

The task type.

*/ inline const MaintenanceWindowTaskType& GetTaskType() const{ return m_taskType; } /** *

The task type.

*/ inline bool TaskTypeHasBeenSet() const { return m_taskTypeHasBeenSet; } /** *

The task type.

*/ inline void SetTaskType(const MaintenanceWindowTaskType& value) { m_taskTypeHasBeenSet = true; m_taskType = value; } /** *

The task type.

*/ inline void SetTaskType(MaintenanceWindowTaskType&& value) { m_taskTypeHasBeenSet = true; m_taskType = std::move(value); } /** *

The task type.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithTaskType(const MaintenanceWindowTaskType& value) { SetTaskType(value); return *this;} /** *

The task type.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithTaskType(MaintenanceWindowTaskType&& value) { SetTaskType(std::move(value)); return *this;} /** *

The parameters that were provided for the invocation when it was run.

*/ inline const Aws::String& GetParameters() const{ return m_parameters; } /** *

The parameters that were provided for the invocation when it was run.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

The parameters that were provided for the invocation when it was run.

*/ inline void SetParameters(const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

The parameters that were provided for the invocation when it was run.

*/ inline void SetParameters(Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

The parameters that were provided for the invocation when it was run.

*/ inline void SetParameters(const char* value) { m_parametersHasBeenSet = true; m_parameters.assign(value); } /** *

The parameters that were provided for the invocation when it was run.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithParameters(const Aws::String& value) { SetParameters(value); return *this;} /** *

The parameters that were provided for the invocation when it was run.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithParameters(Aws::String&& value) { SetParameters(std::move(value)); return *this;} /** *

The parameters that were provided for the invocation when it was run.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithParameters(const char* value) { SetParameters(value); return *this;} /** *

The status of the task invocation.

*/ inline const MaintenanceWindowExecutionStatus& GetStatus() const{ return m_status; } /** *

The status of the task invocation.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the task invocation.

*/ inline void SetStatus(const MaintenanceWindowExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the task invocation.

*/ inline void SetStatus(MaintenanceWindowExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the task invocation.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithStatus(const MaintenanceWindowExecutionStatus& value) { SetStatus(value); return *this;} /** *

The status of the task invocation.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithStatus(MaintenanceWindowExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The details explaining the status of the task invocation. Not available for * all status values.

*/ inline const Aws::String& GetStatusDetails() const{ return m_statusDetails; } /** *

The details explaining the status of the task invocation. Not available for * all status values.

*/ inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; } /** *

The details explaining the status of the task invocation. Not available for * all status values.

*/ inline void SetStatusDetails(const Aws::String& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = value; } /** *

The details explaining the status of the task invocation. Not available for * all status values.

*/ inline void SetStatusDetails(Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::move(value); } /** *

The details explaining the status of the task invocation. Not available for * all status values.

*/ inline void SetStatusDetails(const char* value) { m_statusDetailsHasBeenSet = true; m_statusDetails.assign(value); } /** *

The details explaining the status of the task invocation. Not available for * all status values.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithStatusDetails(const Aws::String& value) { SetStatusDetails(value); return *this;} /** *

The details explaining the status of the task invocation. Not available for * all status values.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithStatusDetails(Aws::String&& value) { SetStatusDetails(std::move(value)); return *this;} /** *

The details explaining the status of the task invocation. Not available for * all status values.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithStatusDetails(const char* value) { SetStatusDetails(value); return *this;} /** *

The time the invocation started.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The time the invocation started.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The time the invocation started.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The time the invocation started.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The time the invocation started.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The time the invocation started.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The time the invocation finished.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The time the invocation finished.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The time the invocation finished.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The time the invocation finished.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The time the invocation finished.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The time the invocation finished.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

User-provided value that was specified when the target was registered with * the maintenance window. This was also included in any Amazon CloudWatch Events * events raised during the task invocation.

*/ inline const Aws::String& GetOwnerInformation() const{ return m_ownerInformation; } /** *

User-provided value that was specified when the target was registered with * the maintenance window. This was also included in any Amazon CloudWatch Events * events raised during the task invocation.

*/ inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; } /** *

User-provided value that was specified when the target was registered with * the maintenance window. This was also included in any Amazon CloudWatch Events * events raised during the task invocation.

*/ inline void SetOwnerInformation(const Aws::String& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = value; } /** *

User-provided value that was specified when the target was registered with * the maintenance window. This was also included in any Amazon CloudWatch Events * events raised during the task invocation.

*/ inline void SetOwnerInformation(Aws::String&& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = std::move(value); } /** *

User-provided value that was specified when the target was registered with * the maintenance window. This was also included in any Amazon CloudWatch Events * events raised during the task invocation.

*/ inline void SetOwnerInformation(const char* value) { m_ownerInformationHasBeenSet = true; m_ownerInformation.assign(value); } /** *

User-provided value that was specified when the target was registered with * the maintenance window. This was also included in any Amazon CloudWatch Events * events raised during the task invocation.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithOwnerInformation(const Aws::String& value) { SetOwnerInformation(value); return *this;} /** *

User-provided value that was specified when the target was registered with * the maintenance window. This was also included in any Amazon CloudWatch Events * events raised during the task invocation.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithOwnerInformation(Aws::String&& value) { SetOwnerInformation(std::move(value)); return *this;} /** *

User-provided value that was specified when the target was registered with * the maintenance window. This was also included in any Amazon CloudWatch Events * events raised during the task invocation.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithOwnerInformation(const char* value) { SetOwnerInformation(value); return *this;} /** *

The ID of the target definition in this maintenance window the invocation was * performed for.

*/ inline const Aws::String& GetWindowTargetId() const{ return m_windowTargetId; } /** *

The ID of the target definition in this maintenance window the invocation was * performed for.

*/ inline bool WindowTargetIdHasBeenSet() const { return m_windowTargetIdHasBeenSet; } /** *

The ID of the target definition in this maintenance window the invocation was * performed for.

*/ inline void SetWindowTargetId(const Aws::String& value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId = value; } /** *

The ID of the target definition in this maintenance window the invocation was * performed for.

*/ inline void SetWindowTargetId(Aws::String&& value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId = std::move(value); } /** *

The ID of the target definition in this maintenance window the invocation was * performed for.

*/ inline void SetWindowTargetId(const char* value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId.assign(value); } /** *

The ID of the target definition in this maintenance window the invocation was * performed for.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithWindowTargetId(const Aws::String& value) { SetWindowTargetId(value); return *this;} /** *

The ID of the target definition in this maintenance window the invocation was * performed for.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithWindowTargetId(Aws::String&& value) { SetWindowTargetId(std::move(value)); return *this;} /** *

The ID of the target definition in this maintenance window the invocation was * performed for.

*/ inline MaintenanceWindowExecutionTaskInvocationIdentity& WithWindowTargetId(const char* value) { SetWindowTargetId(value); return *this;} private: Aws::String m_windowExecutionId; bool m_windowExecutionIdHasBeenSet = false; Aws::String m_taskExecutionId; bool m_taskExecutionIdHasBeenSet = false; Aws::String m_invocationId; bool m_invocationIdHasBeenSet = false; Aws::String m_executionId; bool m_executionIdHasBeenSet = false; MaintenanceWindowTaskType m_taskType; bool m_taskTypeHasBeenSet = false; Aws::String m_parameters; bool m_parametersHasBeenSet = false; MaintenanceWindowExecutionStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusDetails; bool m_statusDetailsHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_ownerInformation; bool m_ownerInformationHasBeenSet = false; Aws::String m_windowTargetId; bool m_windowTargetIdHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws