UpdateInfo.Builder


class UpdateInfo.Builder


Builder class for creating an instance of UpdateInfo.

Summary

Public constructors

Public functions

UpdateInfo

Builds and returns an UpdateInfo object.

UpdateInfo.Builder
setComponent(component: String)

Sets the component associated with the update.

UpdateInfo.Builder
setPublishedDate(publishedDate: Date)

Sets the publication date of the update.

UpdateInfo.Builder
setSecurityPatchLevel(securityPatchLevel: String)

Sets the security patch level of the update.

UpdateInfo.Builder
setUri(uri: String)

Sets the URI of the update.

Public constructors

Builder

Added in 1.0.0-alpha04
Builder()

Public functions

build

Added in 1.0.0-alpha04
fun build(): UpdateInfo

Builds and returns an UpdateInfo object.

Returns
UpdateInfo

The constructed UpdateInfo.

setComponent

Added in 1.0.0-alpha04
fun setComponent(component: String): UpdateInfo.Builder

Sets the component associated with the update.

Parameters
component: String

The component to set.

Returns
UpdateInfo.Builder

The builder instance for chaining.

setPublishedDate

Added in 1.0.0-alpha04
fun setPublishedDate(publishedDate: Date): UpdateInfo.Builder

Sets the publication date of the update.

Parameters
publishedDate: Date

The date to set.

Returns
UpdateInfo.Builder

The builder instance for chaining.

setSecurityPatchLevel

Added in 1.0.0-alpha04
fun setSecurityPatchLevel(securityPatchLevel: String): UpdateInfo.Builder

Sets the security patch level of the update.

Parameters
securityPatchLevel: String

The security patch level to set.

Returns
UpdateInfo.Builder

The builder instance for chaining.

setUri

Added in 1.0.0-alpha04
fun setUri(uri: String): UpdateInfo.Builder

Sets the URI of the update.

Parameters
uri: String

The URI to set.

Returns
UpdateInfo.Builder

The builder instance for chaining.