Interface CreatePackageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreatePackageRequest.Builder,
,CreatePackageRequest> ElasticsearchRequest.Builder
,SdkBuilder<CreatePackageRequest.Builder,
,CreatePackageRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreatePackageRequest
public static interface CreatePackageRequest.Builder
extends ElasticsearchRequest.Builder, SdkPojo, CopyableBuilder<CreatePackageRequest.Builder,CreatePackageRequest>
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.packageDescription
(String packageDescription) Description of the package.packageName
(String packageName) Unique identifier for the package.default CreatePackageRequest.Builder
packageSource
(Consumer<PackageSource.Builder> packageSource) The customer S3 locationPackageSource
for importing the package.packageSource
(PackageSource packageSource) The customer S3 locationPackageSource
for importing the package.packageType
(String packageType) Type of package.packageType
(PackageType packageType) Type of package.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.elasticsearch.model.ElasticsearchRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
packageName
Unique identifier for the package.
- Parameters:
packageName
- Unique identifier for the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageType
Type of package. Currently supports only TXT-DICTIONARY.
- Parameters:
packageType
- Type of package. Currently supports only TXT-DICTIONARY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
packageType
Type of package. Currently supports only TXT-DICTIONARY.
- Parameters:
packageType
- Type of package. Currently supports only TXT-DICTIONARY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
packageDescription
Description of the package.
- Parameters:
packageDescription
- Description of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageSource
The customer S3 location
PackageSource
for importing the package.- Parameters:
packageSource
- The customer S3 locationPackageSource
for importing the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageSource
The customer S3 location
This is a convenience method that creates an instance of thePackageSource
for importing the package.PackageSource.Builder
avoiding the need to create one manually viaPackageSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topackageSource(PackageSource)
.- Parameters:
packageSource
- a consumer that will call methods onPackageSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreatePackageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreatePackageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-