public static class PackageSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PackageSummary |
build() |
PackageSummary.Builder |
copy(PackageSummary model) |
PackageSummary.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.
|
PackageSummary.Builder |
description(String description)
Description of the package.
|
PackageSummary.Builder |
displayName(String displayName)
Display name for the package (displayed in UI and user-facing applications).
|
PackageSummary.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.
|
PackageSummary.Builder |
id(String id)
Unique immutable identifier that was assigned when the Package was registered.
|
PackageSummary.Builder |
name(String name)
Name of package.
|
PackageSummary.Builder |
publisherId(String publisherId)
ID of the publisher providing the package.
|
PackageSummary.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.
|
PackageSummary.Builder |
resourceTypes(List<String> resourceTypes)
A list of resource types describing the content of the package.
|
PackageSummary.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..
|
PackageSummary.Builder |
timePublished(Date timePublished)
When the package was last published.
|
PackageSummary.Builder |
version(String version)
Version of the package.
|
public PackageSummary.Builder id(String id)
Unique immutable identifier that was assigned when the Package was registered.
id
- the value to setpublic PackageSummary.Builder publisherId(String publisherId)
ID of the publisher providing the package.
publisherId
- the value to setpublic PackageSummary.Builder name(String name)
Name of package.
name
- the value to setpublic PackageSummary.Builder displayName(String displayName)
Display name for the package (displayed in UI and user-facing applications).
displayName
- the value to setpublic PackageSummary.Builder version(String version)
Version of the package.
version
- the value to setpublic PackageSummary.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 PackageSummary.Builder description(String description)
Description of the package.
description
- the value to setpublic PackageSummary.Builder resourceTypes(List<String> resourceTypes)
A list of resource types describing the content of the package.
resourceTypes
- the value to setpublic PackageSummary.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 PackageSummary.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 PackageSummary.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 PackageSummary.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 PackageSummary build()
public PackageSummary.Builder copy(PackageSummary model)
Copyright © 2016–2024. All rights reserved.