/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SSM { namespace Model { class UpdateMaintenanceWindowTaskResult { public: AWS_SSM_API UpdateMaintenanceWindowTaskResult(); AWS_SSM_API UpdateMaintenanceWindowTaskResult(const Aws::AmazonWebServiceResult& result); AWS_SSM_API UpdateMaintenanceWindowTaskResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the maintenance window that was updated.

*/ inline const Aws::String& GetWindowId() const{ return m_windowId; } /** *

The ID of the maintenance window that was updated.

*/ inline void SetWindowId(const Aws::String& value) { m_windowId = value; } /** *

The ID of the maintenance window that was updated.

*/ inline void SetWindowId(Aws::String&& value) { m_windowId = std::move(value); } /** *

The ID of the maintenance window that was updated.

*/ inline void SetWindowId(const char* value) { m_windowId.assign(value); } /** *

The ID of the maintenance window that was updated.

*/ inline UpdateMaintenanceWindowTaskResult& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;} /** *

The ID of the maintenance window that was updated.

*/ inline UpdateMaintenanceWindowTaskResult& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;} /** *

The ID of the maintenance window that was updated.

*/ inline UpdateMaintenanceWindowTaskResult& WithWindowId(const char* value) { SetWindowId(value); return *this;} /** *

The task ID of the maintenance window that was updated.

*/ inline const Aws::String& GetWindowTaskId() const{ return m_windowTaskId; } /** *

The task ID of the maintenance window that was updated.

*/ inline void SetWindowTaskId(const Aws::String& value) { m_windowTaskId = value; } /** *

The task ID of the maintenance window that was updated.

*/ inline void SetWindowTaskId(Aws::String&& value) { m_windowTaskId = std::move(value); } /** *

The task ID of the maintenance window that was updated.

*/ inline void SetWindowTaskId(const char* value) { m_windowTaskId.assign(value); } /** *

The task ID of the maintenance window that was updated.

*/ inline UpdateMaintenanceWindowTaskResult& WithWindowTaskId(const Aws::String& value) { SetWindowTaskId(value); return *this;} /** *

The task ID of the maintenance window that was updated.

*/ inline UpdateMaintenanceWindowTaskResult& WithWindowTaskId(Aws::String&& value) { SetWindowTaskId(std::move(value)); return *this;} /** *

The task ID of the maintenance window that was updated.

*/ inline UpdateMaintenanceWindowTaskResult& WithWindowTaskId(const char* value) { SetWindowTaskId(value); return *this;} /** *

The updated target values.

*/ inline const Aws::Vector& GetTargets() const{ return m_targets; } /** *

The updated target values.

*/ inline void SetTargets(const Aws::Vector& value) { m_targets = value; } /** *

The updated target values.

*/ inline void SetTargets(Aws::Vector&& value) { m_targets = std::move(value); } /** *

The updated target values.

*/ inline UpdateMaintenanceWindowTaskResult& WithTargets(const Aws::Vector& value) { SetTargets(value); return *this;} /** *

The updated target values.

*/ inline UpdateMaintenanceWindowTaskResult& WithTargets(Aws::Vector&& value) { SetTargets(std::move(value)); return *this;} /** *

The updated target values.

*/ inline UpdateMaintenanceWindowTaskResult& AddTargets(const Target& value) { m_targets.push_back(value); return *this; } /** *

The updated target values.

*/ inline UpdateMaintenanceWindowTaskResult& AddTargets(Target&& value) { m_targets.push_back(std::move(value)); return *this; } /** *

The updated task ARN value.

*/ inline const Aws::String& GetTaskArn() const{ return m_taskArn; } /** *

The updated task ARN value.

*/ inline void SetTaskArn(const Aws::String& value) { m_taskArn = value; } /** *

The updated task ARN value.

*/ inline void SetTaskArn(Aws::String&& value) { m_taskArn = std::move(value); } /** *

The updated task ARN value.

*/ inline void SetTaskArn(const char* value) { m_taskArn.assign(value); } /** *

The updated task ARN value.

*/ inline UpdateMaintenanceWindowTaskResult& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;} /** *

The updated task ARN value.

*/ inline UpdateMaintenanceWindowTaskResult& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;} /** *

The updated task ARN value.

*/ inline UpdateMaintenanceWindowTaskResult& WithTaskArn(const char* value) { SetTaskArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * service role to use to publish Amazon Simple Notification Service (Amazon SNS) * notifications for maintenance window Run Command tasks.

*/ inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; } /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * service role to use to publish Amazon Simple Notification Service (Amazon SNS) * notifications for maintenance window Run Command tasks.

