Class ManagementStation.Builder
- java.lang.Object
-
- com.oracle.bmc.osmanagementhub.model.ManagementStation.Builder
-
- Enclosing class:
- ManagementStation
public static class ManagementStation.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagementStation
build()
ManagementStation.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the management station.ManagementStation.Builder
copy(ManagementStation model)
ManagementStation.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.ManagementStation.Builder
description(String description)
User-specified description for the management station.ManagementStation.Builder
displayName(String displayName)
A user-friendly name for the management station.ManagementStation.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.ManagementStation.Builder
health(StationHealth health)
ManagementStation.Builder
hostname(String hostname)
Hostname of the management station.ManagementStation.Builder
id(String id)
The OCID of the management station.ManagementStation.Builder
isAutoConfigEnabled(Boolean isAutoConfigEnabled)
When enabled, the station setup script automatically runs to configure the firewall and SELinux settings on the station.ManagementStation.Builder
lifecycleState(ManagementStation.LifecycleState lifecycleState)
The current state of the management station.ManagementStation.Builder
location(ManagedInstanceLocation location)
The location of the instance that is acting as the management station.ManagementStation.Builder
managedInstanceId(String managedInstanceId)
The OCID of the instance that is acting as the management station.ManagementStation.Builder
mirror(MirrorConfiguration mirror)
ManagementStation.Builder
mirrorCapacity(Integer mirrorCapacity)
A decimal number representing the amount of mirror capacity used by the sync.ManagementStation.Builder
mirrorPackageCount(Integer mirrorPackageCount)
The total number of all packages within the mirrored software sources.ManagementStation.Builder
mirrorSize(Long mirrorSize)
The total size of all software source mirrors in bytes.ManagementStation.Builder
mirrorStorageAvailableSize(Long mirrorStorageAvailableSize)
Amount of available mirror storage in bytes.ManagementStation.Builder
mirrorStorageSize(Long mirrorStorageSize)
Total mirror storage size in bytes.ManagementStation.Builder
mirrorSyncStatus(MirrorSyncStatus mirrorSyncStatus)
ManagementStation.Builder
mirrorUniquePackageCount(Integer mirrorUniquePackageCount)
The total number of unique packages within the mirrored software sources on the station.ManagementStation.Builder
overallPercentage(Integer overallPercentage)
A decimal number representing the progress of the current mirror sync.ManagementStation.Builder
overallState(OverallState overallState)
Current state of the mirror sync for the management station.ManagementStation.Builder
peerManagementStations(List<PeerManagementStation> peerManagementStations)
A list of other management stations that are behind the same load balancer within a high availability configuration.ManagementStation.Builder
profileId(String profileId)
The OCID of the registration profile used for the management station.ManagementStation.Builder
proxy(ProxyConfiguration proxy)
ManagementStation.Builder
scheduledJobId(String scheduledJobId)
The OCID of the scheduled job for the mirror sync.ManagementStation.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.ManagementStation.Builder
totalMirrors(Integer totalMirrors)
The number of software sources that the station is mirroring.
-
-
-
Method Detail
-
id
public ManagementStation.Builder id(String id)
The OCID of the management station.- Parameters:
id
- the value to set- Returns:
- this builder
-
managedInstanceId
public ManagementStation.Builder managedInstanceId(String managedInstanceId)
The OCID of the instance that is acting as the management station.- Parameters:
managedInstanceId
- the value to set- Returns:
- this builder
-
compartmentId
public ManagementStation.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the management station.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
scheduledJobId
public ManagementStation.Builder scheduledJobId(String scheduledJobId)
The OCID of the scheduled job for the mirror sync.- Parameters:
scheduledJobId
- the value to set- Returns:
- this builder
-
profileId
public ManagementStation.Builder profileId(String profileId)
The OCID of the registration profile used for the management station.- Parameters:
profileId
- the value to set- Returns:
- this builder
-
displayName
public ManagementStation.Builder displayName(String displayName)
A user-friendly name for the management station.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public ManagementStation.Builder description(String description)
User-specified description for the management station.- Parameters:
description
- the value to set- Returns:
- this builder
-
hostname
public ManagementStation.Builder hostname(String hostname)
Hostname of the management station.- Parameters:
hostname
- the value to set- Returns:
- this builder
-
overallState
public ManagementStation.Builder overallState(OverallState overallState)
Current state of the mirror sync for the management station.- Parameters:
overallState
- the value to set- Returns:
- this builder
-
overallPercentage
public ManagementStation.Builder overallPercentage(Integer overallPercentage)
A decimal number representing the progress of the current mirror sync.- Parameters:
overallPercentage
- the value to set- Returns:
- this builder
-
mirrorCapacity
public ManagementStation.Builder mirrorCapacity(Integer mirrorCapacity)
A decimal number representing the amount of mirror capacity used by the sync.- Parameters:
mirrorCapacity
- the value to set- Returns:
- this builder
-
totalMirrors
public ManagementStation.Builder totalMirrors(Integer totalMirrors)
The number of software sources that the station is mirroring.- Parameters:
totalMirrors
- the value to set- Returns:
- this builder
-
mirrorSyncStatus
public ManagementStation.Builder mirrorSyncStatus(MirrorSyncStatus mirrorSyncStatus)
-
proxy
public ManagementStation.Builder proxy(ProxyConfiguration proxy)
-
mirror
public ManagementStation.Builder mirror(MirrorConfiguration mirror)
-
health
public ManagementStation.Builder health(StationHealth health)
-
lifecycleState
public ManagementStation.Builder lifecycleState(ManagementStation.LifecycleState lifecycleState)
The current state of the management station.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
isAutoConfigEnabled
public ManagementStation.Builder isAutoConfigEnabled(Boolean isAutoConfigEnabled)
When enabled, the station setup script automatically runs to configure the firewall and SELinux settings on the station.- Parameters:
isAutoConfigEnabled
- the value to set- Returns:
- this builder
-
peerManagementStations
public ManagementStation.Builder peerManagementStations(List<PeerManagementStation> peerManagementStations)
A list of other management stations that are behind the same load balancer within a high availability configuration.Stations are identified as peers if they have the same hostname and compartment.
- Parameters:
peerManagementStations
- the value to set- Returns:
- this builder
-
location
public ManagementStation.Builder location(ManagedInstanceLocation location)
The location of the instance that is acting as the management station.- Parameters:
location
- the value to set- Returns:
- this builder
-
mirrorStorageAvailableSize
public ManagementStation.Builder mirrorStorageAvailableSize(Long mirrorStorageAvailableSize)
Amount of available mirror storage in bytes.- Parameters:
mirrorStorageAvailableSize
- the value to set- Returns:
- this builder
-
mirrorStorageSize
public ManagementStation.Builder mirrorStorageSize(Long mirrorStorageSize)
Total mirror storage size in bytes.- Parameters:
mirrorStorageSize
- the value to set- Returns:
- this builder
-
mirrorSize
public ManagementStation.Builder mirrorSize(Long mirrorSize)
The total size of all software source mirrors in bytes.- Parameters:
mirrorSize
- the value to set- Returns:
- this builder
-
mirrorUniquePackageCount
public ManagementStation.Builder mirrorUniquePackageCount(Integer mirrorUniquePackageCount)
The total number of unique packages within the mirrored software sources on the station.Each package is counted only once, regardless of how many versions it has.
- Parameters:
mirrorUniquePackageCount
- the value to set- Returns:
- this builder
-
mirrorPackageCount
public ManagementStation.Builder mirrorPackageCount(Integer mirrorPackageCount)
The total number of all packages within the mirrored software sources.- Parameters:
mirrorPackageCount
- the value to set- Returns:
- this builder
-
freeformTags
public ManagementStation.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public ManagementStation.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public ManagementStation.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public ManagementStation build()
-
copy
public ManagementStation.Builder copy(ManagementStation model)
-
-