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 allowHTTP
methods, includingPOST
.For more information, see Using gRPC with CloudFront distributions in the Amazon CloudFront Developer Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GrpcConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GrpcConfig.Builder
builder()
Boolean
enabled()
Enables your CloudFront distribution to receive gRPC requests and to proxy them directly to your origins.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends GrpcConfig.Builder>
serializableBuilderClass()
GrpcConfig.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
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
-
enabled
public final Boolean 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
public GrpcConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<GrpcConfig.Builder,GrpcConfig>
-
builder
public static GrpcConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends GrpcConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-