Interface ImportContainerDraft
- All Superinterfaces:
Draft<ImportContainerDraft>
The representation sent to the server to create an ImportContainer.
Example to create an instance using the builder pattern
ImportContainerDraft importContainerDraft = ImportContainerDraft.builder()
.key("{key}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImportContainerDraftBuilder
builder()
builder factory method for ImportContainerDraftstatic ImportContainerDraftBuilder
builder
(ImportContainerDraft template) create builder for ImportContainerDraft instancecopyDeep()
static ImportContainerDraft
deepCopy
(ImportContainerDraft template) factory method to create a deep copy of ImportContainerDraft@NotNull String
getKey()
User-defined unique identifier of the ImportContainer.The resource type the ImportContainer will accept.@Valid RetentionPolicy
Set a retention policy to automatically delete the ImportContainer after a defined period.static ImportContainerDraft
of()
factory methodstatic ImportContainerDraft
of
(ImportContainerDraft template) factory method to create a shallow copy ImportContainerDraftvoid
User-defined unique identifier of the ImportContainer.void
setResourceType
(ImportResourceType resourceType) The resource type the ImportContainer will accept.void
setRetentionPolicy
(RetentionPolicy retentionPolicy) Set a retention policy to automatically delete the ImportContainer after a defined period.static com.fasterxml.jackson.core.type.TypeReference<ImportContainerDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withImportContainerDraft
(Function<ImportContainerDraft, T> helper) accessor map function
-
Method Details
-
getKey
User-defined unique identifier of the ImportContainer.
- Returns:
- key
-
getResourceType
ImportResourceType getResourceType()The resource type the ImportContainer will accept. If not specified, the ImportContainer can import all of the supported ImportResourceTypes.
- Returns:
- resourceType
-
getRetentionPolicy
Set a retention policy to automatically delete the ImportContainer after a defined period.
- Returns:
- retentionPolicy
-
setKey
User-defined unique identifier of the ImportContainer.
- Parameters:
key
- value to be set
-
setResourceType
The resource type the ImportContainer will accept. If not specified, the ImportContainer can import all of the supported ImportResourceTypes.
- Parameters:
resourceType
- value to be set
-
setRetentionPolicy
Set a retention policy to automatically delete the ImportContainer after a defined period.
- Parameters:
retentionPolicy
- value to be set
-
of
factory method- Returns:
- instance of ImportContainerDraft
-
of
factory method to create a shallow copy ImportContainerDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
ImportContainerDraft copyDeep() -
deepCopy
factory method to create a deep copy of ImportContainerDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ImportContainerDraft- Returns:
- builder
-
builder
create builder for ImportContainerDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withImportContainerDraft
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-