/* * 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; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about an Automation runbook used in a runbook workflow in Change Manager. *
** The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change * request have been received. *
** The name of the Automation runbook used in a runbook workflow. *
*/ private String documentName; /** ** The version of the Automation runbook used in a runbook workflow. *
*/ private String documentVersion; /** *
* The key-value map of execution parameters, which were supplied when calling
* StartChangeRequestExecution
.
*
* The name of the parameter used as the target resource for the rate-controlled runbook workflow. Required if you
* specify Targets
.
*
* A key-value mapping to target resources that the runbook operation performs tasks on. Required if you specify
* TargetParameterName
.
*
* A key-value mapping of runbook parameters to target resources. Both Targets and TargetMaps can't be specified * together. *
*/ private com.amazonaws.internal.SdkInternalList
* The MaxConcurrency
value specified by the user when the operation started, indicating the maximum
* number of resources that the runbook operation can run on at the same time.
*
* The MaxErrors
value specified by the user when the execution started, indicating the maximum number
* of errors that can occur during the operation before the updates are stopped or rolled back.
*
* Information about the Amazon Web Services Regions and Amazon Web Services accounts targeted by the current * Runbook operation. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the Automation runbook used in a runbook workflow. *
* * @param documentName * The name of the Automation runbook used in a runbook workflow. */ public void setDocumentName(String documentName) { this.documentName = documentName; } /** ** The name of the Automation runbook used in a runbook workflow. *
* * @return The name of the Automation runbook used in a runbook workflow. */ public String getDocumentName() { return this.documentName; } /** ** The name of the Automation runbook used in a runbook workflow. *
* * @param documentName * The name of the Automation runbook used in a runbook workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public Runbook withDocumentName(String documentName) { setDocumentName(documentName); return this; } /** ** The version of the Automation runbook used in a runbook workflow. *
* * @param documentVersion * The version of the Automation runbook used in a runbook workflow. */ public void setDocumentVersion(String documentVersion) { this.documentVersion = documentVersion; } /** ** The version of the Automation runbook used in a runbook workflow. *
* * @return The version of the Automation runbook used in a runbook workflow. */ public String getDocumentVersion() { return this.documentVersion; } /** ** The version of the Automation runbook used in a runbook workflow. *
* * @param documentVersion * The version of the Automation runbook used in a runbook workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public Runbook withDocumentVersion(String documentVersion) { setDocumentVersion(documentVersion); return this; } /** *
* The key-value map of execution parameters, which were supplied when calling
* StartChangeRequestExecution
.
*
StartChangeRequestExecution
.
*/
public java.util.Map
* The key-value map of execution parameters, which were supplied when calling
* StartChangeRequestExecution
.
*
StartChangeRequestExecution
.
*/
public void setParameters(java.util.Map
* The key-value map of execution parameters, which were supplied when calling
* StartChangeRequestExecution
.
*
StartChangeRequestExecution
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Runbook withParameters(java.util.Map
* The name of the parameter used as the target resource for the rate-controlled runbook workflow. Required if you
* specify Targets
.
*
Targets
.
*/
public void setTargetParameterName(String targetParameterName) {
this.targetParameterName = targetParameterName;
}
/**
*
* The name of the parameter used as the target resource for the rate-controlled runbook workflow. Required if you
* specify Targets
.
*
Targets
.
*/
public String getTargetParameterName() {
return this.targetParameterName;
}
/**
*
* The name of the parameter used as the target resource for the rate-controlled runbook workflow. Required if you
* specify Targets
.
*
Targets
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Runbook withTargetParameterName(String targetParameterName) {
setTargetParameterName(targetParameterName);
return this;
}
/**
*
* A key-value mapping to target resources that the runbook operation performs tasks on. Required if you specify
* TargetParameterName
.
*
TargetParameterName
.
*/
public java.util.List
* A key-value mapping to target resources that the runbook operation performs tasks on. Required if you specify
* TargetParameterName
.
*
TargetParameterName
.
*/
public void setTargets(java.util.Collection
* A key-value mapping to target resources that the runbook operation performs tasks on. Required if you specify
* TargetParameterName
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTargets(java.util.Collection)} or {@link #withTargets(java.util.Collection)} if you want to override * the existing values. *
* * @param targets * A key-value mapping to target resources that the runbook operation performs tasks on. Required if you * specifyTargetParameterName
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Runbook withTargets(Target... targets) {
if (this.targets == null) {
setTargets(new com.amazonaws.internal.SdkInternalList
* A key-value mapping to target resources that the runbook operation performs tasks on. Required if you specify
* TargetParameterName
.
*
TargetParameterName
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Runbook withTargets(java.util.Collection* A key-value mapping of runbook parameters to target resources. Both Targets and TargetMaps can't be specified * together. *
* * @return A key-value mapping of runbook parameters to target resources. Both Targets and TargetMaps can't be * specified together. */ public java.util.List* A key-value mapping of runbook parameters to target resources. Both Targets and TargetMaps can't be specified * together. *
* * @param targetMaps * A key-value mapping of runbook parameters to target resources. Both Targets and TargetMaps can't be * specified together. */ public void setTargetMaps(java.util.Collection* A key-value mapping of runbook parameters to target resources. Both Targets and TargetMaps can't be specified * together. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTargetMaps(java.util.Collection)} or {@link #withTargetMaps(java.util.Collection)} if you want to * override the existing values. *
* * @param targetMaps * A key-value mapping of runbook parameters to target resources. Both Targets and TargetMaps can't be * specified together. * @return Returns a reference to this object so that method calls can be chained together. */ public Runbook withTargetMaps(java.util.Map* A key-value mapping of runbook parameters to target resources. Both Targets and TargetMaps can't be specified * together. *
* * @param targetMaps * A key-value mapping of runbook parameters to target resources. Both Targets and TargetMaps can't be * specified together. * @return Returns a reference to this object so that method calls can be chained together. */ public Runbook withTargetMaps(java.util.Collection
* The MaxConcurrency
value specified by the user when the operation started, indicating the maximum
* number of resources that the runbook operation can run on at the same time.
*
MaxConcurrency
value specified by the user when the operation started, indicating the
* maximum number of resources that the runbook operation can run on at the same time.
*/
public void setMaxConcurrency(String maxConcurrency) {
this.maxConcurrency = maxConcurrency;
}
/**
*
* The MaxConcurrency
value specified by the user when the operation started, indicating the maximum
* number of resources that the runbook operation can run on at the same time.
*
MaxConcurrency
value specified by the user when the operation started, indicating the
* maximum number of resources that the runbook operation can run on at the same time.
*/
public String getMaxConcurrency() {
return this.maxConcurrency;
}
/**
*
* The MaxConcurrency
value specified by the user when the operation started, indicating the maximum
* number of resources that the runbook operation can run on at the same time.
*
MaxConcurrency
value specified by the user when the operation started, indicating the
* maximum number of resources that the runbook operation can run on at the same time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Runbook withMaxConcurrency(String maxConcurrency) {
setMaxConcurrency(maxConcurrency);
return this;
}
/**
*
* The MaxErrors
value specified by the user when the execution started, indicating the maximum number
* of errors that can occur during the operation before the updates are stopped or rolled back.
*
MaxErrors
value specified by the user when the execution started, indicating the maximum
* number of errors that can occur during the operation before the updates are stopped or rolled back.
*/
public void setMaxErrors(String maxErrors) {
this.maxErrors = maxErrors;
}
/**
*
* The MaxErrors
value specified by the user when the execution started, indicating the maximum number
* of errors that can occur during the operation before the updates are stopped or rolled back.
*
MaxErrors
value specified by the user when the execution started, indicating the maximum
* number of errors that can occur during the operation before the updates are stopped or rolled back.
*/
public String getMaxErrors() {
return this.maxErrors;
}
/**
*
* The MaxErrors
value specified by the user when the execution started, indicating the maximum number
* of errors that can occur during the operation before the updates are stopped or rolled back.
*
MaxErrors
value specified by the user when the execution started, indicating the maximum
* number of errors that can occur during the operation before the updates are stopped or rolled back.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Runbook withMaxErrors(String maxErrors) {
setMaxErrors(maxErrors);
return this;
}
/**
* * Information about the Amazon Web Services Regions and Amazon Web Services accounts targeted by the current * Runbook operation. *
* * @return Information about the Amazon Web Services Regions and Amazon Web Services accounts targeted by the * current Runbook operation. */ public java.util.List* Information about the Amazon Web Services Regions and Amazon Web Services accounts targeted by the current * Runbook operation. *
* * @param targetLocations * Information about the Amazon Web Services Regions and Amazon Web Services accounts targeted by the current * Runbook operation. */ public void setTargetLocations(java.util.Collection* Information about the Amazon Web Services Regions and Amazon Web Services accounts targeted by the current * Runbook operation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTargetLocations(java.util.Collection)} or {@link #withTargetLocations(java.util.Collection)} if you * want to override the existing values. *
* * @param targetLocations * Information about the Amazon Web Services Regions and Amazon Web Services accounts targeted by the current * Runbook operation. * @return Returns a reference to this object so that method calls can be chained together. */ public Runbook withTargetLocations(TargetLocation... targetLocations) { if (this.targetLocations == null) { setTargetLocations(new com.amazonaws.internal.SdkInternalList* Information about the Amazon Web Services Regions and Amazon Web Services accounts targeted by the current * Runbook operation. *
* * @param targetLocations * Information about the Amazon Web Services Regions and Amazon Web Services accounts targeted by the current * Runbook operation. * @return Returns a reference to this object so that method calls can be chained together. */ public Runbook withTargetLocations(java.util.Collection