Class LimitResponse
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.flowcontrol.v1alpha1.LimitResponse
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class LimitResponse extends java.lang.Object implements com.marcnuri.yakc.model.Model
LimitResponse defines how to handle requests that can not be executed right now.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LimitResponse.Builder
-
Constructor Summary
Constructors Constructor Description LimitResponse()
LimitResponse(QueuingConfiguration queuing, @NonNull java.lang.String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LimitResponse.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
QueuingConfiguration
getQueuing()
@NonNull java.lang.String
getType()
`type` is "Queue" or "Reject".int
hashCode()
void
setQueuing(QueuingConfiguration queuing)
void
setType(@NonNull java.lang.String type)
`type` is "Queue" or "Reject".LimitResponse.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
LimitResponse
public LimitResponse(QueuingConfiguration queuing, @NonNull @NonNull java.lang.String type)
-
LimitResponse
public LimitResponse()
-
-
Method Detail
-
builder
public static LimitResponse.Builder builder()
-
toBuilder
public LimitResponse.Builder toBuilder()
-
getQueuing
public QueuingConfiguration getQueuing()
-
getType
@NonNull public @NonNull java.lang.String getType()
`type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required.
-
setQueuing
public void setQueuing(QueuingConfiguration queuing)
-
setType
public void setType(@NonNull @NonNull java.lang.String type)
`type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-