Class GrpcConfig
java.lang.Object
software.amazon.awssdk.services.cloudfront.model.GrpcConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<GrpcConfig.Builder,GrpcConfig>
@Generated("software.amazon.awssdk:codegen")
public final class GrpcConfig
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<GrpcConfig.Builder,GrpcConfig>
Amazon CloudFront supports gRPC, an open-source remote procedure call (RPC) framework built on HTTP/2. gRPC offers bi-directional streaming and binary protocol that buffers payloads, making it suitable for applications that require low latency communications.
To enable your distribution to handle gRPC requests, you must include HTTP/2 as one of the supported
HTTP versions and allow HTTP methods, including POST.
For more information, see Using gRPC with CloudFront distributions in the Amazon CloudFront Developer Guide.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic GrpcConfig.Builderbuilder()final Booleanenabled()Enables your CloudFront distribution to receive gRPC requests and to proxy them directly to your origins.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends GrpcConfig.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
enabled
Enables your CloudFront distribution to receive gRPC requests and to proxy them directly to your origins.
- Returns:
- Enables your CloudFront distribution to receive gRPC requests and to proxy them directly to your origins.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<GrpcConfig.Builder,GrpcConfig>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-