@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SamplingStrategy extends Object implements Serializable, Cloneable, StructuredPojo
The name and value of a sampling rule to apply to a trace summary.
Constructor and Description |
---|
SamplingStrategy() |
Modifier and Type | Method and Description |
---|---|
SamplingStrategy |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of a sampling rule.
|
Double |
getValue()
The value of a sampling rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setName(String name)
The name of a sampling rule.
|
void |
setValue(Double value)
The value of a sampling rule.
|
String |
toString()
Returns a string representation of this object.
|
SamplingStrategy |
withName(SamplingStrategyName name)
The name of a sampling rule.
|
SamplingStrategy |
withName(String name)
The name of a sampling rule.
|
SamplingStrategy |
withValue(Double value)
The value of a sampling rule.
|
public void setName(String name)
The name of a sampling rule.
name
- The name of a sampling rule.SamplingStrategyName
public String getName()
The name of a sampling rule.
SamplingStrategyName
public SamplingStrategy withName(String name)
The name of a sampling rule.
name
- The name of a sampling rule.SamplingStrategyName
public SamplingStrategy withName(SamplingStrategyName name)
The name of a sampling rule.
name
- The name of a sampling rule.SamplingStrategyName
public void setValue(Double value)
The value of a sampling rule.
value
- The value of a sampling rule.public Double getValue()
The value of a sampling rule.
public SamplingStrategy withValue(Double value)
The value of a sampling rule.
value
- The value of a sampling rule.public String toString()
toString
in class Object
Object.toString()
public SamplingStrategy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2023. All rights reserved.