@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HttpTimeout extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents types of timeouts.
Constructor and Description |
---|
HttpTimeout() |
Modifier and Type | Method and Description |
---|---|
HttpTimeout |
clone() |
boolean |
equals(Object obj) |
Duration |
getIdle()
An object that represents an idle timeout.
|
Duration |
getPerRequest()
An object that represents a per request timeout.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIdle(Duration idle)
An object that represents an idle timeout.
|
void |
setPerRequest(Duration perRequest)
An object that represents a per request timeout.
|
String |
toString()
Returns a string representation of this object.
|
HttpTimeout |
withIdle(Duration idle)
An object that represents an idle timeout.
|
HttpTimeout |
withPerRequest(Duration perRequest)
An object that represents a per request timeout.
|
public void setIdle(Duration idle)
An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.
idle
- An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may
be idle. The default value is none.public Duration getIdle()
An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.
public HttpTimeout withIdle(Duration idle)
An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.
idle
- An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may
be idle. The default value is none.public void setPerRequest(Duration perRequest)
An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.
perRequest
- An object that represents a per request timeout. The default value is 15 seconds. If you set a higher
timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For
example, if a virtual node backend uses a virtual router provider to route to another virtual node, then
the timeout should be greater than 15 seconds for the source and destination virtual node and the route.public Duration getPerRequest()
An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.
public HttpTimeout withPerRequest(Duration perRequest)
An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.
perRequest
- An object that represents a per request timeout. The default value is 15 seconds. If you set a higher
timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For
example, if a virtual node backend uses a virtual router provider to route to another virtual node, then
the timeout should be greater than 15 seconds for the source and destination virtual node and the route.public String toString()
toString
in class Object
Object.toString()
public HttpTimeout clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.