Class Fleet.Builder
- java.lang.Object
-
- com.oracle.bmc.fleetappsmanagement.model.Fleet.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Fleetbuild()Fleet.BuildercompartmentId(String compartmentId)Compartment OCIDFleet.Buildercopy(Fleet model)Fleet.Buildercredentials(List<AssociatedFleetCredentialDetails> credentials)Credentials associated with the Fleet.Fleet.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Fleet.Builderdescription(String description)A user-friendly description.Fleet.Builderdetails(FleetDetails details)Fleet.BuilderdisplayName(String displayName)A user-friendly name.Fleet.BuilderenvironmentType(String environmentType)Environment Type associated with the Fleet.Fleet.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.Fleet.Builderid(String id)The OCID of the resource.Fleet.BuilderisTargetAutoConfirm(Boolean isTargetAutoConfirm)A value that represents if auto-confirming of the targets can be enabled.Fleet.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.Fleet.BuilderlifecycleState(Fleet.LifecycleState lifecycleState)The lifecycle state of the Fleet.Fleet.BuildernotificationPreferences(List<NotificationPreference> notificationPreferences)Notification Preferences associated with the Fleet.Fleet.BuilderparentFleetId(String parentFleetId)The OCID of the fleet that would be the parent for this fleet.Fleet.Builderproducts(List<String> products)Products associated with the Fleet.Fleet.Builderproperties(List<AssociatedFleetPropertyDetails> properties)Properties associated with the Fleet.Fleet.BuilderresourceRegion(String resourceRegion)Associated regionFleet.Builderresources(List<AssociatedFleetResourceDetails> resources)Resources associated with the Fleet if resourceSelectionType is MANUAL.Fleet.BuilderresourceSelection(ResourceSelection resourceSelection)Fleet.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.Fleet.BuildertimeCreated(Date timeCreated)The time this resource was created.Fleet.BuildertimeUpdated(Date timeUpdated)The time this resource was last updated.
-
-
-
Method Detail
-
id
public Fleet.Builder id(String id)
The OCID of the resource.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public Fleet.Builder compartmentId(String compartmentId)
Compartment OCID- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
resourceRegion
public Fleet.Builder resourceRegion(String resourceRegion)
Associated region- Parameters:
resourceRegion- the value to set- Returns:
- this builder
-
displayName
public Fleet.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
Example: My new resource
- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public Fleet.Builder description(String description)
A user-friendly description.To provide some insight about the resource. Avoid entering confidential information.
- Parameters:
description- the value to set- Returns:
- this builder
-
timeCreated
public Fleet.Builder timeCreated(Date timeCreated)
The time this resource was created.An RFC3339 formatted datetime string.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public Fleet.Builder timeUpdated(Date timeUpdated)
The time this resource was last updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
products
public Fleet.Builder products(List<String> products)
Products associated with the Fleet.- Parameters:
products- the value to set- Returns:
- this builder
-
details
public Fleet.Builder details(FleetDetails details)
-
environmentType
public Fleet.Builder environmentType(String environmentType)
Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
- Parameters:
environmentType- the value to set- Returns:
- this builder
-
resourceSelection
public Fleet.Builder resourceSelection(ResourceSelection resourceSelection)
-
notificationPreferences
public Fleet.Builder notificationPreferences(List<NotificationPreference> notificationPreferences)
Notification Preferences associated with the Fleet.- Parameters:
notificationPreferences- the value to set- Returns:
- this builder
-
resources
public Fleet.Builder resources(List<AssociatedFleetResourceDetails> resources)
Resources associated with the Fleet if resourceSelectionType is MANUAL.- Parameters:
resources- the value to set- Returns:
- this builder
-
properties
public Fleet.Builder properties(List<AssociatedFleetPropertyDetails> properties)
Properties associated with the Fleet.- Parameters:
properties- the value to set- Returns:
- this builder
-
credentials
public Fleet.Builder credentials(List<AssociatedFleetCredentialDetails> credentials)
Credentials associated with the Fleet.- Parameters:
credentials- the value to set- Returns:
- this builder
-
parentFleetId
public Fleet.Builder parentFleetId(String parentFleetId)
The OCID of the fleet that would be the parent for this fleet.- Parameters:
parentFleetId- the value to set- Returns:
- this builder
-
isTargetAutoConfirm
public Fleet.Builder isTargetAutoConfirm(Boolean isTargetAutoConfirm)
A value that represents if auto-confirming of the targets can be enabled.This will allow targets to be auto-confirmed in the fleet without manual intervention.
- Parameters:
isTargetAutoConfirm- the value to set- Returns:
- this builder
-
lifecycleState
public Fleet.Builder lifecycleState(Fleet.LifecycleState lifecycleState)
The lifecycle state of the Fleet.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public Fleet.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
-
freeformTags
public Fleet.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 Fleet.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
-
systemTags
public Fleet.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 Fleet build()
-
copy
public Fleet.Builder copy(Fleet model)
-
-