Class ManagedInstance.Builder
- java.lang.Object
-
- com.oracle.bmc.osmanagementhub.model.ManagedInstance.Builder
-
- Enclosing class:
- ManagedInstance
public static class ManagedInstance.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedInstance.Builder
agentVersion(String agentVersion)
The version of osmh-agent running on the managed instanceManagedInstance.Builder
architecture(ArchType architecture)
The CPU architecture type of the managed instance.ManagedInstance.Builder
autonomousSettings(AutonomousSettings autonomousSettings)
ManagedInstance.Builder
bugUpdatesAvailable(Integer bugUpdatesAvailable)
Number of bug fix type updates available for installation.ManagedInstance
build()
ManagedInstance.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the managed instance.ManagedInstance.Builder
copy(ManagedInstance model)
ManagedInstance.Builder
description(String description)
User-specified description for the managed instance.ManagedInstance.Builder
displayName(String displayName)
User-friendly name for the managed instance.ManagedInstance.Builder
enhancementUpdatesAvailable(Integer enhancementUpdatesAvailable)
Number of enhancement type updates available for installation.ManagedInstance.Builder
id(String id)
The OCID of the managed instance.ManagedInstance.Builder
installedPackages(Integer installedPackages)
Number of packages installed on the instance.ManagedInstance.Builder
installedWindowsUpdates(Integer installedWindowsUpdates)
Number of Windows updates installed on the instance.ManagedInstance.Builder
isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether the Autonomous Linux service manages the instance.ManagedInstance.Builder
isManagementStation(Boolean isManagementStation)
Indicates whether this managed instance is acting as an on-premises management station.ManagedInstance.Builder
isRebootRequired(Boolean isRebootRequired)
Indicates whether a reboot is required to complete installation of updates.ManagedInstance.Builder
kspliceEffectiveKernelVersion(String kspliceEffectiveKernelVersion)
The ksplice effective kernel version.ManagedInstance.Builder
lifecycleEnvironment(Id lifecycleEnvironment)
ManagedInstance.Builder
lifecycleStage(Id lifecycleStage)
ManagedInstance.Builder
location(ManagedInstanceLocation location)
The location of the managed instance.ManagedInstance.Builder
managedInstanceGroup(Id managedInstanceGroup)
ManagedInstance.Builder
notificationTopicId(String notificationTopicId)
The OCID for the Oracle Notifications service (ONS) topic.ManagedInstance.Builder
osFamily(OsFamily osFamily)
The operating system type of the managed instance.ManagedInstance.Builder
osKernelVersion(String osKernelVersion)
Operating system kernel version.ManagedInstance.Builder
osName(String osName)
Operating system name.ManagedInstance.Builder
osVersion(String osVersion)
Operating system version.ManagedInstance.Builder
otherUpdatesAvailable(Integer otherUpdatesAvailable)
Number of non-classified (other) updates available for installation.ManagedInstance.Builder
primaryManagementStationId(String primaryManagementStationId)
The OCID of the management station for the instance to use as primary management station.ManagedInstance.Builder
profile(String profile)
The profile that was used to register this instance with the service.ManagedInstance.Builder
profileVersion(String profileVersion)
The version of the profile that was used to register this instance with the service.ManagedInstance.Builder
scheduledJobCount(Integer scheduledJobCount)
Number of scheduled jobs associated with this instance.ManagedInstance.Builder
secondaryManagementStationId(String secondaryManagementStationId)
The OCID of the management station for the instance to use as secondary management station.ManagedInstance.Builder
securityUpdatesAvailable(Integer securityUpdatesAvailable)
Number of security type updates available for installation.ManagedInstance.Builder
softwareSources(List<SoftwareSourceDetails> softwareSources)
The list of software sources currently attached to the managed instance.ManagedInstance.Builder
status(ManagedInstanceStatus status)
Current status of the managed instance.ManagedInstance.Builder
tenancyId(String tenancyId)
The OCID of the tenancy that the managed instance resides in.ManagedInstance.Builder
timeCreated(Date timeCreated)
The date and time the instance was created (in RFC 3339 format).ManagedInstance.Builder
timeLastBoot(Date timeLastBoot)
Time that the instance last booted (in RFC 3339 format).ManagedInstance.Builder
timeLastCheckin(Date timeLastCheckin)
Time that the instance last checked in with the service (in RFC 3339 format).ManagedInstance.Builder
timeUpdated(Date timeUpdated)
The date and time the instance was last updated (in RFC 3339 format).ManagedInstance.Builder
updatesAvailable(Integer updatesAvailable)
Number of updates available for installation.ManagedInstance.Builder
workRequestCount(Integer workRequestCount)
Number of work requests associated with this instance.
-
-
-
Method Detail
-
id
public ManagedInstance.Builder id(String id)
The OCID of the managed instance.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public ManagedInstance.Builder displayName(String displayName)
User-friendly name for the managed instance.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public ManagedInstance.Builder description(String description)
User-specified description for the managed instance.- Parameters:
description
- the value to set- Returns:
- this builder
-
tenancyId
public ManagedInstance.Builder tenancyId(String tenancyId)
The OCID of the tenancy that the managed instance resides in.- Parameters:
tenancyId
- the value to set- Returns:
- this builder
-
compartmentId
public ManagedInstance.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the managed instance.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
location
public ManagedInstance.Builder location(ManagedInstanceLocation location)
The location of the managed instance.- Parameters:
location
- the value to set- Returns:
- this builder
-
timeLastCheckin
public ManagedInstance.Builder timeLastCheckin(Date timeLastCheckin)
Time that the instance last checked in with the service (in RFC 3339 format).- Parameters:
timeLastCheckin
- the value to set- Returns:
- this builder
-
timeLastBoot
public ManagedInstance.Builder timeLastBoot(Date timeLastBoot)
Time that the instance last booted (in RFC 3339 format).- Parameters:
timeLastBoot
- the value to set- Returns:
- this builder
-
osName
public ManagedInstance.Builder osName(String osName)
Operating system name.- Parameters:
osName
- the value to set- Returns:
- this builder
-
osVersion
public ManagedInstance.Builder osVersion(String osVersion)
Operating system version.- Parameters:
osVersion
- the value to set- Returns:
- this builder
-
osKernelVersion
public ManagedInstance.Builder osKernelVersion(String osKernelVersion)
Operating system kernel version.- Parameters:
osKernelVersion
- the value to set- Returns:
- this builder
-
kspliceEffectiveKernelVersion
public ManagedInstance.Builder kspliceEffectiveKernelVersion(String kspliceEffectiveKernelVersion)
The ksplice effective kernel version.- Parameters:
kspliceEffectiveKernelVersion
- the value to set- Returns:
- this builder
-
architecture
public ManagedInstance.Builder architecture(ArchType architecture)
The CPU architecture type of the managed instance.- Parameters:
architecture
- the value to set- Returns:
- this builder
-
osFamily
public ManagedInstance.Builder osFamily(OsFamily osFamily)
The operating system type of the managed instance.- Parameters:
osFamily
- the value to set- Returns:
- this builder
-
status
public ManagedInstance.Builder status(ManagedInstanceStatus status)
Current status of the managed instance.- Parameters:
status
- the value to set- Returns:
- this builder
-
profile
public ManagedInstance.Builder profile(String profile)
The profile that was used to register this instance with the service.- Parameters:
profile
- the value to set- Returns:
- this builder
-
profileVersion
public ManagedInstance.Builder profileVersion(String profileVersion)
The version of the profile that was used to register this instance with the service.- Parameters:
profileVersion
- the value to set- Returns:
- this builder
-
isManagementStation
public ManagedInstance.Builder isManagementStation(Boolean isManagementStation)
Indicates whether this managed instance is acting as an on-premises management station.- Parameters:
isManagementStation
- the value to set- Returns:
- this builder
-
primaryManagementStationId
public ManagedInstance.Builder primaryManagementStationId(String primaryManagementStationId)
The OCID of the management station for the instance to use as primary management station.- Parameters:
primaryManagementStationId
- the value to set- Returns:
- this builder
-
secondaryManagementStationId
public ManagedInstance.Builder secondaryManagementStationId(String secondaryManagementStationId)
The OCID of the management station for the instance to use as secondary management station.- Parameters:
secondaryManagementStationId
- the value to set- Returns:
- this builder
-
softwareSources
public ManagedInstance.Builder softwareSources(List<SoftwareSourceDetails> softwareSources)
The list of software sources currently attached to the managed instance.- Parameters:
softwareSources
- the value to set- Returns:
- this builder
-
managedInstanceGroup
public ManagedInstance.Builder managedInstanceGroup(Id managedInstanceGroup)
-
lifecycleEnvironment
public ManagedInstance.Builder lifecycleEnvironment(Id lifecycleEnvironment)
-
lifecycleStage
public ManagedInstance.Builder lifecycleStage(Id lifecycleStage)
-
isRebootRequired
public ManagedInstance.Builder isRebootRequired(Boolean isRebootRequired)
Indicates whether a reboot is required to complete installation of updates.- Parameters:
isRebootRequired
- the value to set- Returns:
- this builder
-
installedPackages
public ManagedInstance.Builder installedPackages(Integer installedPackages)
Number of packages installed on the instance.- Parameters:
installedPackages
- the value to set- Returns:
- this builder
-
installedWindowsUpdates
public ManagedInstance.Builder installedWindowsUpdates(Integer installedWindowsUpdates)
Number of Windows updates installed on the instance.- Parameters:
installedWindowsUpdates
- the value to set- Returns:
- this builder
-
updatesAvailable
public ManagedInstance.Builder updatesAvailable(Integer updatesAvailable)
Number of updates available for installation.- Parameters:
updatesAvailable
- the value to set- Returns:
- this builder
-
securityUpdatesAvailable
public ManagedInstance.Builder securityUpdatesAvailable(Integer securityUpdatesAvailable)
Number of security type updates available for installation.- Parameters:
securityUpdatesAvailable
- the value to set- Returns:
- this builder
-
bugUpdatesAvailable
public ManagedInstance.Builder bugUpdatesAvailable(Integer bugUpdatesAvailable)
Number of bug fix type updates available for installation.- Parameters:
bugUpdatesAvailable
- the value to set- Returns:
- this builder
-
enhancementUpdatesAvailable
public ManagedInstance.Builder enhancementUpdatesAvailable(Integer enhancementUpdatesAvailable)
Number of enhancement type updates available for installation.- Parameters:
enhancementUpdatesAvailable
- the value to set- Returns:
- this builder
-
otherUpdatesAvailable
public ManagedInstance.Builder otherUpdatesAvailable(Integer otherUpdatesAvailable)
Number of non-classified (other) updates available for installation.- Parameters:
otherUpdatesAvailable
- the value to set- Returns:
- this builder
-
scheduledJobCount
public ManagedInstance.Builder scheduledJobCount(Integer scheduledJobCount)
Number of scheduled jobs associated with this instance.- Parameters:
scheduledJobCount
- the value to set- Returns:
- this builder
-
workRequestCount
public ManagedInstance.Builder workRequestCount(Integer workRequestCount)
Number of work requests associated with this instance.- Parameters:
workRequestCount
- the value to set- Returns:
- this builder
-
timeCreated
public ManagedInstance.Builder timeCreated(Date timeCreated)
The date and time the instance was created (in RFC 3339 format).- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public ManagedInstance.Builder timeUpdated(Date timeUpdated)
The date and time the instance was last updated (in RFC 3339 format).- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
notificationTopicId
public ManagedInstance.Builder notificationTopicId(String notificationTopicId)
The OCID for the Oracle Notifications service (ONS) topic.ONS is the channel used to send notifications to the customer.
- Parameters:
notificationTopicId
- the value to set- Returns:
- this builder
-
autonomousSettings
public ManagedInstance.Builder autonomousSettings(AutonomousSettings autonomousSettings)
-
isManagedByAutonomousLinux
public ManagedInstance.Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether the Autonomous Linux service manages the instance.- Parameters:
isManagedByAutonomousLinux
- the value to set- Returns:
- this builder
-
agentVersion
public ManagedInstance.Builder agentVersion(String agentVersion)
The version of osmh-agent running on the managed instance- Parameters:
agentVersion
- the value to set- Returns:
- this builder
-
build
public ManagedInstance build()
-
copy
public ManagedInstance.Builder copy(ManagedInstance model)
-
-