Class StackResourceDriftSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.resourcemanager.model.StackResourceDriftSummary.Builder
-
- Enclosing class:
- StackResourceDriftSummary
public static class StackResourceDriftSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackResourceDriftSummary.Builder
actualProperties(Map<String,String> actualProperties)
Actual values of properties that the stack defines for the indicated resource.StackResourceDriftSummary
build()
StackResourceDriftSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment where the stack is located.StackResourceDriftSummary.Builder
copy(StackResourceDriftSummary model)
StackResourceDriftSummary.Builder
expectedProperties(Map<String,String> expectedProperties)
Expected values of properties that the stack defines for the indicated resource.StackResourceDriftSummary.Builder
resourceDriftStatus(StackResourceDriftSummary.ResourceDriftStatus resourceDriftStatus)
The drift status of the resource.StackResourceDriftSummary.Builder
resourceId(String resourceId)
The OCID of the resource provisioned by Terraform.StackResourceDriftSummary.Builder
resourceName(String resourceName)
The name of the resource as defined in the stack.StackResourceDriftSummary.Builder
resourceType(String resourceType)
The provider resource type.StackResourceDriftSummary.Builder
stackId(String stackId)
The OCID of the stack.StackResourceDriftSummary.Builder
timeDriftChecked(Date timeDriftChecked)
The date and time when the drift detection was executed.
-
-
-
Method Detail
-
stackId
public StackResourceDriftSummary.Builder stackId(String stackId)
The OCID of the stack.- Parameters:
stackId
- the value to set- Returns:
- this builder
-
compartmentId
public StackResourceDriftSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment where the stack is located.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
resourceName
public StackResourceDriftSummary.Builder resourceName(String resourceName)
The name of the resource as defined in the stack.- Parameters:
resourceName
- the value to set- Returns:
- this builder
-
resourceId
public StackResourceDriftSummary.Builder resourceId(String resourceId)
The OCID of the resource provisioned by Terraform.- Parameters:
resourceId
- the value to set- Returns:
- this builder
-
resourceType
public StackResourceDriftSummary.Builder resourceType(String resourceType)
The provider resource type.Must be supported by the Oracle Cloud Infrastructure provider. Example: oci_core_instance
- Parameters:
resourceType
- the value to set- Returns:
- this builder
-
resourceDriftStatus
public StackResourceDriftSummary.Builder resourceDriftStatus(StackResourceDriftSummary.ResourceDriftStatus resourceDriftStatus)
The drift status of the resource.A drift status value indicates whether or not the actual state of the resource differs from the expected (defined) state for that resource.
- Parameters:
resourceDriftStatus
- the value to set- Returns:
- this builder
-
actualProperties
public StackResourceDriftSummary.Builder actualProperties(Map<String,String> actualProperties)
Actual values of properties that the stack defines for the indicated resource.Each property and value is provided as a key-value pair. The following example shows actual values for the resource’s display name and server type: {“display_name”: “tf-default-dhcp-options-new”, “options.0.server_type”: “VcnLocalPlusInternet”}
- Parameters:
actualProperties
- the value to set- Returns:
- this builder
-
expectedProperties
public StackResourceDriftSummary.Builder expectedProperties(Map<String,String> expectedProperties)
Expected values of properties that the stack defines for the indicated resource.Each property and value is provided as a key-value pair. The following example shows expected (defined) values for the resource’s display name and server type: {“display_name”: “tf-default-dhcp-options”, “options.0.server_type”: “VcnLocalPlusInternet”}
- Parameters:
expectedProperties
- the value to set- Returns:
- this builder
-
timeDriftChecked
public StackResourceDriftSummary.Builder timeDriftChecked(Date timeDriftChecked)
The date and time when the drift detection was executed.Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z
- Parameters:
timeDriftChecked
- the value to set- Returns:
- this builder
-
build
public StackResourceDriftSummary build()
-
copy
public StackResourceDriftSummary.Builder copy(StackResourceDriftSummary model)
-
-