/*
* 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.simplesystemsmanagement.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetMaintenanceWindowExecutionTaskResult extends com.amazonaws.AmazonWebServiceResult
* The ID of the maintenance window execution that includes the task.
*
* The ID of the specific task execution in the maintenance window task that was retrieved.
*
* The Amazon Resource Name (ARN) of the task that ran.
*
* The role that was assumed when running the task.
*
* The type of task that was run.
*
* The parameters passed to the task when it was run.
*
*
* The map has the following format:
*
*
*
* The priority of the task.
*
* The defined maximum number of task executions that could be run in parallel.
*
* The defined maximum number of task execution errors allowed before scheduling of the task execution would have
* been stopped.
*
* The status of the task.
*
* The details explaining the status. Not available for all status values.
*
* The time the task execution started.
*
* The time the task execution completed.
*
* The details for the CloudWatch alarm you applied to your maintenance window task.
*
* The CloudWatch alarms that were invoked by the maintenance window task.
*
* The ID of the maintenance window execution that includes the task.
*
* The ID of the maintenance window execution that includes the task.
*
* The ID of the maintenance window execution that includes the task.
*
* The ID of the specific task execution in the maintenance window task that was retrieved.
*
* The ID of the specific task execution in the maintenance window task that was retrieved.
*
* The ID of the specific task execution in the maintenance window task that was retrieved.
*
* The Amazon Resource Name (ARN) of the task that ran.
*
* The Amazon Resource Name (ARN) of the task that ran.
*
* The Amazon Resource Name (ARN) of the task that ran.
*
* The role that was assumed when running the task.
*
* The role that was assumed when running the task.
*
* The role that was assumed when running the task.
*
* The type of task that was run.
*
* The type of task that was run.
*
* The type of task that was run.
*
* The type of task that was run.
*
* The type of task that was run.
*
* The parameters passed to the task when it was run.
*
*
* The map has the following format:
*
*
* 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.
*
*
*/
private com.amazonaws.internal.SdkInternalListKey
: string, between 1 and 255 characters
* Value
: an array of strings, each between 1 and 255 characters
* 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.
*
*
*
* @return The parameters passed to the task when it was run.Key
: string, between 1 and 255 characters
* Value
: an array of strings, each between 1 and 255 characters
*
* 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.
*
* The map has the following format: *
*
* Key
: string, between 1 and 255 characters
*
* Value
: an array of strings, each between 1 and 255 characters
*
* The parameters passed to the task when it was run. *
*
* 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.
*
* The map has the following format: *
*
* Key
: string, between 1 and 255 characters
*
* Value
: an array of strings, each between 1 and 255 characters
*
* 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.
*
* The map has the following format: *
*
* Key
: string, between 1 and 255 characters
*
* Value
: an array of strings, each between 1 and 255 characters
*
* The parameters passed to the task when it was run. *
*
* 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.
*
* The map has the following format: *
*
* Key
: string, between 1 and 255 characters
*
* Value
: an array of strings, each between 1 and 255 characters
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTaskParameters(java.util.Collection)} or {@link #withTaskParameters(java.util.Collection)} if you want * to override the existing values. *
* * @param taskParameters * The parameters passed to the task when it was run.
* 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.
*
* The map has the following format: *
*
* Key
: string, between 1 and 255 characters
*
* Value
: an array of strings, each between 1 and 255 characters
*
* The parameters passed to the task when it was run. *
*
* 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.
*
* The map has the following format: *
*
* Key
: string, between 1 and 255 characters
*
* Value
: an array of strings, each between 1 and 255 characters
*
* 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.
*
* The map has the following format: *
*
* Key
: string, between 1 and 255 characters
*
* Value
: an array of strings, each between 1 and 255 characters
*
* The priority of the task. *
* * @param priority * The priority of the task. */ public void setPriority(Integer priority) { this.priority = priority; } /** ** The priority of the task. *
* * @return The priority of the task. */ public Integer getPriority() { return this.priority; } /** ** The priority of the task. *
* * @param priority * The priority of the task. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMaintenanceWindowExecutionTaskResult withPriority(Integer priority) { setPriority(priority); return this; } /** ** The defined maximum number of task executions that could be run in parallel. *
* * @param maxConcurrency * The defined maximum number of task executions that could be run in parallel. */ public void setMaxConcurrency(String maxConcurrency) { this.maxConcurrency = maxConcurrency; } /** ** The defined maximum number of task executions that could be run in parallel. *
* * @return The defined maximum number of task executions that could be run in parallel. */ public String getMaxConcurrency() { return this.maxConcurrency; } /** ** The defined maximum number of task executions that could be run in parallel. *
* * @param maxConcurrency * The defined maximum number of task executions that could be run in parallel. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMaintenanceWindowExecutionTaskResult withMaxConcurrency(String maxConcurrency) { setMaxConcurrency(maxConcurrency); return this; } /** ** The defined maximum number of task execution errors allowed before scheduling of the task execution would have * been stopped. *
* * @param maxErrors * The defined maximum number of task execution errors allowed before scheduling of the task execution would * have been stopped. */ public void setMaxErrors(String maxErrors) { this.maxErrors = maxErrors; } /** ** The defined maximum number of task execution errors allowed before scheduling of the task execution would have * been stopped. *
* * @return The defined maximum number of task execution errors allowed before scheduling of the task execution would * have been stopped. */ public String getMaxErrors() { return this.maxErrors; } /** ** The defined maximum number of task execution errors allowed before scheduling of the task execution would have * been stopped. *
* * @param maxErrors * The defined maximum number of task execution errors allowed before scheduling of the task execution would * have been stopped. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMaintenanceWindowExecutionTaskResult withMaxErrors(String maxErrors) { setMaxErrors(maxErrors); return this; } /** ** The status of the task. *
* * @param status * The status of the task. * @see MaintenanceWindowExecutionStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the task. *
* * @return The status of the task. * @see MaintenanceWindowExecutionStatus */ public String getStatus() { return this.status; } /** ** The status of the task. *
* * @param status * The status of the task. * @return Returns a reference to this object so that method calls can be chained together. * @see MaintenanceWindowExecutionStatus */ public GetMaintenanceWindowExecutionTaskResult withStatus(String status) { setStatus(status); return this; } /** ** The status of the task. *
* * @param status * The status of the task. * @see MaintenanceWindowExecutionStatus */ public void setStatus(MaintenanceWindowExecutionStatus status) { withStatus(status); } /** ** The status of the task. *
* * @param status * The status of the task. * @return Returns a reference to this object so that method calls can be chained together. * @see MaintenanceWindowExecutionStatus */ public GetMaintenanceWindowExecutionTaskResult withStatus(MaintenanceWindowExecutionStatus status) { this.status = status.toString(); return this; } /** ** The details explaining the status. Not available for all status values. *
* * @param statusDetails * The details explaining the status. Not available for all status values. */ public void setStatusDetails(String statusDetails) { this.statusDetails = statusDetails; } /** ** The details explaining the status. Not available for all status values. *
* * @return The details explaining the status. Not available for all status values. */ public String getStatusDetails() { return this.statusDetails; } /** ** The details explaining the status. Not available for all status values. *
* * @param statusDetails * The details explaining the status. Not available for all status values. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMaintenanceWindowExecutionTaskResult withStatusDetails(String statusDetails) { setStatusDetails(statusDetails); return this; } /** ** The time the task execution started. *
* * @param startTime * The time the task execution started. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** The time the task execution started. *
* * @return The time the task execution started. */ public java.util.Date getStartTime() { return this.startTime; } /** ** The time the task execution started. *
* * @param startTime * The time the task execution started. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMaintenanceWindowExecutionTaskResult withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** The time the task execution completed. *
* * @param endTime * The time the task execution completed. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** ** The time the task execution completed. *
* * @return The time the task execution completed. */ public java.util.Date getEndTime() { return this.endTime; } /** ** The time the task execution completed. *
* * @param endTime * The time the task execution completed. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMaintenanceWindowExecutionTaskResult withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** ** The details for the CloudWatch alarm you applied to your maintenance window task. *
* * @param alarmConfiguration * The details for the CloudWatch alarm you applied to your maintenance window task. */ public void setAlarmConfiguration(AlarmConfiguration alarmConfiguration) { this.alarmConfiguration = alarmConfiguration; } /** ** The details for the CloudWatch alarm you applied to your maintenance window task. *
* * @return The details for the CloudWatch alarm you applied to your maintenance window task. */ public AlarmConfiguration getAlarmConfiguration() { return this.alarmConfiguration; } /** ** The details for the CloudWatch alarm you applied to your maintenance window task. *
* * @param alarmConfiguration * The details for the CloudWatch alarm you applied to your maintenance window task. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMaintenanceWindowExecutionTaskResult withAlarmConfiguration(AlarmConfiguration alarmConfiguration) { setAlarmConfiguration(alarmConfiguration); return this; } /** ** The CloudWatch alarms that were invoked by the maintenance window task. *
* * @return The CloudWatch alarms that were invoked by the maintenance window task. */ public java.util.List* The CloudWatch alarms that were invoked by the maintenance window task. *
* * @param triggeredAlarms * The CloudWatch alarms that were invoked by the maintenance window task. */ public void setTriggeredAlarms(java.util.Collection* The CloudWatch alarms that were invoked by the maintenance window task. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTriggeredAlarms(java.util.Collection)} or {@link #withTriggeredAlarms(java.util.Collection)} if you * want to override the existing values. *
* * @param triggeredAlarms * The CloudWatch alarms that were invoked by the maintenance window task. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMaintenanceWindowExecutionTaskResult withTriggeredAlarms(AlarmStateInformation... triggeredAlarms) { if (this.triggeredAlarms == null) { setTriggeredAlarms(new com.amazonaws.internal.SdkInternalList* The CloudWatch alarms that were invoked by the maintenance window task. *
* * @param triggeredAlarms * The CloudWatch alarms that were invoked by the maintenance window task. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMaintenanceWindowExecutionTaskResult withTriggeredAlarms(java.util.Collection