Class FleetResource.Builder
- java.lang.Object
- 
- com.oracle.bmc.fleetappsmanagement.model.FleetResource.Builder
 
- 
- Enclosing class:
- FleetResource
 
 public static class FleetResource.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FleetResourcebuild()FleetResource.Buildercompartment(String compartment)Resource Compartment name.FleetResource.BuildercompartmentId(String compartmentId)OCID of the compartment to which the resource belongs to.FleetResource.BuildercomplianceState(ComplianceState complianceState)Compliance State of the Resource.FleetResource.Buildercopy(FleetResource model)FleetResource.BuilderdisplayName(String displayName)A user-friendly name.FleetResource.BuilderenvironmentType(String environmentType)Environment Type associated with the Fleet when the resource type is fleet.FleetResource.Builderid(String id)The unique id of the resource.FleetResource.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.FleetResource.BuilderlifecycleState(FleetResource.LifecycleState lifecycleState)The current state of the FleetResource.FleetResource.BuilderpercentCompliant(Float percentCompliant)The compliance percentage.FleetResource.Builderproduct(String product)Product associated with the resource when the resource type is fleet.FleetResource.BuilderproductCount(Integer productCount)Count of products within the resource.FleetResource.BuilderresourceId(String resourceId)The OCID of the resource.FleetResource.BuilderresourceRegion(String resourceRegion)Associated regionFleetResource.BuilderresourceType(String resourceType)Type of the Resource.FleetResource.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.FleetResource.BuildertargetCount(Integer targetCount)Count of targets within the resource.FleetResource.BuildertenancyId(String tenancyId)OCID of the tenancy to which the resource belongs to.FleetResource.BuildertenancyName(String tenancyName)Resource Tenancy Name.FleetResource.BuildertimeCreated(Date timeCreated)The time this resource was created.FleetResource.BuildertimeUpdated(Date timeUpdated)The time this resource was last updated.
 
- 
- 
- 
Method Detail- 
idpublic FleetResource.Builder id(String id) The unique id of the resource.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
tenancyIdpublic FleetResource.Builder tenancyId(String tenancyId) OCID of the tenancy to which the resource belongs to.- Parameters:
- tenancyId- the value to set
- Returns:
- this builder
 
 - 
resourceRegionpublic FleetResource.Builder resourceRegion(String resourceRegion) Associated region- Parameters:
- resourceRegion- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic FleetResource.Builder timeCreated(Date timeCreated) The time this resource was created.An RFC3339 formatted datetime string. - Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic FleetResource.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
 
 - 
compartmentIdpublic FleetResource.Builder compartmentId(String compartmentId) OCID of the compartment to which the resource belongs to.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic FleetResource.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
 
 - 
resourceIdpublic FleetResource.Builder resourceId(String resourceId) The OCID of the resource.- Parameters:
- resourceId- the value to set
- Returns:
- this builder
 
 - 
compartmentpublic FleetResource.Builder compartment(String compartment) Resource Compartment name.- Parameters:
- compartment- the value to set
- Returns:
- this builder
 
 - 
complianceStatepublic FleetResource.Builder complianceState(ComplianceState complianceState) Compliance State of the Resource.- Parameters:
- complianceState- the value to set
- Returns:
- this builder
 
 - 
percentCompliantpublic FleetResource.Builder percentCompliant(Float percentCompliant) The compliance percentage.- Parameters:
- percentCompliant- the value to set
- Returns:
- this builder
 
 - 
tenancyNamepublic FleetResource.Builder tenancyName(String tenancyName) Resource Tenancy Name.- Parameters:
- tenancyName- the value to set
- Returns:
- this builder
 
 - 
resourceTypepublic FleetResource.Builder resourceType(String resourceType) Type of the Resource.- Parameters:
- resourceType- the value to set
- Returns:
- this builder
 
 - 
productCountpublic FleetResource.Builder productCount(Integer productCount) Count of products within the resource.- Parameters:
- productCount- the value to set
- Returns:
- this builder
 
 - 
targetCountpublic FleetResource.Builder targetCount(Integer targetCount) Count of targets within the resource.- Parameters:
- targetCount- the value to set
- Returns:
- this builder
 
 - 
productpublic FleetResource.Builder product(String product) Product associated with the resource when the resource type is fleet.Will only be returned for PRODUCT fleets that are part of a GROUP Fleet. - Parameters:
- product- the value to set
- Returns:
- this builder
 
 - 
environmentTypepublic FleetResource.Builder environmentType(String environmentType) Environment Type associated with the Fleet when the resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. - Parameters:
- environmentType- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic FleetResource.Builder lifecycleState(FleetResource.LifecycleState lifecycleState) The current state of the FleetResource.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic FleetResource.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
 
 - 
systemTagspublic FleetResource.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
 
 - 
buildpublic FleetResource build() 
 - 
copypublic FleetResource.Builder copy(FleetResource model) 
 
- 
 
-