Class ListenerTimeout
- java.lang.Object
-
- software.amazon.awssdk.services.appmesh.model.ListenerTimeout
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ListenerTimeout.Builder,ListenerTimeout>
@Generated("software.amazon.awssdk:codegen") public final class ListenerTimeout extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ListenerTimeout.Builder,ListenerTimeout>
An object that represents timeouts for different protocols.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceListenerTimeout.Builderstatic classListenerTimeout.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListenerTimeout.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static ListenerTimeoutfromGrpc(Consumer<GrpcTimeout.Builder> grpc)Create an instance of this class withgrpc()initialized to the given value.static ListenerTimeoutfromGrpc(GrpcTimeout grpc)Create an instance of this class withgrpc()initialized to the given value.static ListenerTimeoutfromHttp(Consumer<HttpTimeout.Builder> http)Create an instance of this class withhttp()initialized to the given value.static ListenerTimeoutfromHttp(HttpTimeout http)Create an instance of this class withhttp()initialized to the given value.static ListenerTimeoutfromHttp2(Consumer<HttpTimeout.Builder> http2)Create an instance of this class withhttp2()initialized to the given value.static ListenerTimeoutfromHttp2(HttpTimeout http2)Create an instance of this class withhttp2()initialized to the given value.static ListenerTimeoutfromTcp(Consumer<TcpTimeout.Builder> tcp)Create an instance of this class withtcp()initialized to the given value.static ListenerTimeoutfromTcp(TcpTimeout tcp)Create an instance of this class withtcp()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)GrpcTimeoutgrpc()An object that represents types of timeouts.inthashCode()HttpTimeouthttp()An object that represents types of timeouts.HttpTimeouthttp2()An object that represents types of timeouts.List<SdkField<?>>sdkFields()static Class<? extends ListenerTimeout.Builder>serializableBuilderClass()TcpTimeouttcp()An object that represents types of timeouts.ListenerTimeout.BuildertoBuilder()StringtoString()Returns a string representation of this object.ListenerTimeout.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
grpc
public final GrpcTimeout grpc()
An object that represents types of timeouts.
- Returns:
- An object that represents types of timeouts.
-
http
public final HttpTimeout http()
An object that represents types of timeouts.
- Returns:
- An object that represents types of timeouts.
-
http2
public final HttpTimeout http2()
An object that represents types of timeouts.
- Returns:
- An object that represents types of timeouts.
-
tcp
public final TcpTimeout tcp()
An object that represents types of timeouts.
- Returns:
- An object that represents types of timeouts.
-
toBuilder
public ListenerTimeout.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ListenerTimeout.Builder,ListenerTimeout>
-
builder
public static ListenerTimeout.Builder builder()
-
serializableBuilderClass
public static Class<? extends ListenerTimeout.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromGrpc
public static ListenerTimeout fromGrpc(GrpcTimeout grpc)
Create an instance of this class withgrpc()initialized to the given value.An object that represents types of timeouts.
- Parameters:
grpc- An object that represents types of timeouts.
-
fromGrpc
public static ListenerTimeout fromGrpc(Consumer<GrpcTimeout.Builder> grpc)
Create an instance of this class withgrpc()initialized to the given value.An object that represents types of timeouts.
- Parameters:
grpc- An object that represents types of timeouts.
-
fromHttp
public static ListenerTimeout fromHttp(HttpTimeout http)
Create an instance of this class withhttp()initialized to the given value.An object that represents types of timeouts.
- Parameters:
http- An object that represents types of timeouts.
-
fromHttp
public static ListenerTimeout fromHttp(Consumer<HttpTimeout.Builder> http)
Create an instance of this class withhttp()initialized to the given value.An object that represents types of timeouts.
- Parameters:
http- An object that represents types of timeouts.
-
fromHttp2
public static ListenerTimeout fromHttp2(HttpTimeout http2)
Create an instance of this class withhttp2()initialized to the given value.An object that represents types of timeouts.
- Parameters:
http2- An object that represents types of timeouts.
-
fromHttp2
public static ListenerTimeout fromHttp2(Consumer<HttpTimeout.Builder> http2)
Create an instance of this class withhttp2()initialized to the given value.An object that represents types of timeouts.
- Parameters:
http2- An object that represents types of timeouts.
-
fromTcp
public static ListenerTimeout fromTcp(TcpTimeout tcp)
Create an instance of this class withtcp()initialized to the given value.An object that represents types of timeouts.
- Parameters:
tcp- An object that represents types of timeouts.
-
fromTcp
public static ListenerTimeout fromTcp(Consumer<TcpTimeout.Builder> tcp)
Create an instance of this class withtcp()initialized to the given value.An object that represents types of timeouts.
- Parameters:
tcp- An object that represents types of timeouts.
-
type
public ListenerTimeout.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beListenerTimeout.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beListenerTimeout.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-