All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.autoscaling.model.CreateOrUpdateScalingTriggerRequest Maven / Gradle / Ivy

/*
 * Copyright 2010-2011 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.autoscaling.model;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * Container for the parameters to the {@link com.amazonaws.services.autoscaling.AmazonAutoScaling#createOrUpdateScalingTrigger(CreateOrUpdateScalingTriggerRequest) CreateOrUpdateScalingTrigger operation}.
 * 

* Sets the parameters that govern how and when to scale an AutoScaling * group. *

* * @see com.amazonaws.services.autoscaling.AmazonAutoScaling#createOrUpdateScalingTrigger(CreateOrUpdateScalingTriggerRequest) */ public class CreateOrUpdateScalingTriggerRequest extends AmazonWebServiceRequest { /** * The name for the trigger. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String triggerName; /** * The name of the AutoScalingGroup to be associated with the * trigger. *

* Constraints:
* Length: 1 - 100
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String autoScalingGroupName; /** * The measure name associated with the metric used by the trigger to * determine when to fire. For more information, please see Amazon CloudWatch product * documentation. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String measureName; /** * The statistic that the trigger when fetching metrics to examine. *

* Constraints:
* Pattern: (Average|Sum|Minimum|Maximum)
*/ private String statistic; /** * A list of dimensions associated with the metric used by the trigger to * determine whether to fire. For more information, please see Amazon CloudWatch product * documentation. *

* Constraints:
* Length: 1 -
*/ private java.util.List dimensions; /** * The period, in seconds, associated witht he metric statistics. */ private Integer period; /** * *

* Constraints:
* Pattern: (Seconds|Bytes|Bits|Percent|Count|Bytes/Second|Bits/Second|Count/Second|None)
*/ private String unit; /** * The standard unit of measurement for a given measure that the trigger * uses when fetching metrics to examine. *

* Constraints:
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String customUnit; /** * *

* Constraints:
* Length: 1 - 100
* Pattern: [\u0020-\u0039\u003b-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String namespace; /** * The lower limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. */ private Double lowerThreshold; /** * The incremental amount to use when performing scaling activities after * the lower threshold has been breached. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String lowerBreachScaleIncrement; /** * The upper limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. */ private Double upperThreshold; /** * The incremental amount to use when performing scaling activities after * the upper threshold has been breached. If only a positive or * negative number is specified, then the AutoScaling group will increase * or decrease by the specified number of actual instances. If positive * or negative number followed by a percent sign is specified, the * AutoScaling group will increase or decrease as a percentage. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String upperBreachScaleIncrement; /** * The amount of time, in seconds, used to evaluate and determine if a * breach is occurring. The service will look at data between the current * time and the number of seconds specified in this parameter to see if a * breach has occurred. *

* Constraints:
* Range: 120 - 86400
*/ private Integer breachDuration; /** * The name for the trigger. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The name for the trigger. */ public String getTriggerName() { return triggerName; } /** * The name for the trigger. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param triggerName The name for the trigger. */ public void setTriggerName(String triggerName) { this.triggerName = triggerName; } /** * The name for the trigger. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param triggerName The name for the trigger. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withTriggerName(String triggerName) { this.triggerName = triggerName; return this; } /** * The name of the AutoScalingGroup to be associated with the * trigger. *

* Constraints:
* Length: 1 - 100
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The name of the AutoScalingGroup to be associated with the * trigger. */ public String getAutoScalingGroupName() { return autoScalingGroupName; } /** * The name of the AutoScalingGroup to be associated with the * trigger. *

* Constraints:
* Length: 1 - 100
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param autoScalingGroupName The name of the AutoScalingGroup to be associated with the * trigger. */ public void setAutoScalingGroupName(String autoScalingGroupName) { this.autoScalingGroupName = autoScalingGroupName; } /** * The name of the AutoScalingGroup to be associated with the * trigger. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 100
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param autoScalingGroupName The name of the AutoScalingGroup to be associated with the * trigger. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withAutoScalingGroupName(String autoScalingGroupName) { this.autoScalingGroupName = autoScalingGroupName; return this; } /** * The measure name associated with the metric used by the trigger to * determine when to fire. For more information, please see Amazon CloudWatch product * documentation. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The measure name associated with the metric used by the trigger to * determine when to fire. For more information, please see Amazon CloudWatch product * documentation. */ public String getMeasureName() { return measureName; } /** * The measure name associated with the metric used by the trigger to * determine when to fire. For more information, please see Amazon CloudWatch product * documentation. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param measureName The measure name associated with the metric used by the trigger to * determine when to fire. For more information, please see Amazon CloudWatch product * documentation. */ public void setMeasureName(String measureName) { this.measureName = measureName; } /** * The measure name associated with the metric used by the trigger to * determine when to fire. For more information, please see Amazon CloudWatch product * documentation. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param measureName The measure name associated with the metric used by the trigger to * determine when to fire. For more information, please see Amazon CloudWatch product * documentation. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withMeasureName(String measureName) { this.measureName = measureName; return this; } /** * The statistic that the trigger when fetching metrics to examine. *

* Constraints:
* Pattern: (Average|Sum|Minimum|Maximum)
* * @return The statistic that the trigger when fetching metrics to examine. */ public String getStatistic() { return statistic; } /** * The statistic that the trigger when fetching metrics to examine. *

* Constraints:
* Pattern: (Average|Sum|Minimum|Maximum)
* * @param statistic The statistic that the trigger when fetching metrics to examine. */ public void setStatistic(String statistic) { this.statistic = statistic; } /** * The statistic that the trigger when fetching metrics to examine. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Pattern: (Average|Sum|Minimum|Maximum)
* * @param statistic The statistic that the trigger when fetching metrics to examine. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withStatistic(String statistic) { this.statistic = statistic; return this; } /** * A list of dimensions associated with the metric used by the trigger to * determine whether to fire. For more information, please see Amazon CloudWatch product * documentation. *

* Constraints:
* Length: 1 -
* * @return A list of dimensions associated with the metric used by the trigger to * determine whether to fire. For more information, please see Amazon CloudWatch product * documentation. */ public java.util.List getDimensions() { if (dimensions == null) { dimensions = new java.util.ArrayList(); } return dimensions; } /** * A list of dimensions associated with the metric used by the trigger to * determine whether to fire. For more information, please see Amazon CloudWatch product * documentation. *

* Constraints:
* Length: 1 -
* * @param dimensions A list of dimensions associated with the metric used by the trigger to * determine whether to fire. For more information, please see Amazon CloudWatch product * documentation. */ public void setDimensions(java.util.Collection dimensions) { java.util.List dimensionsCopy = new java.util.ArrayList(); if (dimensions != null) { dimensionsCopy.addAll(dimensions); } this.dimensions = dimensionsCopy; } /** * A list of dimensions associated with the metric used by the trigger to * determine whether to fire. For more information, please see Amazon CloudWatch product * documentation. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 -
* * @param dimensions A list of dimensions associated with the metric used by the trigger to * determine whether to fire. For more information, please see Amazon CloudWatch product * documentation. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withDimensions(Dimension... dimensions) { for (Dimension value : dimensions) { getDimensions().add(value); } return this; } /** * A list of dimensions associated with the metric used by the trigger to * determine whether to fire. For more information, please see Amazon CloudWatch product * documentation. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 -
* * @param dimensions A list of dimensions associated with the metric used by the trigger to * determine whether to fire. For more information, please see Amazon CloudWatch product * documentation. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withDimensions(java.util.Collection dimensions) { java.util.List dimensionsCopy = new java.util.ArrayList(); if (dimensions != null) { dimensionsCopy.addAll(dimensions); } this.dimensions = dimensionsCopy; return this; } /** * The period, in seconds, associated witht he metric statistics. * * @return The period, in seconds, associated witht he metric statistics. */ public Integer getPeriod() { return period; } /** * The period, in seconds, associated witht he metric statistics. * * @param period The period, in seconds, associated witht he metric statistics. */ public void setPeriod(Integer period) { this.period = period; } /** * The period, in seconds, associated witht he metric statistics. *

* Returns a reference to this object so that method calls can be chained together. * * @param period The period, in seconds, associated witht he metric statistics. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withPeriod(Integer period) { this.period = period; return this; } /** * *

* Constraints:
* Pattern: (Seconds|Bytes|Bits|Percent|Count|Bytes/Second|Bits/Second|Count/Second|None)
* * @return */ public String getUnit() { return unit; } /** * *

* Constraints:
* Pattern: (Seconds|Bytes|Bits|Percent|Count|Bytes/Second|Bits/Second|Count/Second|None)
* * @param unit */ public void setUnit(String unit) { this.unit = unit; } /** * *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Pattern: (Seconds|Bytes|Bits|Percent|Count|Bytes/Second|Bits/Second|Count/Second|None)
* * @param unit * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withUnit(String unit) { this.unit = unit; return this; } /** * The standard unit of measurement for a given measure that the trigger * uses when fetching metrics to examine. *

* Constraints:
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The standard unit of measurement for a given measure that the trigger * uses when fetching metrics to examine. */ public String getCustomUnit() { return customUnit; } /** * The standard unit of measurement for a given measure that the trigger * uses when fetching metrics to examine. *

* Constraints:
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param customUnit The standard unit of measurement for a given measure that the trigger * uses when fetching metrics to examine. */ public void setCustomUnit(String customUnit) { this.customUnit = customUnit; } /** * The standard unit of measurement for a given measure that the trigger * uses when fetching metrics to examine. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param customUnit The standard unit of measurement for a given measure that the trigger * uses when fetching metrics to examine. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withCustomUnit(String customUnit) { this.customUnit = customUnit; return this; } /** * *

* Constraints:
* Length: 1 - 100
* Pattern: [\u0020-\u0039\u003b-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return */ public String getNamespace() { return namespace; } /** * *

* Constraints:
* Length: 1 - 100
* Pattern: [\u0020-\u0039\u003b-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param namespace */ public void setNamespace(String namespace) { this.namespace = namespace; } /** * *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 100
* Pattern: [\u0020-\u0039\u003b-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param namespace * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withNamespace(String namespace) { this.namespace = namespace; return this; } /** * The lower limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. * * @return The lower limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. */ public Double getLowerThreshold() { return lowerThreshold; } /** * The lower limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. * * @param lowerThreshold The lower limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. */ public void setLowerThreshold(Double lowerThreshold) { this.lowerThreshold = lowerThreshold; } /** * The lower limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. *

* Returns a reference to this object so that method calls can be chained together. * * @param lowerThreshold The lower limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withLowerThreshold(Double lowerThreshold) { this.lowerThreshold = lowerThreshold; return this; } /** * The incremental amount to use when performing scaling activities after * the lower threshold has been breached. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The incremental amount to use when performing scaling activities after * the lower threshold has been breached. */ public String getLowerBreachScaleIncrement() { return lowerBreachScaleIncrement; } /** * The incremental amount to use when performing scaling activities after * the lower threshold has been breached. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param lowerBreachScaleIncrement The incremental amount to use when performing scaling activities after * the lower threshold has been breached. */ public void setLowerBreachScaleIncrement(String lowerBreachScaleIncrement) { this.lowerBreachScaleIncrement = lowerBreachScaleIncrement; } /** * The incremental amount to use when performing scaling activities after * the lower threshold has been breached. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param lowerBreachScaleIncrement The incremental amount to use when performing scaling activities after * the lower threshold has been breached. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withLowerBreachScaleIncrement(String lowerBreachScaleIncrement) { this.lowerBreachScaleIncrement = lowerBreachScaleIncrement; return this; } /** * The upper limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. * * @return The upper limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. */ public Double getUpperThreshold() { return upperThreshold; } /** * The upper limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. * * @param upperThreshold The upper limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. */ public void setUpperThreshold(Double upperThreshold) { this.upperThreshold = upperThreshold; } /** * The upper limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. *

* Returns a reference to this object so that method calls can be chained together. * * @param upperThreshold The upper limit for the metric. If all data points in the last * BreachDuration seconds fall below the lower threshold or exceed the * upper threshold, the trigger activates. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withUpperThreshold(Double upperThreshold) { this.upperThreshold = upperThreshold; return this; } /** * The incremental amount to use when performing scaling activities after * the upper threshold has been breached. If only a positive or * negative number is specified, then the AutoScaling group will increase * or decrease by the specified number of actual instances. If positive * or negative number followed by a percent sign is specified, the * AutoScaling group will increase or decrease as a percentage. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The incremental amount to use when performing scaling activities after * the upper threshold has been breached. If only a positive or * negative number is specified, then the AutoScaling group will increase * or decrease by the specified number of actual instances. If positive * or negative number followed by a percent sign is specified, the * AutoScaling group will increase or decrease as a percentage. */ public String getUpperBreachScaleIncrement() { return upperBreachScaleIncrement; } /** * The incremental amount to use when performing scaling activities after * the upper threshold has been breached. If only a positive or * negative number is specified, then the AutoScaling group will increase * or decrease by the specified number of actual instances. If positive * or negative number followed by a percent sign is specified, the * AutoScaling group will increase or decrease as a percentage. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param upperBreachScaleIncrement The incremental amount to use when performing scaling activities after * the upper threshold has been breached. If only a positive or * negative number is specified, then the AutoScaling group will increase * or decrease by the specified number of actual instances. If positive * or negative number followed by a percent sign is specified, the * AutoScaling group will increase or decrease as a percentage. */ public void setUpperBreachScaleIncrement(String upperBreachScaleIncrement) { this.upperBreachScaleIncrement = upperBreachScaleIncrement; } /** * The incremental amount to use when performing scaling activities after * the upper threshold has been breached. If only a positive or * negative number is specified, then the AutoScaling group will increase * or decrease by the specified number of actual instances. If positive * or negative number followed by a percent sign is specified, the * AutoScaling group will increase or decrease as a percentage. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param upperBreachScaleIncrement The incremental amount to use when performing scaling activities after * the upper threshold has been breached. If only a positive or * negative number is specified, then the AutoScaling group will increase * or decrease by the specified number of actual instances. If positive * or negative number followed by a percent sign is specified, the * AutoScaling group will increase or decrease as a percentage. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withUpperBreachScaleIncrement(String upperBreachScaleIncrement) { this.upperBreachScaleIncrement = upperBreachScaleIncrement; return this; } /** * The amount of time, in seconds, used to evaluate and determine if a * breach is occurring. The service will look at data between the current * time and the number of seconds specified in this parameter to see if a * breach has occurred. *

* Constraints:
* Range: 120 - 86400
* * @return The amount of time, in seconds, used to evaluate and determine if a * breach is occurring. The service will look at data between the current * time and the number of seconds specified in this parameter to see if a * breach has occurred. */ public Integer getBreachDuration() { return breachDuration; } /** * The amount of time, in seconds, used to evaluate and determine if a * breach is occurring. The service will look at data between the current * time and the number of seconds specified in this parameter to see if a * breach has occurred. *

* Constraints:
* Range: 120 - 86400
* * @param breachDuration The amount of time, in seconds, used to evaluate and determine if a * breach is occurring. The service will look at data between the current * time and the number of seconds specified in this parameter to see if a * breach has occurred. */ public void setBreachDuration(Integer breachDuration) { this.breachDuration = breachDuration; } /** * The amount of time, in seconds, used to evaluate and determine if a * breach is occurring. The service will look at data between the current * time and the number of seconds specified in this parameter to see if a * breach has occurred. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Range: 120 - 86400
* * @param breachDuration The amount of time, in seconds, used to evaluate and determine if a * breach is occurring. The service will look at data between the current * time and the number of seconds specified in this parameter to see if a * breach has occurred. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateOrUpdateScalingTriggerRequest withBreachDuration(Integer breachDuration) { this.breachDuration = breachDuration; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("TriggerName: " + triggerName + ", "); sb.append("AutoScalingGroupName: " + autoScalingGroupName + ", "); sb.append("MeasureName: " + measureName + ", "); sb.append("Statistic: " + statistic + ", "); sb.append("Dimensions: " + dimensions + ", "); sb.append("Period: " + period + ", "); sb.append("Unit: " + unit + ", "); sb.append("CustomUnit: " + customUnit + ", "); sb.append("Namespace: " + namespace + ", "); sb.append("LowerThreshold: " + lowerThreshold + ", "); sb.append("LowerBreachScaleIncrement: " + lowerBreachScaleIncrement + ", "); sb.append("UpperThreshold: " + upperThreshold + ", "); sb.append("UpperBreachScaleIncrement: " + upperBreachScaleIncrement + ", "); sb.append("BreachDuration: " + breachDuration + ", "); sb.append("}"); return sb.toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy