Class AwsSdk2TransportOptions.BuilderImpl
- java.lang.Object
-
- org.opensearch.client.transport.TransportOptions.BuilderImpl
-
- org.opensearch.client.transport.aws.AwsSdk2TransportOptions.BuilderImpl
-
- All Implemented Interfaces:
AwsSdk2TransportOptions.Builder
,TransportOptions.Builder
,ObjectBuilder<TransportOptions>
- Enclosing interface:
- AwsSdk2TransportOptions
public static class AwsSdk2TransportOptions.BuilderImpl extends TransportOptions.BuilderImpl implements AwsSdk2TransportOptions.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
credentials
protected JsonpMapper
mapper
protected java.lang.Integer
requestCompressionSize
protected java.lang.Boolean
responseCompression
-
Fields inherited from class org.opensearch.client.transport.TransportOptions.BuilderImpl
headers, onWarnings, queryParameters
-
-
Constructor Summary
Constructors Constructor Description BuilderImpl()
BuilderImpl(AwsSdk2TransportOptions src)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsSdk2TransportOptions.Builder
addHeader(java.lang.String name, java.lang.String value)
AwsSdk2TransportOptions
build()
AwsSdk2TransportOptions.Builder
onWarnings(java.util.function.Function<java.util.List<java.lang.String>,java.lang.Boolean> listener)
AwsSdk2TransportOptions.Builder
setCredentials(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials)
AwsSdk2TransportOptions.Builder
setMapper(JsonpMapper mapper)
AwsSdk2TransportOptions.Builder
setParameter(java.lang.String name, java.lang.String value)
AwsSdk2TransportOptions.Builder
setRequestCompressionSize(java.lang.Integer size)
AwsSdk2TransportOptions.Builder
setResponseCompression(java.lang.Boolean enabled)
-
-
-
Field Detail
-
credentials
protected software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials
-
requestCompressionSize
protected java.lang.Integer requestCompressionSize
-
responseCompression
protected java.lang.Boolean responseCompression
-
mapper
protected JsonpMapper mapper
-
-
Constructor Detail
-
BuilderImpl
public BuilderImpl()
-
BuilderImpl
public BuilderImpl(AwsSdk2TransportOptions src)
-
-
Method Detail
-
addHeader
public AwsSdk2TransportOptions.Builder addHeader(java.lang.String name, java.lang.String value)
- Specified by:
addHeader
in interfaceAwsSdk2TransportOptions.Builder
- Specified by:
addHeader
in interfaceTransportOptions.Builder
- Overrides:
addHeader
in classTransportOptions.BuilderImpl
-
setParameter
public AwsSdk2TransportOptions.Builder setParameter(java.lang.String name, java.lang.String value)
- Specified by:
setParameter
in interfaceAwsSdk2TransportOptions.Builder
- Specified by:
setParameter
in interfaceTransportOptions.Builder
- Overrides:
setParameter
in classTransportOptions.BuilderImpl
-
onWarnings
public AwsSdk2TransportOptions.Builder onWarnings(java.util.function.Function<java.util.List<java.lang.String>,java.lang.Boolean> listener)
- Specified by:
onWarnings
in interfaceAwsSdk2TransportOptions.Builder
- Specified by:
onWarnings
in interfaceTransportOptions.Builder
- Overrides:
onWarnings
in classTransportOptions.BuilderImpl
-
setCredentials
public AwsSdk2TransportOptions.Builder setCredentials(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials)
- Specified by:
setCredentials
in interfaceAwsSdk2TransportOptions.Builder
-
setRequestCompressionSize
public AwsSdk2TransportOptions.Builder setRequestCompressionSize(java.lang.Integer size)
- Specified by:
setRequestCompressionSize
in interfaceAwsSdk2TransportOptions.Builder
-
setMapper
public AwsSdk2TransportOptions.Builder setMapper(JsonpMapper mapper)
- Specified by:
setMapper
in interfaceAwsSdk2TransportOptions.Builder
-
setResponseCompression
public AwsSdk2TransportOptions.Builder setResponseCompression(java.lang.Boolean enabled)
- Specified by:
setResponseCompression
in interfaceAwsSdk2TransportOptions.Builder
-
build
public AwsSdk2TransportOptions build()
- Specified by:
build
in interfaceAwsSdk2TransportOptions.Builder
- Specified by:
build
in interfaceObjectBuilder<TransportOptions>
- Overrides:
build
in classTransportOptions.BuilderImpl
-
-