Interface AwsSdk2TransportOptions
-
- All Superinterfaces:
TransportOptions
- All Known Implementing Classes:
AwsSdk2TransportOptions.DefaultImpl
public interface AwsSdk2TransportOptions extends TransportOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAwsSdk2TransportOptions.Builderstatic classAwsSdk2TransportOptions.BuilderImplstatic classAwsSdk2TransportOptions.DefaultImpl
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static AwsSdk2TransportOptions.Builderbuilder()software.amazon.awssdk.auth.credentials.AwsCredentialsProvidercredentials()Get the credentials provider to user for signing requests.JsonpMappermapper()Get mapper used for serializing and deserializing requests and responses.java.lang.IntegerrequestCompressionSize()Get the maximum size for uncompressed requests.java.lang.BooleanresponseCompression()Get the response compression enable/disable value.AwsSdk2TransportOptions.BuildertoBuilder()-
Methods inherited from interface org.opensearch.client.transport.TransportOptions
headers, onWarnings, queryParameters, with
-
-
-
-
Method Detail
-
credentials
software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials()
Get the credentials provider to user for signing requests.If this is null, then a default provider will be used -- either a provider specified in a more general
AwsSdk2TransportOptionsthat applies to the request, or the default credential chain if there is none.- Returns:
- A credentials provider or null
-
requestCompressionSize
java.lang.Integer requestCompressionSize()
Get the maximum size for uncompressed requests. Requests larger than this size will be sent with Content-Encoding: gzip.If this is null, then a default will be used -- either a value specified in a more general
AwsSdk2TransportOptionsthat applies to the request, or a reasonable default if there is none.If this is Integer.MAX_VALUE, then requests will not be compressed. If this is 0, then all non-empty request bodies will be compressed.
- Returns:
- An integer size limit or null
-
responseCompression
java.lang.Boolean responseCompression()
Get the response compression enable/disable value. If this is true, then an Accept-Encoding: gzip header will be sent with the request. The server will decide whether or not to compress its responses.If this is null, then a default will be used -- either a value specified in a more general
AwsSdk2TransportOptionsthat applies to the request, orBoolean.TRUEif there is none.- Returns:
- response compression enable/disable flag, or null
-
mapper
JsonpMapper mapper()
Get mapper used for serializing and deserializing requests and responses.If this is null, then a default will be used -- either a value specified in a more general
AwsSdk2TransportOptionsthat applies to the request, or a newJacksonJsonpMapperor equivalent if there is none.- Returns:
- A mapper or null
-
toBuilder
AwsSdk2TransportOptions.Builder toBuilder()
- Specified by:
toBuilderin interfaceTransportOptions
-
builder
static AwsSdk2TransportOptions.Builder builder()
-
-