@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PredefinedScalingMetricSpecification extends Object implements Serializable, Cloneable, StructuredPojo
Represents a predefined metric that can be used for dynamic scaling as part of a target tracking scaling policy.
| Constructor and Description |
|---|
PredefinedScalingMetricSpecification() |
| Modifier and Type | Method and Description |
|---|---|
PredefinedScalingMetricSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getPredefinedScalingMetricType()
The metric type.
|
String |
getResourceLabel()
Identifies the resource associated with the metric type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setPredefinedScalingMetricType(String predefinedScalingMetricType)
The metric type.
|
void |
setResourceLabel(String resourceLabel)
Identifies the resource associated with the metric type.
|
String |
toString()
Returns a string representation of this object.
|
PredefinedScalingMetricSpecification |
withPredefinedScalingMetricType(ScalingMetricType predefinedScalingMetricType)
The metric type.
|
PredefinedScalingMetricSpecification |
withPredefinedScalingMetricType(String predefinedScalingMetricType)
The metric type.
|
PredefinedScalingMetricSpecification |
withResourceLabel(String resourceLabel)
Identifies the resource associated with the metric type.
|
public PredefinedScalingMetricSpecification()
public void setPredefinedScalingMetricType(String predefinedScalingMetricType)
The metric type. The ALBRequestCountPerTarget metric type applies only to Auto Scaling groups, Spot
Fleet requests, and ECS services.
predefinedScalingMetricType - The metric type. The ALBRequestCountPerTarget metric type applies only to Auto Scaling
groups, Spot Fleet requests, and ECS services.ScalingMetricTypepublic String getPredefinedScalingMetricType()
The metric type. The ALBRequestCountPerTarget metric type applies only to Auto Scaling groups, Spot
Fleet requests, and ECS services.
ALBRequestCountPerTarget metric type applies only to Auto Scaling
groups, Spot Fleet requests, and ECS services.ScalingMetricTypepublic PredefinedScalingMetricSpecification withPredefinedScalingMetricType(String predefinedScalingMetricType)
The metric type. The ALBRequestCountPerTarget metric type applies only to Auto Scaling groups, Spot
Fleet requests, and ECS services.
predefinedScalingMetricType - The metric type. The ALBRequestCountPerTarget metric type applies only to Auto Scaling
groups, Spot Fleet requests, and ECS services.ScalingMetricTypepublic PredefinedScalingMetricSpecification withPredefinedScalingMetricType(ScalingMetricType predefinedScalingMetricType)
The metric type. The ALBRequestCountPerTarget metric type applies only to Auto Scaling groups, Spot
Fleet requests, and ECS services.
predefinedScalingMetricType - The metric type. The ALBRequestCountPerTarget metric type applies only to Auto Scaling
groups, Spot Fleet requests, and ECS services.ScalingMetricTypepublic 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, Spot Fleet request, or ECS service.
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, Spot Fleet request, or ECS service.
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, Spot Fleet request, or ECS service.
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, Spot Fleet request, or ECS service.
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 PredefinedScalingMetricSpecification 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, Spot Fleet request, or ECS service.
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, Spot Fleet request, or ECS service.
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 PredefinedScalingMetricSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.