UpdateInfo.Builder


public final class UpdateInfo.Builder


Builder class for creating an instance of UpdateInfo.

Summary

Public constructors

Public methods

final @NonNull UpdateInfo

Builds and returns an UpdateInfo object.

final @NonNull UpdateInfo.Builder

Sets the component associated with the update.

final @NonNull UpdateInfo.Builder
setPublishedDate(@NonNull Date publishedDate)

Sets the publication date of the update.

final @NonNull UpdateInfo.Builder
setSecurityPatchLevel(@NonNull String securityPatchLevel)

Sets the security patch level of the update.

final @NonNull UpdateInfo.Builder

Sets the URI of the update.

Public constructors

Builder

Added in 1.0.0-alpha04
public Builder()

Public methods

build

Added in 1.0.0-alpha04
public final @NonNull UpdateInfo build()

Builds and returns an UpdateInfo object.

Returns
@NonNull UpdateInfo

The constructed UpdateInfo.

setComponent

Added in 1.0.0-alpha04
public final @NonNull UpdateInfo.Builder setComponent(@NonNull String component)

Sets the component associated with the update.

Parameters
@NonNull String component

The component to set.

Returns
@NonNull UpdateInfo.Builder

The builder instance for chaining.

setPublishedDate

Added in 1.0.0-alpha04
public final @NonNull UpdateInfo.Builder setPublishedDate(@NonNull Date publishedDate)

Sets the publication date of the update.

Parameters
@NonNull Date publishedDate

The date to set.

Returns
@NonNull UpdateInfo.Builder

The builder instance for chaining.

setSecurityPatchLevel

Added in 1.0.0-alpha04
public final @NonNull UpdateInfo.Builder setSecurityPatchLevel(@NonNull String securityPatchLevel)

Sets the security patch level of the update.

Parameters
@NonNull String securityPatchLevel

The security patch level to set.

Returns
@NonNull UpdateInfo.Builder

The builder instance for chaining.

setUri

Added in 1.0.0-alpha04
public final @NonNull UpdateInfo.Builder setUri(@NonNull String uri)

Sets the URI of the update.

Parameters
@NonNull String uri

The URI to set.

Returns
@NonNull UpdateInfo.Builder

The builder instance for chaining.