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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf the resource being imported contains references to resources which do not exist, these references are contained within this array.build()
builds ImportOperation with checking for non-null required valuesbuilds ImportOperation without checking for non-null required valuescreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the ImportOperation was created.errors
(ErrorObject... errors) Contains errors if the import was unsuccessful.errors
(List<ErrorObject> errors) Contains errors if the import was unsuccessful.expiresAt
(ZonedDateTime expiresAt) Date and time (UTC) the ImportOperation will be deleted.Date and time (UTC) the ImportOperation was created.Contains errors if the import was unsuccessful.Date and time (UTC) the ImportOperation will be deleted.getId()
Unique identifier of the ImportOperation.key
of the ImportContainer.Date and time (UTC) the ImportOperation was last updated.key
of the resource being imported.Theversion
of the imported resource when the import was successful.getState()
The import status of the resource.If the resource being imported contains references to resources which do not exist, these references are contained within this array.Current version of the ImportOperation.Unique identifier of the ImportOperation.importContainerKey
(String importContainerKey) key
of the ImportContainer.lastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the ImportOperation was last updated.static ImportOperationBuilder
of()
factory method for an instance of ImportOperationBuilderstatic ImportOperationBuilder
of
(ImportOperation template) create builder for ImportOperation instanceplusErrors
(ErrorObject... errors) Contains errors if the import was unsuccessful.plusErrors
(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Contains errors if the import was unsuccessful.plusUnresolvedReferences
(UnresolvedReferences... unresolvedReferences) If the resource being imported contains references to resources which do not exist, these references are contained within this array.If the resource being imported contains references to resources which do not exist, these references are contained within this array.resourceKey
(String resourceKey) key
of the resource being imported.resourceVersion
(Long resourceVersion) Theversion
of the imported resource when the import was successful.If the resource being imported contains references to resources which do not exist, these references are contained within this array.state
(ProcessingState state) The import status of the resource.unresolvedReferences
(UnresolvedReferences... unresolvedReferences) If the resource being imported contains references to resources which do not exist, these references are contained within this array.unresolvedReferences
(List<UnresolvedReferences> unresolvedReferences) If the resource being imported contains references to resources which do not exist, these references are contained within this array.Current version of the ImportOperation.withErrors
(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Contains errors if the import was unsuccessful.If the resource being imported contains references to resources which do not exist, these references are contained within this array.
-
Constructor Details
-
ImportOperationBuilder
public ImportOperationBuilder()
-
-
Method Details
-
version
Current version of the ImportOperation.
- Parameters:
version
- value to be set- Returns:
- Builder
-
importContainerKey
key
of the ImportContainer.- Parameters:
importContainerKey
- value to be set- Returns:
- Builder
-
resourceKey
key
of the resource being imported.- Parameters:
resourceKey
- value to be set- Returns:
- Builder
-
id
Unique identifier of the ImportOperation.
- Parameters:
id
- value to be set- Returns:
- Builder
-
state
The import status of the resource. If
rejected
orvalidationFailed
, the import was unsuccessful.- 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 errors if the import was unsuccessful. See Errors.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
errors
Contains errors if the import was unsuccessful. See Errors.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
plusErrors
Contains errors if the import was unsuccessful. See Errors.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
plusErrors
public ImportOperationBuilder plusErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Contains errors if the import was unsuccessful. See Errors.
- Parameters:
builder
- function to build the errors value- Returns:
- Builder
-
withErrors
public ImportOperationBuilder withErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Contains errors if the import was unsuccessful. See Errors.
- Parameters:
builder
- function to build the errors value- Returns:
- Builder
-
unresolvedReferences
public ImportOperationBuilder unresolvedReferences(@Nullable UnresolvedReferences... unresolvedReferences) If the resource being imported contains references to resources which do not exist, these references are contained within this array.
- Parameters:
unresolvedReferences
- value to be set- Returns:
- Builder
-
unresolvedReferences
public ImportOperationBuilder unresolvedReferences(@Nullable List<UnresolvedReferences> unresolvedReferences) If the resource being imported contains references to resources which do not exist, these references are contained within this array.
- Parameters:
unresolvedReferences
- value to be set- Returns:
- Builder
-
plusUnresolvedReferences
public ImportOperationBuilder plusUnresolvedReferences(@Nullable UnresolvedReferences... unresolvedReferences) If the resource being imported contains references to resources which do not exist, these references are contained within this array.
- Parameters:
unresolvedReferences
- value to be set- Returns:
- Builder
-
plusUnresolvedReferences
public ImportOperationBuilder plusUnresolvedReferences(Function<UnresolvedReferencesBuilder, UnresolvedReferencesBuilder> builder) If the resource being imported contains references to resources which do not exist, these references are contained within this array.
- Parameters:
builder
- function to build the unresolvedReferences value- Returns:
- Builder
-
withUnresolvedReferences
public ImportOperationBuilder withUnresolvedReferences(Function<UnresolvedReferencesBuilder, UnresolvedReferencesBuilder> builder) If the resource being imported contains references to resources which do not exist, these references are contained within this array.
- Parameters:
builder
- function to build the unresolvedReferences value- Returns:
- Builder
-
addUnresolvedReferences
public ImportOperationBuilder addUnresolvedReferences(Function<UnresolvedReferencesBuilder, UnresolvedReferences> builder) If the resource being imported contains references to resources which do not exist, these references are contained within this array.
- Parameters:
builder
- function to build the unresolvedReferences value- Returns:
- Builder
-
setUnresolvedReferences
public ImportOperationBuilder setUnresolvedReferences(Function<UnresolvedReferencesBuilder, UnresolvedReferences> builder) If the resource being imported contains references to resources which do not exist, these references are contained within this array.
- Parameters:
builder
- function to build the unresolvedReferences value- Returns:
- Builder
-
createdAt
Date and time (UTC) the ImportOperation was created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
lastModifiedAt
Date and time (UTC) the ImportOperation was last updated.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
expiresAt
Date and time (UTC) the ImportOperation will be deleted.
- Parameters:
expiresAt
- value to be set- Returns:
- Builder
-
getVersion
Current version of the ImportOperation.
- Returns:
- version
-
getImportContainerKey
key
of the ImportContainer.- Returns:
- importContainerKey
-
getResourceKey
key
of the resource being imported.- Returns:
- resourceKey
-
getId
Unique identifier of the ImportOperation.
- Returns:
- id
-
getState
The import status of the resource. If
rejected
orvalidationFailed
, the import was unsuccessful.- Returns:
- state
-
getResourceVersion
The
version
of the imported resource when the import was successful.- Returns:
- resourceVersion
-
getErrors
Contains errors if the import was unsuccessful. See Errors.
- Returns:
- errors
-
getUnresolvedReferences
If the resource being imported contains references to resources which do not exist, these references are contained within this array.
- Returns:
- unresolvedReferences
-
getCreatedAt
Date and time (UTC) the ImportOperation was created.
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the ImportOperation was last updated.
- Returns:
- lastModifiedAt
-
getExpiresAt
Date and time (UTC) the ImportOperation will be deleted.
- 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
-