@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)
Marshalls this structured data using the given
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.LoadMetricType
public String getPredefinedLoadMetricType()
The metric type.
LoadMetricType
public PredefinedLoadMetricSpecification withPredefinedLoadMetricType(String predefinedLoadMetricType)
The metric type.
predefinedLoadMetricType
- The metric type.LoadMetricType
public PredefinedLoadMetricSpecification withPredefinedLoadMetricType(LoadMetricType predefinedLoadMetricType)
The metric type.
predefinedLoadMetricType
- The metric type.LoadMetricType
public 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 Object
Object.toString()
public PredefinedLoadMetricSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.