/** This is an automatically generated code sample. 
To make this code sample work in your Oracle Cloud tenancy, 
please replace the values for any parameters whose current values do not fit
your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and 
boolean, number, and enum parameters with values not fitting your use case).
*/

import com.oracle.bmc.ConfigFileReader;
import com.oracle.bmc.auth.AuthenticationDetailsProvider;
import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider;
import com.oracle.bmc.dataintegration.DataIntegrationClient;
import com.oracle.bmc.dataintegration.model.*;
import com.oracle.bmc.dataintegration.requests.*;
import com.oracle.bmc.dataintegration.responses.*;
import java.math.BigDecimal;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Date;
import java.util.UUID;
import java.util.Arrays;


public class UpdateTaskExample {
    public static void main(String[] args) throws Exception {

        /**
         * Create a default authentication provider that uses the DEFAULT
         * profile in the configuration file.
         * Refer to <see href="https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File>the public documentation</see> on how to prepare a configuration file.
         */
        final ConfigFileReader.ConfigFile configFile = ConfigFileReader.parseDefault();
        final AuthenticationDetailsProvider provider = new ConfigFileAuthenticationDetailsProvider(configFile);

        /* Create a service client */
        DataIntegrationClient client = DataIntegrationClient.builder().build(provider);

        /* Create a request and dependent object(s). */
	UpdateTaskDetails updateTaskDetails = UpdateTaskFromDataLoaderTask.builder()
		.dataFlow(DataFlow.builder()
			.key("EXAMPLE-key-Value")
			.modelType("EXAMPLE-modelType-Value")
			.modelVersion("EXAMPLE-modelVersion-Value")
			.parentRef(ParentReference.builder()
				.parent("EXAMPLE-parent-Value")
				.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
			.name("EXAMPLE-name-Value")
			.identifier("EXAMPLE-identifier-Value")
			.objectVersion(394)
			.nodes(new ArrayList<>(Arrays.asList(FlowNode.builder()
					.key("EXAMPLE-key-Value")
					.modelType("EXAMPLE-modelType-Value")
					.modelVersion("EXAMPLE-modelVersion-Value")
					.parentRef(ParentReference.builder()
						.parent("EXAMPLE-parent-Value")
						.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
					.name("EXAMPLE-name-Value")
					.description("EXAMPLE-description-Value")
					.inputLinks(new ArrayList<>(Arrays.asList(InputLink.builder()
							.fromLink("EXAMPLE-fromLink-Value")
							.fieldMap(CompositeFieldMap.builder()
								.key("EXAMPLE-key-Value")
								.modelVersion("EXAMPLE-modelVersion-Value")
								.parentRef(ParentReference.builder()
									.parent("EXAMPLE-parent-Value")
									.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
								.configValues(ConfigValues.builder()
									.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
											{
												put("EXAMPLE_KEY_QfDLX",ConfigParameterValue.builder()
											.stringValue("EXAMPLE-stringValue-Value")
											.intValue(862)
											.objectValue("EXAMPLE-objectValue-Value")
											.refValue("EXAMPLE-refValue-Value")
											.parameterValue("EXAMPLE-parameterValue-Value")
											.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
											}
 										})
									.parentRef(ParentReference.builder()
										.parent("EXAMPLE-parent-Value")
										.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
								.objectStatus(638)
								.description("EXAMPLE-description-Value").build())
							.key("EXAMPLE-key-Value")
							.modelVersion("EXAMPLE-modelVersion-Value")
							.parentRef(ParentReference.builder()
								.parent("EXAMPLE-parent-Value")
								.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
							.objectStatus(507)
							.description("EXAMPLE-description-Value")
							.port("EXAMPLE-port-Value").build())))
					.outputLinks(new ArrayList<>(Arrays.asList(OutputLink.builder()
							.toLinks(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
							.key("EXAMPLE-key-Value")
							.modelVersion("EXAMPLE-modelVersion-Value")
							.parentRef(ParentReference.builder()
								.parent("EXAMPLE-parent-Value")
								.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
							.objectStatus(509)
							.description("EXAMPLE-description-Value")
							.port("EXAMPLE-port-Value").build())))
					.operator(Function.builder()
						.ociFunction(OciFunction.builder()
							.functionId("ocid1.test.oc1..<unique_ID>EXAMPLE-functionId-Value")
							.regionId("ocid1.test.oc1..<unique_ID>EXAMPLE-regionId-Value")
							.fnConfigDefinition(ConfigDefinition.builder()
								.key("EXAMPLE-key-Value")
								.modelType("EXAMPLE-modelType-Value")
								.modelVersion("EXAMPLE-modelVersion-Value")
								.parentRef(ParentReference.builder()
									.parent("EXAMPLE-parent-Value")
									.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
								.name("EXAMPLE-name-Value")
								.isContained(true)
								.objectStatus(228)
								.configParameterDefinitions(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterDefinition>() {
										{
											put("EXAMPLE_KEY_PqU2S",ConfigParameterDefinition.builder()
										.parameterType(JavaType.builder()
											.javaTypeName("EXAMPLE-javaTypeName-Value")
											.key("EXAMPLE-key-Value")
											.modelVersion("EXAMPLE-modelVersion-Value")
											.parentRef(ParentReference.builder()
												.parent("EXAMPLE-parent-Value")
												.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
											.name("EXAMPLE-name-Value")
											.objectStatus(496)
											.description("EXAMPLE-description-Value").build())
										.parameterName("EXAMPLE-parameterName-Value")
										.description("EXAMPLE-description-Value")
										.defaultValue("EXAMPLE-defaultValue-Value")
										.classFieldName("EXAMPLE-classFieldName-Value")
										.isStatic(false)
										.isClassFieldValue(false).build());
										}
 									}).build())
							.inputShape(Shape.builder()
								.type(MapType.builder()
									.keyElementType("EXAMPLE-keyElementType-Value")
									.valueElementType("EXAMPLE-valueElementType-Value")
									.containsNull(true)
									.key("EXAMPLE-key-Value")
									.modelVersion("EXAMPLE-modelVersion-Value")
									.parentRef(ParentReference.builder()
										.parent("EXAMPLE-parent-Value")
										.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
									.name("EXAMPLE-name-Value")
									.objectStatus(262)
									.description("EXAMPLE-description-Value").build())
								.key("EXAMPLE-key-Value")
								.modelVersion("EXAMPLE-modelVersion-Value")
								.parentRef(ParentReference.builder()
									.parent("EXAMPLE-parent-Value")
									.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
								.configValues(ConfigValues.builder()
									.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
											{
												put("EXAMPLE_KEY_LoRDr",ConfigParameterValue.builder()
											.stringValue("EXAMPLE-stringValue-Value")
											.intValue(507)
											.objectValue("EXAMPLE-objectValue-Value")
											.refValue("EXAMPLE-refValue-Value")
											.parameterValue("EXAMPLE-parameterValue-Value")
											.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
											}
 										})
									.parentRef(ParentReference.builder()
										.parent("EXAMPLE-parent-Value")
										.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
								.objectStatus(956)
								.name("EXAMPLE-name-Value")
								.description("EXAMPLE-description-Value").build())
							.outputShape(Shape.builder()
								.type(DynamicType.builder()
									.typeHandler(FlattenTypeHandler.builder()
										.key("EXAMPLE-key-Value")
										.modelVersion("EXAMPLE-modelVersion-Value")
										.parentRef(ParentReference.builder()
											.parent("EXAMPLE-parent-Value")
											.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
										.scope("EXAMPLE-scope-Value")
										.flattenDetails("EXAMPLE-flattenDetails-Value")
										.configValues(ConfigValues.builder()
											.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
													{
														put("EXAMPLE_KEY_csz0p",ConfigParameterValue.builder()
													.stringValue("EXAMPLE-stringValue-Value")
													.intValue(1)
													.objectValue("EXAMPLE-objectValue-Value")
													.refValue("EXAMPLE-refValue-Value")
													.parameterValue("EXAMPLE-parameterValue-Value")
													.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
													}
 												})
											.parentRef(ParentReference.builder()
												.parent("EXAMPLE-parent-Value")
												.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
										.objectStatus(574).build())
									.configDefinition(ConfigDefinition.builder()
										.key("EXAMPLE-key-Value")
										.modelType("EXAMPLE-modelType-Value")
										.modelVersion("EXAMPLE-modelVersion-Value")
										.parentRef(ParentReference.builder()
											.parent("EXAMPLE-parent-Value")
											.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
										.name("EXAMPLE-name-Value")
										.isContained(true)
										.objectStatus(541)
										.configParameterDefinitions(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterDefinition>() {
												{
													put("EXAMPLE_KEY_je3Fl",ConfigParameterDefinition.builder()
												.parameterName("EXAMPLE-parameterName-Value")
												.description("EXAMPLE-description-Value")
												.defaultValue("EXAMPLE-defaultValue-Value")
												.classFieldName("EXAMPLE-classFieldName-Value")
												.isStatic(false)
												.isClassFieldValue(true).build());
												}
 											}).build())
									.key("EXAMPLE-key-Value")
									.modelVersion("EXAMPLE-modelVersion-Value")
									.parentRef(ParentReference.builder()
										.parent("EXAMPLE-parent-Value")
										.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
									.name("EXAMPLE-name-Value")
									.objectStatus(824)
									.description("EXAMPLE-description-Value").build())
								.key("EXAMPLE-key-Value")
								.modelVersion("EXAMPLE-modelVersion-Value")
								.parentRef(ParentReference.builder()
									.parent("EXAMPLE-parent-Value")
									.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
								.configValues(ConfigValues.builder()
									.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
											{
												put("EXAMPLE_KEY_FsdEh",ConfigParameterValue.builder()
											.stringValue("EXAMPLE-stringValue-Value")
											.intValue(914)
											.objectValue("EXAMPLE-objectValue-Value")
											.refValue("EXAMPLE-refValue-Value")
											.parameterValue("EXAMPLE-parameterValue-Value")
											.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
											}
 										})
									.parentRef(ParentReference.builder()
										.parent("EXAMPLE-parent-Value")
										.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
								.objectStatus(710)
								.name("EXAMPLE-name-Value")
								.description("EXAMPLE-description-Value").build())
							.modelType(OciFunction.ModelType.OciFunction)
							.key("EXAMPLE-key-Value")
							.parentRef(ParentReference.builder()
								.parent("EXAMPLE-parent-Value")
								.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
							.modelVersion("EXAMPLE-modelVersion-Value")
							.objectVersion(932)
							.payloadFormat(OciFunction.PayloadFormat.Avro)
							.fnConfigDef(FunctionConfigurationDefinition.builder()
								.key("EXAMPLE-key-Value")
								.modelType(FunctionConfigurationDefinition.ModelType.ConfigDefinition)
								.modelVersion("EXAMPLE-modelVersion-Value")
								.parentRef(ParentReference.builder()
									.parent("EXAMPLE-parent-Value")
									.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
								.isContained(true)
								.configParamDefs(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterDefinition>() {
										{
											put("EXAMPLE_KEY_tnDC6",ConfigParameterDefinition.builder()
										.parameterType(CompositeType.builder()
											.elements(new ArrayList<>(Arrays.asList(PivotField.builder()
													.expr(Expression.builder()
														.key("EXAMPLE-key-Value")
														.modelType("EXAMPLE-modelType-Value")
														.modelVersion("EXAMPLE-modelVersion-Value")
														.parentRef(ParentReference.builder()
															.parent("EXAMPLE-parent-Value")
															.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
														.exprString("EXAMPLE-exprString-Value")
														.configValues(ConfigValues.builder()
															.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
																	{
																		put("EXAMPLE_KEY_kDjeY",ConfigParameterValue.builder()
																	.stringValue("EXAMPLE-stringValue-Value")
																	.intValue(996)
																	.objectValue("EXAMPLE-objectValue-Value")
																	.refValue("EXAMPLE-refValue-Value")
																	.parameterValue("EXAMPLE-parameterValue-Value")
																	.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
																	}
 																})
															.parentRef(ParentReference.builder()
																.parent("EXAMPLE-parent-Value")
																.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
														.objectStatus(196).build())
													.useType(ConfiguredType.builder()
														.wrappedType("EXAMPLE-wrappedType-Value")
														.configValues(ConfigValues.builder()
															.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
																	{
																		put("EXAMPLE_KEY_yLx9j",ConfigParameterValue.builder()
																	.stringValue("EXAMPLE-stringValue-Value")
																	.intValue(415)
																	.objectValue("EXAMPLE-objectValue-Value")
																	.refValue("EXAMPLE-refValue-Value")
																	.parameterValue("EXAMPLE-parameterValue-Value")
																	.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
																	}
 																})
															.parentRef(ParentReference.builder()
																.parent("EXAMPLE-parent-Value")
																.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
														.key("EXAMPLE-key-Value")
														.modelVersion("EXAMPLE-modelVersion-Value")
														.parentRef(ParentReference.builder()
															.parent("EXAMPLE-parent-Value")
															.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
														.name("EXAMPLE-name-Value")
														.objectStatus(536)
														.description("EXAMPLE-description-Value").build())
													.columnNamePattern("EXAMPLE-columnNamePattern-Value")
													.key("EXAMPLE-key-Value")
													.modelVersion("EXAMPLE-modelVersion-Value")
													.parentRef(ParentReference.builder()
														.parent("EXAMPLE-parent-Value")
														.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
													.configValues(ConfigValues.builder()
														.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
																{
																	put("EXAMPLE_KEY_1J1ts",ConfigParameterValue.builder()
																.stringValue("EXAMPLE-stringValue-Value")
																.intValue(11)
																.objectValue("EXAMPLE-objectValue-Value")
																.refValue("EXAMPLE-refValue-Value")
																.parameterValue("EXAMPLE-parameterValue-Value")
																.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
																}
 															})
														.parentRef(ParentReference.builder()
															.parent("EXAMPLE-parent-Value")
															.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
													.objectStatus(849)
													.name("EXAMPLE-name-Value")
													.description("EXAMPLE-description-Value").build())))
											.key("EXAMPLE-key-Value")
											.modelVersion("EXAMPLE-modelVersion-Value")
											.parentRef(ParentReference.builder()
												.parent("EXAMPLE-parent-Value")
												.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
											.name("EXAMPLE-name-Value")
											.objectStatus(933)
											.description("EXAMPLE-description-Value").build())
										.parameterName("EXAMPLE-parameterName-Value")
										.description("EXAMPLE-description-Value")
										.defaultValue("EXAMPLE-defaultValue-Value")
										.classFieldName("EXAMPLE-classFieldName-Value")
										.isStatic(true)
										.isClassFieldValue(true).build());
										}
 									}).build()).build())
						.key("EXAMPLE-key-Value")
						.modelVersion("EXAMPLE-modelVersion-Value")
						.parentRef(ParentReference.builder()
							.parent("EXAMPLE-parent-Value")
							.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
						.name("EXAMPLE-name-Value")
						.description("EXAMPLE-description-Value")
						.objectVersion(214)
						.inputPorts(new ArrayList<>(Arrays.asList(InputPort.builder()
								.portType(InputPort.PortType.Model)
								.key("EXAMPLE-key-Value")
								.modelVersion("EXAMPLE-modelVersion-Value")
								.parentRef(ParentReference.builder()
									.parent("EXAMPLE-parent-Value")
									.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
								.configValues(ConfigValues.builder()
									.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
											{
												put("EXAMPLE_KEY_JARSy",ConfigParameterValue.builder()
											.stringValue("EXAMPLE-stringValue-Value")
											.intValue(161)
											.objectValue("EXAMPLE-objectValue-Value")
											.refValue("EXAMPLE-refValue-Value")
											.parameterValue("EXAMPLE-parameterValue-Value")
											.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
											}
 										})
									.parentRef(ParentReference.builder()
										.parent("EXAMPLE-parent-Value")
										.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
								.objectStatus(143)
								.name("EXAMPLE-name-Value")
								.description("EXAMPLE-description-Value").build())))
						.outputPorts(new ArrayList<>(Arrays.asList(DynamicInputField.builder()
								.type(ConfiguredType.builder()
									.wrappedType("EXAMPLE-wrappedType-Value")
									.configValues(ConfigValues.builder()
										.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
												{
													put("EXAMPLE_KEY_EwIfS",ConfigParameterValue.builder()
												.stringValue("EXAMPLE-stringValue-Value")
												.intValue(836)
												.objectValue("EXAMPLE-objectValue-Value")
												.refValue("EXAMPLE-refValue-Value")
												.parameterValue("EXAMPLE-parameterValue-Value")
												.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
												}
 											})
										.parentRef(ParentReference.builder()
											.parent("EXAMPLE-parent-Value")
											.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
									.configDefinition(ConfigDefinition.builder()
										.key("EXAMPLE-key-Value")
										.modelType("EXAMPLE-modelType-Value")
										.modelVersion("EXAMPLE-modelVersion-Value")
										.parentRef(ParentReference.builder()
											.parent("EXAMPLE-parent-Value")
											.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
										.name("EXAMPLE-name-Value")
										.isContained(true)
										.objectStatus(377)
										.configParameterDefinitions(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterDefinition>() {
												{
													put("EXAMPLE_KEY_hpbum",ConfigParameterDefinition.builder()
												.parameterName("EXAMPLE-parameterName-Value")
												.description("EXAMPLE-description-Value")
												.defaultValue("EXAMPLE-defaultValue-Value")
												.classFieldName("EXAMPLE-classFieldName-Value")
												.isStatic(false)
												.isClassFieldValue(false).build());
												}
 											}).build())
									.key("EXAMPLE-key-Value")
									.modelVersion("EXAMPLE-modelVersion-Value")
									.parentRef(ParentReference.builder()
										.parent("EXAMPLE-parent-Value")
										.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
									.name("EXAMPLE-name-Value")
									.objectStatus(790)
									.description("EXAMPLE-description-Value").build())
								.labels(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
								.key("EXAMPLE-key-Value")
								.modelVersion("EXAMPLE-modelVersion-Value")
								.parentRef(ParentReference.builder()
									.parent("EXAMPLE-parent-Value")
									.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
								.configValues(ConfigValues.builder()
									.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
											{
												put("EXAMPLE_KEY_j4jTV",ConfigParameterValue.builder()
											.stringValue("EXAMPLE-stringValue-Value")
											.intValue(683)
											.objectValue("EXAMPLE-objectValue-Value")
											.refValue("EXAMPLE-refValue-Value")
											.parameterValue("EXAMPLE-parameterValue-Value")
											.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
											}
 										})
									.parentRef(ParentReference.builder()
										.parent("EXAMPLE-parent-Value")
										.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
								.objectStatus(604)
								.name("EXAMPLE-name-Value")
								.description("EXAMPLE-description-Value").build())))
						.objectStatus(590)
						.identifier("EXAMPLE-identifier-Value")
						.parameters(new ArrayList<>(Arrays.asList(Parameter.builder()
								.type("EXAMPLE-type-Value")
								.defaultValue("EXAMPLE-defaultValue-Value")
								.rootObjectDefaultValue("EXAMPLE-rootObjectDefaultValue-Value")
								.isInput(false)
								.isOutput(false)
								.outputAggregationType(Parameter.OutputAggregationType.Max)
								.typeName("EXAMPLE-typeName-Value")
								.usedFor("EXAMPLE-usedFor-Value")
								.key("EXAMPLE-key-Value")
								.modelVersion("EXAMPLE-modelVersion-Value")
								.parentRef(ParentReference.builder()
									.parent("EXAMPLE-parent-Value")
									.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
								.configValues(ConfigValues.builder()
									.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
											{
												put("EXAMPLE_KEY_RAV4L",ConfigParameterValue.builder()
											.stringValue("EXAMPLE-stringValue-Value")
											.intValue(847)
											.objectValue("EXAMPLE-objectValue-Value")
											.refValue("EXAMPLE-refValue-Value")
											.parameterValue("EXAMPLE-parameterValue-Value")
											.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
											}
 										})
									.parentRef(ParentReference.builder()
										.parent("EXAMPLE-parent-Value")
										.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
								.objectStatus(802)
								.name("EXAMPLE-name-Value")
								.description("EXAMPLE-description-Value").build())))
						.opConfigValues(ConfigValues.builder()
							.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
									{
										put("EXAMPLE_KEY_VmBGQ",ConfigParameterValue.builder()
									.stringValue("EXAMPLE-stringValue-Value")
									.intValue(986)
									.objectValue("EXAMPLE-objectValue-Value")
									.refValue("EXAMPLE-refValue-Value")
									.parameterValue("EXAMPLE-parameterValue-Value")
									.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
									}
 								})
							.parentRef(ParentReference.builder()
								.parent("EXAMPLE-parent-Value")
								.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build()).build())
					.uiProperties(UIProperties.builder()
						.coordinateX(new BigDecimal("6859.5034"))
						.coordinateY(new BigDecimal("3341.6533")).build())
					.objectStatus(177).build())))
			.parameters(new ArrayList<>(Arrays.asList(Parameter.builder()
					.type("EXAMPLE-type-Value")
					.defaultValue("EXAMPLE-defaultValue-Value")
					.rootObjectDefaultValue("EXAMPLE-rootObjectDefaultValue-Value")
					.isInput(false)
					.isOutput(false)
					.outputAggregationType(Parameter.OutputAggregationType.Count)
					.typeName("EXAMPLE-typeName-Value")
					.usedFor("EXAMPLE-usedFor-Value")
					.key("EXAMPLE-key-Value")
					.modelVersion("EXAMPLE-modelVersion-Value")
					.parentRef(ParentReference.builder()
						.parent("EXAMPLE-parent-Value")
						.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
					.configValues(ConfigValues.builder()
						.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
								{
									put("EXAMPLE_KEY_libNX",ConfigParameterValue.builder()
								.stringValue("EXAMPLE-stringValue-Value")
								.intValue(553)
								.objectValue("EXAMPLE-objectValue-Value")
								.refValue("EXAMPLE-refValue-Value")
								.parameterValue("EXAMPLE-parameterValue-Value")
								.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
								}
 							})
						.parentRef(ParentReference.builder()
							.parent("EXAMPLE-parent-Value")
							.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
					.objectStatus(992)
					.name("EXAMPLE-name-Value")
					.description("EXAMPLE-description-Value").build())))
			.description("EXAMPLE-description-Value")
			.flowConfigValues(ConfigValues.builder()
				.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
						{
							put("EXAMPLE_KEY_YKTsW",ConfigParameterValue.builder()
						.stringValue("EXAMPLE-stringValue-Value")
						.intValue(727)
						.objectValue("EXAMPLE-objectValue-Value")
						.refValue("EXAMPLE-refValue-Value")
						.parameterValue("EXAMPLE-parameterValue-Value")
						.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
						}
 					})
				.parentRef(ParentReference.builder()
					.parent("EXAMPLE-parent-Value")
					.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
			.objectStatus(957)
			.metadata(ObjectMetadata.builder()
				.createdBy("EXAMPLE-createdBy-Value")
				.createdByName("EXAMPLE-createdByName-Value")
				.updatedBy("EXAMPLE-updatedBy-Value")
				.updatedByName("EXAMPLE-updatedByName-Value")
				.timeCreated(new Date("Mon Jul 12 05:56:43 UTC 2010"))
				.timeUpdated(new Date("Sun Mar 23 10:23:01 UTC 2014"))
				.aggregatorKey("EXAMPLE-aggregatorKey-Value")
				.aggregator(AggregatorSummary.builder()
					.type("EXAMPLE-type-Value")
					.key("EXAMPLE-key-Value")
					.name("EXAMPLE-name-Value")
					.identifier("EXAMPLE-identifier-Value")
					.description("EXAMPLE-description-Value").build())
				.identifierPath("EXAMPLE-identifierPath-Value")
				.infoFields(new HashMap<java.lang.String, java.lang.String>() {
						{
							put("EXAMPLE_KEY_dyLcU","EXAMPLE_VALUE_UvGyIBdZxuwNFxYRLTcc");
						}
 					})
				.registryVersion(241)
				.labels(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
				.isFavorite(true)
				.countStatistics(CountStatistic.builder()
					.objectTypeCountList(new ArrayList<>(Arrays.asList(CountStatisticSummary.builder()
							.objectType(CountStatisticSummary.ObjectType.Task)
							.objectCount(172L).build()))).build()).build())
			.keyMap(new HashMap<java.lang.String, java.lang.String>() {
					{
						put("EXAMPLE_KEY_S4XFw","EXAMPLE_VALUE_Bh9nFgo09PYhY6gQffof");
					}
 				})
			.typedObjectMap(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.TypedObjectWrapper>() {
					{
						put("EXAMPLE_KEY_OW9Va",TypedObjectWrapper.builder()
					.typedObject(AbstractField.builder()
						.key("EXAMPLE-key-Value")
						.modelVersion("EXAMPLE-modelVersion-Value")
						.parentRef(ParentReference.builder()
							.parent("EXAMPLE-parent-Value")
							.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
						.configValues(ConfigValues.builder()
							.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
									{
										put("EXAMPLE_KEY_1BD7O",ConfigParameterValue.builder()
									.stringValue("EXAMPLE-stringValue-Value")
									.intValue(813)
									.objectValue("EXAMPLE-objectValue-Value")
									.refValue("EXAMPLE-refValue-Value")
									.parameterValue("EXAMPLE-parameterValue-Value")
									.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
									}
 								})
							.parentRef(ParentReference.builder()
								.parent("EXAMPLE-parent-Value")
								.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
						.objectStatus(819)
						.name("EXAMPLE-name-Value")
						.description("EXAMPLE-description-Value").build()).build());
					}
 				})
			.targetFieldMapSummary(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.FieldMapWrapper>() {
					{
						put("EXAMPLE_KEY_hEx1D",FieldMapWrapper.builder()
					.fieldMap(DirectFieldMap.builder()
						.key("EXAMPLE-key-Value")
						.modelVersion("EXAMPLE-modelVersion-Value")
						.parentRef(ParentReference.builder()
							.parent("EXAMPLE-parent-Value")
							.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
						.configValues(ConfigValues.builder()
							.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
									{
										put("EXAMPLE_KEY_LCiqP",ConfigParameterValue.builder()
									.stringValue("EXAMPLE-stringValue-Value")
									.intValue(608)
									.objectValue("EXAMPLE-objectValue-Value")
									.refValue("EXAMPLE-refValue-Value")
									.parameterValue("EXAMPLE-parameterValue-Value")
									.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
									}
 								})
							.parentRef(ParentReference.builder()
								.parent("EXAMPLE-parent-Value")
								.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
						.sourceTypedObject("EXAMPLE-sourceTypedObject-Value")
						.targetTypedObject("EXAMPLE-targetTypedObject-Value")
						.sourceScopeReference(ScopeReference.builder()
							.referenceObject("EXAMPLE-referenceObject-Value")
							.referenceType(ScopeReference.ReferenceType.OciFunctionInputShape)
							.refObjectName("EXAMPLE-refObjectName-Value").build())
						.targetScopeReference(ScopeReference.builder()
							.referenceObject("EXAMPLE-referenceObject-Value")
							.referenceType(ScopeReference.ReferenceType.OciFunctionInputShape)
							.refObjectName("EXAMPLE-refObjectName-Value").build())
						.objectStatus(760)
						.description("EXAMPLE-description-Value").build()).build());
					}
 				}).build())
		.conditionalCompositeFieldMap(ConditionalCompositeFieldMap.builder()
			.fieldMapScope(new ArrayList<>(Arrays.asList(GroupedNamePatternRule.builder()
					.name("EXAMPLE-name-Value")
					.isSkipRemainingRulesOnMatch(true)
					.scope("EXAMPLE-scope-Value")
					.isCascade(true)
					.matchingStrategy(GroupedNamePatternRule.MatchingStrategy.TagsOnly)
					.isCaseSensitive(true)
					.ruleType(GroupedNamePatternRule.RuleType.Exclude)
					.pattern("EXAMPLE-pattern-Value")
					.key("EXAMPLE-key-Value")
					.modelVersion("EXAMPLE-modelVersion-Value")
					.parentRef(ParentReference.builder()
						.parent("EXAMPLE-parent-Value")
						.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
					.isJavaRegexSyntax(true)
					.configValues(ConfigValues.builder()
						.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
								{
									put("EXAMPLE_KEY_lZIux",ConfigParameterValue.builder()
								.stringValue("EXAMPLE-stringValue-Value")
								.intValue(331)
								.objectValue("EXAMPLE-objectValue-Value")
								.refValue("EXAMPLE-refValue-Value")
								.parameterValue("EXAMPLE-parameterValue-Value")
								.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
								}
 							})
						.parentRef(ParentReference.builder()
							.parent("EXAMPLE-parent-Value")
							.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
					.objectStatus(241)
					.description("EXAMPLE-description-Value").build())))
			.key("EXAMPLE-key-Value")
			.modelVersion("EXAMPLE-modelVersion-Value")
			.parentRef(ParentReference.builder()
				.parent("EXAMPLE-parent-Value")
				.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
			.configValues(ConfigValues.builder()
				.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
						{
							put("EXAMPLE_KEY_pJbgi",ConfigParameterValue.builder()
						.stringValue("EXAMPLE-stringValue-Value")
						.intValue(851)
						.objectValue("EXAMPLE-objectValue-Value")
						.refValue("EXAMPLE-refValue-Value")
						.parameterValue("EXAMPLE-parameterValue-Value")
						.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
						}
 					})
				.parentRef(ParentReference.builder()
					.parent("EXAMPLE-parent-Value")
					.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
			.objectStatus(138)
			.fieldMaps(new ArrayList<>(Arrays.asList(DirectFieldMap.builder()
					.key("EXAMPLE-key-Value")
					.modelVersion("EXAMPLE-modelVersion-Value")
					.parentRef(ParentReference.builder()
						.parent("EXAMPLE-parent-Value")
						.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
					.configValues(ConfigValues.builder()
						.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
								{
									put("EXAMPLE_KEY_Ggs1t",ConfigParameterValue.builder()
								.stringValue("EXAMPLE-stringValue-Value")
								.intValue(633)
								.objectValue("EXAMPLE-objectValue-Value")
								.refValue("EXAMPLE-refValue-Value")
								.parameterValue("EXAMPLE-parameterValue-Value")
								.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
								}
 							})
						.parentRef(ParentReference.builder()
							.parent("EXAMPLE-parent-Value")
							.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
					.sourceTypedObject("EXAMPLE-sourceTypedObject-Value")
					.targetTypedObject("EXAMPLE-targetTypedObject-Value")
					.sourceScopeReference(ScopeReference.builder()
						.referenceObject("EXAMPLE-referenceObject-Value")
						.referenceType(ScopeReference.ReferenceType.OciFunctionOutputShape)
						.refObjectName("EXAMPLE-refObjectName-Value").build())
					.targetScopeReference(ScopeReference.builder()
						.referenceObject("EXAMPLE-referenceObject-Value")
						.referenceType(ScopeReference.ReferenceType.BoundEntityShapeField)
						.refObjectName("EXAMPLE-refObjectName-Value").build())
					.objectStatus(981)
					.description("EXAMPLE-description-Value").build())))
			.description("EXAMPLE-description-Value").build())
		.isSingleLoad(true)
		.parallelLoadLimit(922)
		.key("EXAMPLE-key-Value")
		.modelVersion("EXAMPLE-modelVersion-Value")
		.parentRef(ParentReference.builder()
			.parent("EXAMPLE-parent-Value")
			.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
		.name("EXAMPLE-name-Value")
		.description("EXAMPLE-description-Value")
		.objectStatus(77)
		.objectVersion(999)
		.identifier("EXAMPLE-identifier-Value")
		.inputPorts(new ArrayList<>(Arrays.asList(InputPort.builder()
				.portType(InputPort.PortType.Model)
				.fields(new ArrayList<>(Arrays.asList(OutputPort.builder()
						.portType(OutputPort.PortType.Model)
						.key("EXAMPLE-key-Value")
						.modelVersion("EXAMPLE-modelVersion-Value")
						.parentRef(ParentReference.builder()
							.parent("EXAMPLE-parent-Value")
							.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
						.configValues(ConfigValues.builder()
							.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
									{
										put("EXAMPLE_KEY_rR05O",ConfigParameterValue.builder()
									.stringValue("EXAMPLE-stringValue-Value")
									.intValue(301)
									.objectValue("EXAMPLE-objectValue-Value")
									.refValue("EXAMPLE-refValue-Value")
									.parameterValue("EXAMPLE-parameterValue-Value")
									.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
									}
 								})
							.parentRef(ParentReference.builder()
								.parent("EXAMPLE-parent-Value")
								.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
						.objectStatus(844)
						.name("EXAMPLE-name-Value")
						.description("EXAMPLE-description-Value").build())))
				.key("EXAMPLE-key-Value")
				.modelVersion("EXAMPLE-modelVersion-Value")
				.parentRef(ParentReference.builder()
					.parent("EXAMPLE-parent-Value")
					.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
				.configValues(ConfigValues.builder()
					.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
							{
								put("EXAMPLE_KEY_GdqYF",ConfigParameterValue.builder()
							.stringValue("EXAMPLE-stringValue-Value")
							.intValue(16)
							.objectValue("EXAMPLE-objectValue-Value")
							.refValue("EXAMPLE-refValue-Value")
							.parameterValue("EXAMPLE-parameterValue-Value")
							.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
							}
 						})
					.parentRef(ParentReference.builder()
						.parent("EXAMPLE-parent-Value")
						.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
				.objectStatus(317)
				.name("EXAMPLE-name-Value")
				.description("EXAMPLE-description-Value").build())))
		.outputPorts(new ArrayList<>(Arrays.asList(OutputPort.builder()
				.portType(OutputPort.PortType.Data)
				.key("EXAMPLE-key-Value")
				.modelVersion("EXAMPLE-modelVersion-Value")
				.parentRef(ParentReference.builder()
					.parent("EXAMPLE-parent-Value")
					.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
				.configValues(ConfigValues.builder()
					.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
							{
								put("EXAMPLE_KEY_lErr4",ConfigParameterValue.builder()
							.stringValue("EXAMPLE-stringValue-Value")
							.intValue(999)
							.objectValue("EXAMPLE-objectValue-Value")
							.refValue("EXAMPLE-refValue-Value")
							.parameterValue("EXAMPLE-parameterValue-Value")
							.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
							}
 						})
					.parentRef(ParentReference.builder()
						.parent("EXAMPLE-parent-Value")
						.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
				.objectStatus(382)
				.name("EXAMPLE-name-Value")
				.description("EXAMPLE-description-Value").build())))
		.parameters(new ArrayList<>(Arrays.asList(Parameter.builder()
				.type("EXAMPLE-type-Value")
				.defaultValue("EXAMPLE-defaultValue-Value")
				.rootObjectDefaultValue("EXAMPLE-rootObjectDefaultValue-Value")
				.isInput(true)
				.isOutput(false)
				.outputAggregationType(Parameter.OutputAggregationType.Sum)
				.typeName("EXAMPLE-typeName-Value")
				.usedFor("EXAMPLE-usedFor-Value")
				.key("EXAMPLE-key-Value")
				.modelVersion("EXAMPLE-modelVersion-Value")
				.parentRef(ParentReference.builder()
					.parent("EXAMPLE-parent-Value")
					.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build())
				.configValues(ConfigValues.builder()
					.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
							{
								put("EXAMPLE_KEY_6iUO8",ConfigParameterValue.builder()
							.stringValue("EXAMPLE-stringValue-Value")
							.intValue(189)
							.objectValue("EXAMPLE-objectValue-Value")
							.refValue("EXAMPLE-refValue-Value")
							.parameterValue("EXAMPLE-parameterValue-Value")
							.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
							}
 						})
					.parentRef(ParentReference.builder()
						.parent("EXAMPLE-parent-Value")
						.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
				.objectStatus(559)
				.name("EXAMPLE-name-Value")
				.description("EXAMPLE-description-Value").build())))
		.opConfigValues(ConfigValues.builder()
			.configParamValues(new HashMap<java.lang.String, com.oracle.bmc.dataintegration.model.ConfigParameterValue>() {
					{
						put("EXAMPLE_KEY_NN9ll",ConfigParameterValue.builder()
					.stringValue("EXAMPLE-stringValue-Value")
					.intValue(528)
					.objectValue("EXAMPLE-objectValue-Value")
					.refValue("EXAMPLE-refValue-Value")
					.parameterValue("EXAMPLE-parameterValue-Value")
					.rootObjectValue("EXAMPLE-rootObjectValue-Value").build());
					}
 				})
			.parentRef(ParentReference.builder()
				.parent("EXAMPLE-parent-Value")
				.rootDocId("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value").build()).build())
		.isConcurrentAllowed(true)
		.registryMetadata(RegistryMetadata.builder()
			.aggregatorKey("EXAMPLE-aggregatorKey-Value")
			.labels(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
			.registryVersion(485)
			.key("EXAMPLE-key-Value")
			.isFavorite(false).build()).build();

	UpdateTaskRequest updateTaskRequest = UpdateTaskRequest.builder()
		.workspaceId("ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value")
		.taskKey("EXAMPLE-taskKey-Value")
		.updateTaskDetails(updateTaskDetails)
		.opcRequestId("NB0AS4NV2UM0VYCUDLMV<unique_ID>")
		.ifMatch("EXAMPLE-ifMatch-Value").build();

        /* Send request to the Client */
        UpdateTaskResponse response = client.updateTask(updateTaskRequest);
    }

    
}