Class ImportOperationBuilder
- All Implemented Interfaces:
Builder<ImportOperation>
Example to create an instance using the builder pattern
ImportOperation importOperation = ImportOperation.builder()
.version(1)
.importContainerKey("{importContainerKey}")
.resourceKey("{resourceKey}")
.id("{id}")
.state(ProcessingState.PROCESSING)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.expiresAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIn case of unresolved status this array will show the unresolved referencesbuild()
builds ImportOperation with checking for non-null required valuesbuilds ImportOperation without checking for non-null required valuescreatedAt
(ZonedDateTime createdAt) The time when the ImportOperation was created.errors
(ErrorObject... errors) Contains an error if the import of the resource was not successful.errors
(List<ErrorObject> errors) Contains an error if the import of the resource was not successful.expiresAt
(ZonedDateTime expiresAt) The expiration time of the ImportOperation.The time when the ImportOperation was created.Contains an error if the import of the resource was not successful.The expiration time of the ImportOperation.getId()
The ID of the ImportOperation.The key of the ImportContainer.The last time When the ImportOperation was modified.The key of the resource.The version of the imported resource when the import was successful.getState()
The import status of the resource.In case of unresolved status this array will show the unresolved referencesThe version of the ImportOperation.The ID of the ImportOperation.importContainerKey
(String importContainerKey) The key of the ImportContainer.lastModifiedAt
(ZonedDateTime lastModifiedAt) The last time When the ImportOperation was modified.static ImportOperationBuilder
of()
factory method for an instance of ImportOperationBuilderstatic ImportOperationBuilder
of
(ImportOperation template) create builder for ImportOperation instanceplusErrors
(ErrorObject... errors) Contains an error if the import of the resource was not successful.plusErrors
(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Contains an error if the import of the resource was not successful.plusUnresolvedReferences
(UnresolvedReferences... unresolvedReferences) In case of unresolved status this array will show the unresolved referencesIn case of unresolved status this array will show the unresolved referencesresourceKey
(String resourceKey) The key of the resource.resourceVersion
(Long resourceVersion) The version of the imported resource when the import was successful.In case of unresolved status this array will show the unresolved referencesstate
(ProcessingState state) The import status of the resource.unresolvedReferences
(UnresolvedReferences... unresolvedReferences) In case of unresolved status this array will show the unresolved referencesunresolvedReferences
(List<UnresolvedReferences> unresolvedReferences) In case of unresolved status this array will show the unresolved referencesThe version of the ImportOperation.withErrors
(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Contains an error if the import of the resource was not successful.In case of unresolved status this array will show the unresolved references
-
Constructor Details
-
ImportOperationBuilder
public ImportOperationBuilder()
-
-
Method Details
-
version
The version of the ImportOperation.
- Parameters:
version
- value to be set- Returns:
- Builder
-
importContainerKey
The key of the ImportContainer.
- Parameters:
importContainerKey
- value to be set- Returns:
- Builder
-
resourceKey
The key of the resource.
- Parameters:
resourceKey
- value to be set- Returns:
- Builder
-
id
The ID of the ImportOperation.
- Parameters:
id
- value to be set- Returns:
- Builder
-
state
The import status of the resource. Set to
rejected
orvalidationFailed
if the import of the resource was not successful.- Parameters:
state
- value to be set- Returns:
- Builder
-
resourceVersion
The version of the imported resource when the import was successful.
- Parameters:
resourceVersion
- value to be set- Returns:
- Builder
-
errors
Contains an error if the import of the resource was not successful. See Errors.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
errors
Contains an error if the import of the resource was not successful. See Errors.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
plusErrors
Contains an error if the import of the resource was not successful. See Errors.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
plusErrors
public ImportOperationBuilder plusErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Contains an error if the import of the resource was not successful. See Errors.
- Parameters:
builder
- function to build the errors value- Returns:
- Builder
-
withErrors
public ImportOperationBuilder withErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Contains an error if the import of the resource was not successful. See Errors.
- Parameters:
builder
- function to build the errors value- Returns:
- Builder
-
unresolvedReferences
public ImportOperationBuilder unresolvedReferences(@Nullable UnresolvedReferences... unresolvedReferences) In case of unresolved status this array will show the unresolved references
- Parameters:
unresolvedReferences
- value to be set- Returns:
- Builder
-
unresolvedReferences
public ImportOperationBuilder unresolvedReferences(@Nullable List<UnresolvedReferences> unresolvedReferences) In case of unresolved status this array will show the unresolved references
- Parameters:
unresolvedReferences
- value to be set- Returns:
- Builder
-
plusUnresolvedReferences
public ImportOperationBuilder plusUnresolvedReferences(@Nullable UnresolvedReferences... unresolvedReferences) In case of unresolved status this array will show the unresolved references
- Parameters:
unresolvedReferences
- value to be set- Returns:
- Builder
-
plusUnresolvedReferences
public ImportOperationBuilder plusUnresolvedReferences(Function<UnresolvedReferencesBuilder, UnresolvedReferencesBuilder> builder) In case of unresolved status this array will show the unresolved references
- Parameters:
builder
- function to build the unresolvedReferences value- Returns:
- Builder
-
withUnresolvedReferences
public ImportOperationBuilder withUnresolvedReferences(Function<UnresolvedReferencesBuilder, UnresolvedReferencesBuilder> builder) In case of unresolved status this array will show the unresolved references
- Parameters:
builder
- function to build the unresolvedReferences value- Returns:
- Builder
-
addUnresolvedReferences
public ImportOperationBuilder addUnresolvedReferences(Function<UnresolvedReferencesBuilder, UnresolvedReferences> builder) In case of unresolved status this array will show the unresolved references
- Parameters:
builder
- function to build the unresolvedReferences value- Returns:
- Builder
-
setUnresolvedReferences
public ImportOperationBuilder setUnresolvedReferences(Function<UnresolvedReferencesBuilder, UnresolvedReferences> builder) In case of unresolved status this array will show the unresolved references
- Parameters:
builder
- function to build the unresolvedReferences value- Returns:
- Builder
-
createdAt
The time when the ImportOperation was created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
lastModifiedAt
The last time When the ImportOperation was modified.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
expiresAt
The expiration time of the ImportOperation.
- Parameters:
expiresAt
- value to be set- Returns:
- Builder
-
getVersion
The version of the ImportOperation.
- Returns:
- version
-
getImportContainerKey
The key of the ImportContainer.
- Returns:
- importContainerKey
-
getResourceKey
The key of the resource.
- Returns:
- resourceKey
-
getId
The ID of the ImportOperation.
- Returns:
- id
-
getState
The import status of the resource. Set to
rejected
orvalidationFailed
if the import of the resource was not successful.- Returns:
- state
-
getResourceVersion
The version of the imported resource when the import was successful.
- Returns:
- resourceVersion
-
getErrors
Contains an error if the import of the resource was not successful. See Errors.
- Returns:
- errors
-
getUnresolvedReferences
In case of unresolved status this array will show the unresolved references
- Returns:
- unresolvedReferences
-
getCreatedAt
The time when the ImportOperation was created.
- Returns:
- createdAt
-
getLastModifiedAt
The last time When the ImportOperation was modified.
- Returns:
- lastModifiedAt
-
getExpiresAt
The expiration time of the ImportOperation.
- Returns:
- expiresAt
-
build
builds ImportOperation with checking for non-null required values- Specified by:
build
in interfaceBuilder<ImportOperation>
- Returns:
- ImportOperation
-
buildUnchecked
builds ImportOperation without checking for non-null required values- Returns:
- ImportOperation
-
of
factory method for an instance of ImportOperationBuilder- Returns:
- builder
-
of
create builder for ImportOperation instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-