*/ inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArn = value; } /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * service role to use to publish Amazon Simple Notification Service (Amazon SNS) * notifications for maintenance window Run Command tasks.

*/ inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * service role to use to publish Amazon Simple Notification Service (Amazon SNS) * notifications for maintenance window Run Command tasks.

*/ inline void SetServiceRoleArn(const char* value) { m_serviceRoleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * service role to use to publish Amazon Simple Notification Service (Amazon SNS) * notifications for maintenance window Run Command tasks.

*/ inline UpdateMaintenanceWindowTaskResult& WithServiceRoleArn(const Aws::String& value) { SetServiceRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * service role to use to publish Amazon Simple Notification Service (Amazon SNS) * notifications for maintenance window Run Command tasks.

*/ inline UpdateMaintenanceWindowTaskResult& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * service role to use to publish Amazon Simple Notification Service (Amazon SNS) * notifications for maintenance window Run Command tasks.

*/ inline UpdateMaintenanceWindowTaskResult& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;} /** *

The updated parameter values.

TaskParameters has * been deprecated. To specify parameters to pass to a task when it runs, instead * use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

*/ inline const Aws::Map& GetTaskParameters() const{ return m_taskParameters; } /** *

The updated parameter values.

TaskParameters has * been deprecated. To specify parameters to pass to a task when it runs, instead * use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

*/ inline void SetTaskParameters(const Aws::Map& value) { m_taskParameters = value; } /** *

The updated parameter values.

TaskParameters has * been deprecated. To specify parameters to pass to a task when it runs, instead * use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

*/ inline void SetTaskParameters(Aws::Map&& value) { m_taskParameters = std::move(value); } /** *

The updated parameter values.

TaskParameters has * been deprecated. To specify parameters to pass to a task when it runs, instead * use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

*/ inline UpdateMaintenanceWindowTaskResult& WithTaskParameters(const Aws::Map& value) { SetTaskParameters(value); return *this;} /** *

The updated parameter values.

TaskParameters has * been deprecated. To specify parameters to pass to a task when it runs, instead * use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

*/ inline UpdateMaintenanceWindowTaskResult& WithTaskParameters(Aws::Map&& value) { SetTaskParameters(std::move(value)); return *this;} /** *

The updated parameter values.

TaskParameters has * been deprecated. To specify parameters to pass to a task when it runs, instead * use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

*/ inline UpdateMaintenanceWindowTaskResult& AddTaskParameters(const Aws::String& key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParameters.emplace(key, value); return *this; } /** *

The updated parameter values.

TaskParameters has * been deprecated. To specify parameters to pass to a task when it runs, instead * use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

*/ inline UpdateMaintenanceWindowTaskResult& AddTaskParameters(Aws::String&& key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParameters.emplace(std::move(key), value); return *this; } /** *

The updated parameter values.

TaskParameters has * been deprecated. To specify parameters to pass to a task when it runs, instead * use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

*/ inline UpdateMaintenanceWindowTaskResult& AddTaskParameters(const Aws::String& key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParameters.emplace(key, std::move(value)); return *this; } /** *

The updated parameter values.

TaskParameters has * been deprecated. To specify parameters to pass to a task when it runs, instead * use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

*/ inline UpdateMaintenanceWindowTaskResult& AddTaskParameters(Aws::String&& key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

The updated parameter values.

TaskParameters has * been deprecated. To specify parameters to pass to a task when it runs, instead * use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

*/ inline UpdateMaintenanceWindowTaskResult& AddTaskParameters(const char* key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParameters.emplace(key, std::move(value)); return *this; } /** *

The updated parameter values.

TaskParameters has * been deprecated. To specify parameters to pass to a task when it runs, instead * use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

*/ inline UpdateMaintenanceWindowTaskResult& AddTaskParameters(const char* key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParameters.emplace(key, value); return *this; } /** *

The updated parameter values.

*/ inline const MaintenanceWindowTaskInvocationParameters& GetTaskInvocationParameters() const{ return m_taskInvocationParameters; } /** *

The updated parameter values.

*/ inline void SetTaskInvocationParameters(const MaintenanceWindowTaskInvocationParameters& value) { m_taskInvocationParameters = value; } /** *

The updated parameter values.

*/ inline void SetTaskInvocationParameters(MaintenanceWindowTaskInvocationParameters&& value) { m_taskInvocationParameters = std::move(value); } /** *

The updated parameter values.

*/ inline UpdateMaintenanceWindowTaskResult& WithTaskInvocationParameters(const MaintenanceWindowTaskInvocationParameters& value) { SetTaskInvocationParameters(value); return *this;} /** *

The updated parameter values.

*/ inline UpdateMaintenanceWindowTaskResult& WithTaskInvocationParameters(MaintenanceWindowTaskInvocationParameters&& value) { SetTaskInvocationParameters(std::move(value)); return *this;} /** *

The updated priority value.

*/ inline int GetPriority() const{ return m_priority; } /** *

The updated priority value.

*/ inline void SetPriority(int value) { m_priority = value; } /** *

The updated priority value.

*/ inline UpdateMaintenanceWindowTaskResult& WithPriority(int value) { SetPriority(value); return *this;} /** *

The updated MaxConcurrency value.

*/ inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; } /** *

The updated MaxConcurrency value.

*/ inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrency = value; } /** *

The updated MaxConcurrency value.

*/ inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrency = std::move(value); } /** *

The updated MaxConcurrency value.

*/ inline void SetMaxConcurrency(const char* value) { m_maxConcurrency.assign(value); } /** *

The updated MaxConcurrency value.

*/ inline UpdateMaintenanceWindowTaskResult& WithMaxConcurrency(const Aws::String& value) { SetMaxConcurrency(value); return *this;} /** *

The updated MaxConcurrency value.

*/ inline UpdateMaintenanceWindowTaskResult& WithMaxConcurrency(Aws::String&& value) { SetMaxConcurrency(std::move(value)); return *this;} /** *

The updated MaxConcurrency value.

*/ inline UpdateMaintenanceWindowTaskResult& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;} /** *

The updated MaxErrors value.

*/ inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; } /** *

The updated MaxErrors value.

*/ inline void SetMaxErrors(const Aws::String& value) { m_maxErrors = value; } /** *

The updated MaxErrors value.

*/ inline void SetMaxErrors(Aws::String&& value) { m_maxErrors = std::move(value); } /** *

The updated MaxErrors value.

*/ inline void SetMaxErrors(const char* value) { m_maxErrors.assign(value); } /** *

The updated MaxErrors value.

*/ inline UpdateMaintenanceWindowTaskResult& WithMaxErrors(const Aws::String& value) { SetMaxErrors(value); return *this;} /** *

The updated MaxErrors value.

*/ inline UpdateMaintenanceWindowTaskResult& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;} /** *

The updated MaxErrors value.

*/ inline UpdateMaintenanceWindowTaskResult& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;} /** *

The updated logging information in Amazon S3.

* LoggingInfo has been deprecated. To specify an Amazon Simple * Storage Service (Amazon S3) bucket to contain logs, instead use the * OutputS3BucketName and OutputS3KeyPrefix options in * the TaskInvocationParameters structure. For information about how * Amazon Web Services Systems Manager handles these options for the supported * maintenance window task types, see * MaintenanceWindowTaskInvocationParameters.

*/ inline const LoggingInfo& GetLoggingInfo() const{ return m_loggingInfo; } /** *

The updated logging information in Amazon S3.

* LoggingInfo has been deprecated. To specify an Amazon Simple * Storage Service (Amazon S3) bucket to contain logs, instead use the * OutputS3BucketName and OutputS3KeyPrefix options in * the TaskInvocationParameters structure. For information about how * Amazon Web Services Systems Manager handles these options for the supported * maintenance window task types, see * MaintenanceWindowTaskInvocationParameters.

*/ inline void SetLoggingInfo(const LoggingInfo& value) { m_loggingInfo = value; } /** *

The updated logging information in Amazon S3.

* LoggingInfo has been deprecated. To specify an Amazon Simple * Storage Service (Amazon S3) bucket to contain logs, instead use the * OutputS3BucketName and OutputS3KeyPrefix options in * the TaskInvocationParameters structure. For information about how * Amazon Web Services Systems Manager handles these options for the supported * maintenance window task types, see * MaintenanceWindowTaskInvocationParameters.

*/ inline void SetLoggingInfo(LoggingInfo&& value) { m_loggingInfo = std::move(value); } /** *

The updated logging information in Amazon S3.

* LoggingInfo has been deprecated. To specify an Amazon Simple * Storage Service (Amazon S3) bucket to contain logs, instead use the * OutputS3BucketName and OutputS3KeyPrefix options in * the TaskInvocationParameters structure. For information about how * Amazon Web Services Systems Manager handles these options for the supported * maintenance window task types, see * MaintenanceWindowTaskInvocationParameters.

*/ inline UpdateMaintenanceWindowTaskResult& WithLoggingInfo(const LoggingInfo& value) { SetLoggingInfo(value); return *this;} /** *

The updated logging information in Amazon S3.

* LoggingInfo has been deprecated. To specify an Amazon Simple * Storage Service (Amazon S3) bucket to contain logs, instead use the * OutputS3BucketName and OutputS3KeyPrefix options in * the TaskInvocationParameters structure. For information about how * Amazon Web Services Systems Manager handles these options for the supported * maintenance window task types, see * MaintenanceWindowTaskInvocationParameters.

*/ inline UpdateMaintenanceWindowTaskResult& WithLoggingInfo(LoggingInfo&& value) { SetLoggingInfo(std::move(value)); return *this;} /** *

The updated task name.

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

The updated task name.

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

The updated task name.

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

The updated task name.

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

The updated task name.

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

The updated task name.

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

The updated task name.

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

The updated task description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The updated task description.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The updated task description.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The updated task description.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The updated task description.

*/ inline UpdateMaintenanceWindowTaskResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The updated task description.

