public static class PackageItem.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PackageItem |
build() |
PackageItem.Builder |
copy(PackageItem model) |
PackageItem.Builder |
defaultParameterValues(DefaultParameterValues defaultParameterValues) |
PackageItem.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.
|
PackageItem.Builder |
description(String description)
Description of the package.
|
PackageItem.Builder |
displayName(String displayName)
Display name for the package (displayed in UI and user-facing applications).
|
PackageItem.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.
|
PackageItem.Builder |
id(String id)
Unique immutable identifier that was assigned when the Package was registered.
|
PackageItem.Builder |
importContract(ImportContract importContract) |
PackageItem.Builder |
name(String name)
Name of package.
|
PackageItem.Builder |
publisherId(String publisherId)
ID of the publisher providing the package.
|
PackageItem.Builder |
publisherMetadata(List<MetadataProperty> publisherMetadata)
A map of metadata key/value pairs that further describes the publisher and the platform
in which the package might be used.
|
PackageItem.Builder |
resourceTypes(List<String> resourceTypes)
A list of resource types describing the content of the package.
|
PackageItem.Builder |
resourceTypesMetadata(List<ResourceTypeMetadata> resourceTypesMetadata)
A map of resource type to metadata key/value map that further describes the content for
the resource types in this package..
|
PackageItem.Builder |
timePublished(Date timePublished)
When the package was last published.
|
PackageItem.Builder |
timeUploaded(Date timeUploaded)
When the package was uploaded.
|
PackageItem.Builder |
version(String version)
Version of the package.
|
public PackageItem.Builder id(String id)
Unique immutable identifier that was assigned when the Package was registered.
id
- the value to setpublic PackageItem.Builder publisherId(String publisherId)
ID of the publisher providing the package.
publisherId
- the value to setpublic PackageItem.Builder name(String name)
Name of package.
name
- the value to setpublic PackageItem.Builder displayName(String displayName)
Display name for the package (displayed in UI and user-facing applications).
displayName
- the value to setpublic PackageItem.Builder version(String version)
Version of the package.
version
- the value to setpublic PackageItem.Builder timeUploaded(Date timeUploaded)
When the package was uploaded. A date-time string as described in RFC 3339, section 14.29.
timeUploaded
- the value to setpublic PackageItem.Builder timePublished(Date timePublished)
When the package was last published. A date-time string as described in RFC 3339, section 14.29.
timePublished
- the value to setpublic PackageItem.Builder description(String description)
Description of the package.
description
- the value to setpublic PackageItem.Builder resourceTypes(List<String> resourceTypes)
A list of resource types describing the content of the package.
resourceTypes
- the value to setpublic PackageItem.Builder resourceTypesMetadata(List<ResourceTypeMetadata> resourceTypesMetadata)
A map of resource type to metadata key/value map that further describes the content for the resource types in this package.. Keys are resource type names, values are a map of name/value pairs per resource type.
resourceTypesMetadata
- the value to setpublic PackageItem.Builder publisherMetadata(List<MetadataProperty> publisherMetadata)
A map of metadata key/value pairs that further describes the publisher and the platform in which the package might be used.
publisherMetadata
- the value to setpublic PackageItem.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.
Example: {"bar-key": "value"}
freeformTags
- the value to setpublic PackageItem.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"foo-namespace": {"bar-key": "value"}}
definedTags
- the value to setpublic PackageItem.Builder importContract(ImportContract importContract)
public PackageItem.Builder defaultParameterValues(DefaultParameterValues defaultParameterValues)
public PackageItem build()
public PackageItem.Builder copy(PackageItem model)
Copyright © 2016–2024. All rights reserved.