Class ManagementAgent.Builder
- java.lang.Object
-
- com.oracle.bmc.managementagent.model.ManagementAgent.Builder
-
- Enclosing class:
- ManagementAgent
public static class ManagementAgent.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagementAgent.Builder
availabilityStatus(AvailabilityStatus availabilityStatus)
The current availability status of managementAgentManagementAgent
build()
ManagementAgent.Builder
compartmentId(String compartmentId)
Compartment IdentifierManagementAgent.Builder
copy(ManagementAgent model)
ManagementAgent.Builder
dataSourceList(List<DataSource> dataSourceList)
list of dataSources associated with the agentManagementAgent.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.ManagementAgent.Builder
displayName(String displayName)
Management Agent NameManagementAgent.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.ManagementAgent.Builder
host(String host)
Management Agent host machine nameManagementAgent.Builder
hostId(String hostId)
Host resource ocidManagementAgent.Builder
id(String id)
agent identifierManagementAgent.Builder
installKeyId(String installKeyId)
agent install key identifierManagementAgent.Builder
installPath(String installPath)
Path where Management Agent is installedManagementAgent.Builder
installType(InstallTypes installType)
The install type, either AGENT or GATEWAYManagementAgent.Builder
isAgentAutoUpgradable(Boolean isAgentAutoUpgradable)
true if the agent can be upgraded automatically; false if it must be upgraded manually.ManagementAgent.Builder
isCustomerDeployed(Boolean isCustomerDeployed)
true, if the agent image is manually downloaded and installed.ManagementAgent.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.ManagementAgent.Builder
lifecycleState(LifecycleStates lifecycleState)
The current state of managementAgentManagementAgent.Builder
managementAgentProperties(List<ManagementAgentProperty> managementAgentProperties)
Additional properties for this Management AgentManagementAgent.Builder
platformName(String platformName)
Platform NameManagementAgent.Builder
platformType(PlatformTypes platformType)
Platform TypeManagementAgent.Builder
platformVersion(String platformVersion)
Platform VersionManagementAgent.Builder
pluginList(List<ManagementAgentPluginDetails> pluginList)
list of managementAgentPlugins associated with the agentManagementAgent.Builder
resourceArtifactVersion(String resourceArtifactVersion)
Version of the deployment artifact instantiated by this Management Agent.ManagementAgent.Builder
timeCreated(Date timeCreated)
The time the Management Agent was created.ManagementAgent.Builder
timeLastHeartbeat(Date timeLastHeartbeat)
The time the Management Agent has last recorded its health status in telemetry.ManagementAgent.Builder
timeUpdated(Date timeUpdated)
The time the Management Agent was updated.ManagementAgent.Builder
version(String version)
Management Agent Version
-
-
-
Method Detail
-
id
public ManagementAgent.Builder id(String id)
agent identifier- Parameters:
id
- the value to set- Returns:
- this builder
-
installKeyId
public ManagementAgent.Builder installKeyId(String installKeyId)
agent install key identifier- Parameters:
installKeyId
- the value to set- Returns:
- this builder
-
displayName
public ManagementAgent.Builder displayName(String displayName)
Management Agent Name- Parameters:
displayName
- the value to set- Returns:
- this builder
-
platformType
public ManagementAgent.Builder platformType(PlatformTypes platformType)
Platform Type- Parameters:
platformType
- the value to set- Returns:
- this builder
-
platformName
public ManagementAgent.Builder platformName(String platformName)
Platform Name- Parameters:
platformName
- the value to set- Returns:
- this builder
-
platformVersion
public ManagementAgent.Builder platformVersion(String platformVersion)
Platform Version- Parameters:
platformVersion
- the value to set- Returns:
- this builder
-
version
public ManagementAgent.Builder version(String version)
Management Agent Version- Parameters:
version
- the value to set- Returns:
- this builder
-
resourceArtifactVersion
public ManagementAgent.Builder resourceArtifactVersion(String resourceArtifactVersion)
Version of the deployment artifact instantiated by this Management Agent.The format for Standalone resourceMode is YYMMDD.HHMM, and the format for other modes (whose artifacts are based upon Standalone but can advance independently) is YYMMDD.HHMM.VVVVVVVVVVVV. VVVVVVVVVVVV is always a numeric value between 000000000000 and 999999999999
- Parameters:
resourceArtifactVersion
- the value to set- Returns:
- this builder
-
host
public ManagementAgent.Builder host(String host)
Management Agent host machine name- Parameters:
host
- the value to set- Returns:
- this builder
-
hostId
public ManagementAgent.Builder hostId(String hostId)
Host resource ocid- Parameters:
hostId
- the value to set- Returns:
- this builder
-
installPath
public ManagementAgent.Builder installPath(String installPath)
Path where Management Agent is installed- Parameters:
installPath
- the value to set- Returns:
- this builder
-
pluginList
public ManagementAgent.Builder pluginList(List<ManagementAgentPluginDetails> pluginList)
list of managementAgentPlugins associated with the agent- Parameters:
pluginList
- the value to set- Returns:
- this builder
-
compartmentId
public ManagementAgent.Builder compartmentId(String compartmentId)
Compartment Identifier- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
isAgentAutoUpgradable
public ManagementAgent.Builder isAgentAutoUpgradable(Boolean isAgentAutoUpgradable)
true if the agent can be upgraded automatically; false if it must be upgraded manually.This flag is derived from the tenancy level auto upgrade preference.
- Parameters:
isAgentAutoUpgradable
- the value to set- Returns:
- this builder
-
timeCreated
public ManagementAgent.Builder timeCreated(Date timeCreated)
The time the Management Agent was created.An RFC3339 formatted datetime string
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public ManagementAgent.Builder timeUpdated(Date timeUpdated)
The time the Management Agent was updated.An RFC3339 formatted datetime string
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
timeLastHeartbeat
public ManagementAgent.Builder timeLastHeartbeat(Date timeLastHeartbeat)
The time the Management Agent has last recorded its health status in telemetry.This value will be null if the agent has not recorded its health status in last 7 days. An RFC3339 formatted datetime string
- Parameters:
timeLastHeartbeat
- the value to set- Returns:
- this builder
-
availabilityStatus
public ManagementAgent.Builder availabilityStatus(AvailabilityStatus availabilityStatus)
The current availability status of managementAgent- Parameters:
availabilityStatus
- the value to set- Returns:
- this builder
-
lifecycleState
public ManagementAgent.Builder lifecycleState(LifecycleStates lifecycleState)
The current state of managementAgent- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public ManagementAgent.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in Failed state.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
isCustomerDeployed
public ManagementAgent.Builder isCustomerDeployed(Boolean isCustomerDeployed)
true, if the agent image is manually downloaded and installed.false, if the agent is deployed as a plugin in Oracle Cloud Agent.
- Parameters:
isCustomerDeployed
- the value to set- Returns:
- this builder
-
installType
public ManagementAgent.Builder installType(InstallTypes installType)
The install type, either AGENT or GATEWAY- Parameters:
installType
- the value to set- Returns:
- this builder
-
managementAgentProperties
public ManagementAgent.Builder managementAgentProperties(List<ManagementAgentProperty> managementAgentProperties)
Additional properties for this Management Agent- Parameters:
managementAgentProperties
- the value to set- Returns:
- this builder
-
dataSourceList
public ManagementAgent.Builder dataSourceList(List<DataSource> dataSourceList)
list of dataSources associated with the agent- Parameters:
dataSourceList
- the value to set- Returns:
- this builder
-
freeformTags
public ManagementAgent.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public ManagementAgent.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public ManagementAgent build()
-
copy
public ManagementAgent.Builder copy(ManagementAgent model)
-
-