*/ inline UpdateMaintenanceWindowTaskResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The updated task description.

*/ inline UpdateMaintenanceWindowTaskResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The specification for whether tasks should continue to run after the cutoff * time specified in the maintenance windows is reached.

*/ inline const MaintenanceWindowTaskCutoffBehavior& GetCutoffBehavior() const{ return m_cutoffBehavior; } /** *

The specification for whether tasks should continue to run after the cutoff * time specified in the maintenance windows is reached.

*/ inline void SetCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior& value) { m_cutoffBehavior = value; } /** *

The specification for whether tasks should continue to run after the cutoff * time specified in the maintenance windows is reached.

*/ inline void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior&& value) { m_cutoffBehavior = std::move(value); } /** *

The specification for whether tasks should continue to run after the cutoff * time specified in the maintenance windows is reached.

*/ inline UpdateMaintenanceWindowTaskResult& WithCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior& value) { SetCutoffBehavior(value); return *this;} /** *

The specification for whether tasks should continue to run after the cutoff * time specified in the maintenance windows is reached.

*/ inline UpdateMaintenanceWindowTaskResult& WithCutoffBehavior(MaintenanceWindowTaskCutoffBehavior&& value) { SetCutoffBehavior(std::move(value)); return *this;} /** *

The details for the CloudWatch alarm you applied to your maintenance window * task.

*/ inline const AlarmConfiguration& GetAlarmConfiguration() const{ return m_alarmConfiguration; } /** *

The details for the CloudWatch alarm you applied to your maintenance window * task.

*/ inline void SetAlarmConfiguration(const AlarmConfiguration& value) { m_alarmConfiguration = value; } /** *

The details for the CloudWatch alarm you applied to your maintenance window * task.

*/ inline void SetAlarmConfiguration(AlarmConfiguration&& value) { m_alarmConfiguration = std::move(value); } /** *

The details for the CloudWatch alarm you applied to your maintenance window * task.

*/ inline UpdateMaintenanceWindowTaskResult& WithAlarmConfiguration(const AlarmConfiguration& value) { SetAlarmConfiguration(value); return *this;} /** *

The details for the CloudWatch alarm you applied to your maintenance window * task.

*/ inline UpdateMaintenanceWindowTaskResult& WithAlarmConfiguration(AlarmConfiguration&& value) { SetAlarmConfiguration(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateMaintenanceWindowTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateMaintenanceWindowTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateMaintenanceWindowTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_windowId; Aws::String m_windowTaskId; Aws::Vector m_targets; Aws::String m_taskArn; Aws::String m_serviceRoleArn; Aws::Map m_taskParameters; MaintenanceWindowTaskInvocationParameters m_taskInvocationParameters; int m_priority; Aws::String m_maxConcurrency; Aws::String m_maxErrors; LoggingInfo m_loggingInfo; Aws::String m_name; Aws::String m_description; MaintenanceWindowTaskCutoffBehavior m_cutoffBehavior; AlarmConfiguration m_alarmConfiguration; Aws::String m_requestId; }; } // namespace Model } // namespace SSM } // namespace Aws