Interface CreatePackageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreatePackageRequest.Builder,,CreatePackageRequest> OpenSearchRequest.Builder,SdkBuilder<CreatePackageRequest.Builder,,CreatePackageRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreatePackageRequest
-
Method Summary
Modifier and TypeMethodDescriptionengineVersion(String engineVersion) The version of the Amazon OpenSearch Service engine for which is compatible with the package.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreatePackageRequest.BuilderpackageConfiguration(Consumer<PackageConfiguration.Builder> packageConfiguration) The configuration parameters for the package being created.packageConfiguration(PackageConfiguration packageConfiguration) The configuration parameters for the package being created.packageDescription(String packageDescription) Description of the package.default CreatePackageRequest.BuilderpackageEncryptionOptions(Consumer<PackageEncryptionOptions.Builder> packageEncryptionOptions) The encryption parameters for the package being created.packageEncryptionOptions(PackageEncryptionOptions packageEncryptionOptions) The encryption parameters for the package being created.packageName(String packageName) Unique name for the package.default CreatePackageRequest.BuilderpackageSource(Consumer<PackageSource.Builder> packageSource) The Amazon S3 location from which to import the package.packageSource(PackageSource packageSource) The Amazon S3 location from which to import the package.packageType(String packageType) The type of package.packageType(PackageType packageType) The type of package.default CreatePackageRequest.BuilderpackageVendingOptions(Consumer<PackageVendingOptions.Builder> packageVendingOptions) The vending options for the package being created.packageVendingOptions(PackageVendingOptions packageVendingOptions) The vending options for the package being created.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opensearch.model.OpenSearchRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
packageName
Unique name for the package.
- Parameters:
packageName- Unique name for the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageType
The type of package.
- Parameters:
packageType- The type of package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
packageType
The type of package.
- Parameters:
packageType- The type of package.- 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 Amazon S3 location from which to import the package.
- Parameters:
packageSource- The Amazon S3 location from which to import the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageSource
The Amazon S3 location from which to import the package.
This is a convenience method that creates an instance of thePackageSource.Builderavoiding the need to create one manually viaPackageSource.builder().When the
Consumercompletes,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:
-
packageConfiguration
The configuration parameters for the package being created.
- Parameters:
packageConfiguration- The configuration parameters for the package being created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageConfiguration
default CreatePackageRequest.Builder packageConfiguration(Consumer<PackageConfiguration.Builder> packageConfiguration) The configuration parameters for the package being created.
This is a convenience method that creates an instance of thePackageConfiguration.Builderavoiding the need to create one manually viaPackageConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topackageConfiguration(PackageConfiguration).- Parameters:
packageConfiguration- a consumer that will call methods onPackageConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
engineVersion
The version of the Amazon OpenSearch Service engine for which is compatible with the package. This can only be specified for package type
ZIP-PLUGIN- Parameters:
engineVersion- The version of the Amazon OpenSearch Service engine for which is compatible with the package. This can only be specified for package typeZIP-PLUGIN- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageVendingOptions
The vending options for the package being created. They determine if the package can be vended to other users.
- Parameters:
packageVendingOptions- The vending options for the package being created. They determine if the package can be vended to other users.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageVendingOptions
default CreatePackageRequest.Builder packageVendingOptions(Consumer<PackageVendingOptions.Builder> packageVendingOptions) The vending options for the package being created. They determine if the package can be vended to other users.
This is a convenience method that creates an instance of thePackageVendingOptions.Builderavoiding the need to create one manually viaPackageVendingOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topackageVendingOptions(PackageVendingOptions).- Parameters:
packageVendingOptions- a consumer that will call methods onPackageVendingOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
packageEncryptionOptions
CreatePackageRequest.Builder packageEncryptionOptions(PackageEncryptionOptions packageEncryptionOptions) The encryption parameters for the package being created.
- Parameters:
packageEncryptionOptions- The encryption parameters for the package being created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageEncryptionOptions
default CreatePackageRequest.Builder packageEncryptionOptions(Consumer<PackageEncryptionOptions.Builder> packageEncryptionOptions) The encryption parameters for the package being created.
This is a convenience method that creates an instance of thePackageEncryptionOptions.Builderavoiding the need to create one manually viaPackageEncryptionOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topackageEncryptionOptions(PackageEncryptionOptions).- Parameters:
packageEncryptionOptions- a consumer that will call methods onPackageEncryptionOptions.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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-