Interface PackageDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PackageDetails.Builder,
,PackageDetails> SdkBuilder<PackageDetails.Builder,
,PackageDetails> SdkPojo
- Enclosing class:
PackageDetails
public static interface PackageDetails.Builder
extends SdkPojo, CopyableBuilder<PackageDetails.Builder,PackageDetails>
-
Method Summary
Modifier and TypeMethodDescriptionavailablePackageVersion
(String availablePackageVersion) Sets the value of the AvailablePackageVersion property for this object.Timestamp which tells creation date of the package.default PackageDetails.Builder
errorDetails
(Consumer<ErrorDetails.Builder> errorDetails) Additional information if the package is in an error state.errorDetails
(ErrorDetails errorDetails) Additional information if the package is in an error state.lastUpdatedAt
(Instant lastUpdatedAt) Sets the value of the LastUpdatedAt property for this object.packageDescription
(String packageDescription) User-specified description of the package.Internal ID of the package.packageName
(String packageName) User specified name of the package.packageStatus
(String packageStatus) Current state of the package.packageStatus
(PackageStatus packageStatus) Current state of the package.packageType
(String packageType) Currently supports only TXT-DICTIONARY.packageType
(PackageType packageType) Currently supports only TXT-DICTIONARY.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
packageID
Internal ID of the package.
- Parameters:
packageID
- Internal ID of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageName
User specified name of the package.
- Parameters:
packageName
- User specified name of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageType
Currently supports only TXT-DICTIONARY.
- Parameters:
packageType
- Currently supports only TXT-DICTIONARY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
packageType
Currently supports only TXT-DICTIONARY.
- Parameters:
packageType
- Currently supports only TXT-DICTIONARY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
packageDescription
User-specified description of the package.
- Parameters:
packageDescription
- User-specified description of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageStatus
Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED
- Parameters:
packageStatus
- Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
packageStatus
Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED
- Parameters:
packageStatus
- Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
Timestamp which tells creation date of the package.
- Parameters:
createdAt
- Timestamp which tells creation date of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedAt
Sets the value of the LastUpdatedAt property for this object.- Parameters:
lastUpdatedAt
- The new value for the LastUpdatedAt property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availablePackageVersion
Sets the value of the AvailablePackageVersion property for this object.- Parameters:
availablePackageVersion
- The new value for the AvailablePackageVersion property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
Additional information if the package is in an error state. Null otherwise.
- Parameters:
errorDetails
- Additional information if the package is in an error state. Null otherwise.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
Additional information if the package is in an error state. Null otherwise.
This is a convenience method that creates an instance of theErrorDetails.Builder
avoiding the need to create one manually viaErrorDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrorDetails(ErrorDetails)
.- Parameters:
errorDetails
- a consumer that will call methods onErrorDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-