@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OutlierDetection extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the outlier detection for a virtual node's listener.
Constructor and Description |
---|
OutlierDetection() |
Modifier and Type | Method and Description |
---|---|
OutlierDetection |
clone() |
boolean |
equals(Object obj) |
Duration |
getBaseEjectionDuration()
The base amount of time for which a host is ejected.
|
Duration |
getInterval()
The time interval between ejection sweep analysis.
|
Integer |
getMaxEjectionPercent()
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected.
|
Long |
getMaxServerErrors()
Number of consecutive
5xx errors required for ejection. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBaseEjectionDuration(Duration baseEjectionDuration)
The base amount of time for which a host is ejected.
|
void |
setInterval(Duration interval)
The time interval between ejection sweep analysis.
|
void |
setMaxEjectionPercent(Integer maxEjectionPercent)
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected.
|
void |
setMaxServerErrors(Long maxServerErrors)
Number of consecutive
5xx errors required for ejection. |
String |
toString()
Returns a string representation of this object.
|
OutlierDetection |
withBaseEjectionDuration(Duration baseEjectionDuration)
The base amount of time for which a host is ejected.
|
OutlierDetection |
withInterval(Duration interval)
The time interval between ejection sweep analysis.
|
OutlierDetection |
withMaxEjectionPercent(Integer maxEjectionPercent)
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected.
|
OutlierDetection |
withMaxServerErrors(Long maxServerErrors)
Number of consecutive
5xx errors required for ejection. |
public void setBaseEjectionDuration(Duration baseEjectionDuration)
The base amount of time for which a host is ejected.
baseEjectionDuration
- The base amount of time for which a host is ejected.public Duration getBaseEjectionDuration()
The base amount of time for which a host is ejected.
public OutlierDetection withBaseEjectionDuration(Duration baseEjectionDuration)
The base amount of time for which a host is ejected.
baseEjectionDuration
- The base amount of time for which a host is ejected.public void setInterval(Duration interval)
The time interval between ejection sweep analysis.
interval
- The time interval between ejection sweep analysis.public Duration getInterval()
The time interval between ejection sweep analysis.
public OutlierDetection withInterval(Duration interval)
The time interval between ejection sweep analysis.
interval
- The time interval between ejection sweep analysis.public void setMaxEjectionPercent(Integer maxEjectionPercent)
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.
maxEjectionPercent
- Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at
least one host regardless of the value.public Integer getMaxEjectionPercent()
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.
public OutlierDetection withMaxEjectionPercent(Integer maxEjectionPercent)
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.
maxEjectionPercent
- Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at
least one host regardless of the value.public void setMaxServerErrors(Long maxServerErrors)
Number of consecutive 5xx
errors required for ejection.
maxServerErrors
- Number of consecutive 5xx
errors required for ejection.public Long getMaxServerErrors()
Number of consecutive 5xx
errors required for ejection.
5xx
errors required for ejection.public OutlierDetection withMaxServerErrors(Long maxServerErrors)
Number of consecutive 5xx
errors required for ejection.
maxServerErrors
- Number of consecutive 5xx
errors required for ejection.public String toString()
toString
in class Object
Object.toString()
public OutlierDetection clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.