public static class SoftwarePackage.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SoftwarePackage.Builder |
architecture(SoftwarePackageArchitecture architecture)
The architecture for which this software was built
|
SoftwarePackage |
build() |
SoftwarePackage.Builder |
checksum(String checksum)
Checksum of the package.
|
SoftwarePackage.Builder |
checksumType(String checksumType)
Type of the checksum.
|
SoftwarePackage.Builder |
copy(SoftwarePackage model) |
SoftwarePackage.Builder |
dependencies(List<SoftwarePackageDependency> dependencies)
List of dependencies for the software package.
|
SoftwarePackage.Builder |
description(String description)
Description of the package.
|
SoftwarePackage.Builder |
displayName(String displayName)
Package name.
|
SoftwarePackage.Builder |
files(List<SoftwarePackageFile> files)
List of files for the software package.
|
SoftwarePackage.Builder |
isLatest(Boolean isLatest)
Indicates whether this package is the latest version.
|
SoftwarePackage.Builder |
lastModifiedDate(String lastModifiedDate)
The date and time the package was last modified (in RFC
3339 format).
|
SoftwarePackage.Builder |
name(String name)
Unique identifier for the package.
|
SoftwarePackage.Builder |
osFamilies(List<OsFamily> osFamilies)
The OS families the package belongs to.
|
SoftwarePackage.Builder |
sizeInBytes(Long sizeInBytes)
Size of the package in bytes.
|
SoftwarePackage.Builder |
softwareSources(List<SoftwareSourceDetails> softwareSources)
List of software sources that provide the software package.
|
SoftwarePackage.Builder |
type(String type)
Type of the package.
|
SoftwarePackage.Builder |
version(String version)
Version of the package.
|
public SoftwarePackage.Builder displayName(String displayName)
Package name.
displayName
- the value to setpublic SoftwarePackage.Builder name(String name)
Unique identifier for the package. Note that this is not an OCID.
name
- the value to setpublic SoftwarePackage.Builder type(String type)
Type of the package.
type
- the value to setpublic SoftwarePackage.Builder version(String version)
Version of the package.
version
- the value to setpublic SoftwarePackage.Builder architecture(SoftwarePackageArchitecture architecture)
The architecture for which this software was built
architecture
- the value to setpublic SoftwarePackage.Builder lastModifiedDate(String lastModifiedDate)
The date and time the package was last modified (in RFC 3339 format).
lastModifiedDate
- the value to setpublic SoftwarePackage.Builder checksum(String checksum)
Checksum of the package.
checksum
- the value to setpublic SoftwarePackage.Builder checksumType(String checksumType)
Type of the checksum.
checksumType
- the value to setpublic SoftwarePackage.Builder description(String description)
Description of the package.
description
- the value to setpublic SoftwarePackage.Builder sizeInBytes(Long sizeInBytes)
Size of the package in bytes.
sizeInBytes
- the value to setpublic SoftwarePackage.Builder dependencies(List<SoftwarePackageDependency> dependencies)
List of dependencies for the software package.
dependencies
- the value to setpublic SoftwarePackage.Builder files(List<SoftwarePackageFile> files)
List of files for the software package.
files
- the value to setpublic SoftwarePackage.Builder softwareSources(List<SoftwareSourceDetails> softwareSources)
List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
softwareSources
- the value to setpublic SoftwarePackage.Builder isLatest(Boolean isLatest)
Indicates whether this package is the latest version.
isLatest
- the value to setpublic SoftwarePackage.Builder osFamilies(List<OsFamily> osFamilies)
The OS families the package belongs to.
osFamilies
- the value to setpublic SoftwarePackage build()
public SoftwarePackage.Builder copy(SoftwarePackage model)
Copyright © 2016–2024. All rights reserved.