@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PredefinedLoadMetricSpecification extends Object implements Serializable, Cloneable, StructuredPojo
Represents a predefined metric that can be used for predictive scaling.
| Constructor and Description |
|---|
PredefinedLoadMetricSpecification() |
| Modifier and Type | Method and Description |
|---|---|
PredefinedLoadMetricSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getPredefinedLoadMetricType()
The metric type.
|
String |
getResourceLabel()
Identifies the resource associated with the metric type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setPredefinedLoadMetricType(String predefinedLoadMetricType)
The metric type.
|
void |
setResourceLabel(String resourceLabel)
Identifies the resource associated with the metric type.
|
String |
toString()
Returns a string representation of this object.
|
PredefinedLoadMetricSpecification |
withPredefinedLoadMetricType(LoadMetricType predefinedLoadMetricType)
The metric type.
|
PredefinedLoadMetricSpecification |
withPredefinedLoadMetricType(String predefinedLoadMetricType)
The metric type.
|
PredefinedLoadMetricSpecification |
withResourceLabel(String resourceLabel)
Identifies the resource associated with the metric type.
|
public void setPredefinedLoadMetricType(String predefinedLoadMetricType)
The metric type.
predefinedLoadMetricType - The metric type.LoadMetricTypepublic String getPredefinedLoadMetricType()
The metric type.
LoadMetricTypepublic PredefinedLoadMetricSpecification withPredefinedLoadMetricType(String predefinedLoadMetricType)
The metric type.
predefinedLoadMetricType - The metric type.LoadMetricTypepublic PredefinedLoadMetricSpecification withPredefinedLoadMetricType(LoadMetricType predefinedLoadMetricType)
The metric type.
predefinedLoadMetricType - The metric type.LoadMetricTypepublic void setResourceLabel(String resourceLabel)
Identifies the resource associated with the metric type. You can't specify a resource label unless the metric
type is ALBRequestCountPerTarget and there is a target group for an Application Load Balancer
attached to the Auto Scaling group.
The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target -group-id>, where:
app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN.
targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.
resourceLabel - Identifies the resource associated with the metric type. You can't specify a resource label unless the
metric type is ALBRequestCountPerTarget and there is a target group for an Application Load
Balancer attached to the Auto Scaling group.
The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name> /<target-group-id>, where:
app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN.
targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.
public String getResourceLabel()
Identifies the resource associated with the metric type. You can't specify a resource label unless the metric
type is ALBRequestCountPerTarget and there is a target group for an Application Load Balancer
attached to the Auto Scaling group.
The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target -group-id>, where:
app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN.
targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.
ALBRequestCountPerTarget and there is a target group for an Application Load
Balancer attached to the Auto Scaling group.
The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name> ;/<target-group-id>, where:
app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN.
targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.
public PredefinedLoadMetricSpecification withResourceLabel(String resourceLabel)
Identifies the resource associated with the metric type. You can't specify a resource label unless the metric
type is ALBRequestCountPerTarget and there is a target group for an Application Load Balancer
attached to the Auto Scaling group.
The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target -group-id>, where:
app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN.
targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.
resourceLabel - Identifies the resource associated with the metric type. You can't specify a resource label unless the
metric type is ALBRequestCountPerTarget and there is a target group for an Application Load
Balancer attached to the Auto Scaling group.
The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name> /<target-group-id>, where:
app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN.
targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.
public String toString()
toString in class ObjectObject.toString()public PredefinedLoadMetricSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.