/** 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.loganalytics.LogAnalyticsClient;
import com.oracle.bmc.loganalytics.model.*;
import com.oracle.bmc.loganalytics.requests.*;
import com.oracle.bmc.loganalytics.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 UpsertParserExample {
    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 */
        LogAnalyticsClient client = LogAnalyticsClient.builder().build(provider);

        /* Create a request and dependent object(s). */
	UpsertLogAnalyticsParserDetails upsertLogAnalyticsParserDetails = UpsertLogAnalyticsParserDetails.builder()
		.content("EXAMPLE-content-Value")
		.description("EXAMPLE-description-Value")
		.displayName("EXAMPLE-displayName-Value")
		.editVersion(482L)
		.encoding("EXAMPLE-encoding-Value")
		.exampleContent("EXAMPLE-exampleContent-Value")
		.fieldMaps(new ArrayList<>(Arrays.asList(LogAnalyticsParserField.builder()
				.field(LogAnalyticsField.builder()
					.ceeAlias("EXAMPLE-ceeAlias-Value")
					.dataType("EXAMPLE-dataType-Value")
					.regularExpression("EXAMPLE-regularExpression-Value")
					.description("EXAMPLE-description-Value")
					.displayName("EXAMPLE-displayName-Value")
					.editVersion(801L)
					.facetPriority(64L)
					.name("EXAMPLE-name-Value")
					.isFacetEligible(true)
					.isHighCardinality(true)
					.isLargeData(true)
					.isMultiValued(true)
					.isPrimary(false)
					.isSystem(false)
					.isSummarizable(true)
					.mappedValue("EXAMPLE-mappedValue-Value")
					.isMetricKeyEligible(true)
					.isMetricValueEligible(true)
					.rangeFacetEligible(743L)
					.isTableEligible(true)
					.unitType("EXAMPLE-unitType-Value")
					.timeUpdated(new Date("Wed Feb 03 11:40:30 UTC 2038"))
					.isKeepDuplicates(false).build())
				.parserFieldId(972L)
				.parserFieldExpression("EXAMPLE-parserFieldExpression-Value")
				.parserFieldName("EXAMPLE-parserFieldName-Value")
				.storageFieldName("EXAMPLE-storageFieldName-Value")
				.parserFieldIntegratorName("EXAMPLE-parserFieldIntegratorName-Value")
				.parserName("EXAMPLE-parserName-Value")
				.parserFieldSequence(100L)
				.parser(LogAnalyticsParser.builder()
					.content("EXAMPLE-content-Value")
					.description("EXAMPLE-description-Value")
					.displayName("EXAMPLE-displayName-Value")
					.editVersion(865L)
					.encoding("EXAMPLE-encoding-Value")
					.exampleContent("EXAMPLE-exampleContent-Value")
					.footerContent("EXAMPLE-footerContent-Value")
					.headerContent("EXAMPLE-headerContent-Value")
					.name("EXAMPLE-name-Value")
					.isDefault(false)
					.isSingleLineContent(false)
					.isSystem(false)
					.language("EXAMPLE-language-Value")
					.timeUpdated(new Date("Sat Oct 13 17:00:31 UTC 2018"))
					.logTypeTestRequestVersion(901)
					.parserIgnorelineCharacters("EXAMPLE-parserIgnorelineCharacters-Value")
					.isHidden(true)
					.parserSequence(885)
					.parserTimezone("EXAMPLE-parserTimezone-Value")
					.parserFilter(LogAnalyticsParserFilter.builder()
						.id("ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value")
						.agentVersion("EXAMPLE-agentVersion-Value")
						.isInUse(106L)
						.operatingSystem("EXAMPLE-operatingSystem-Value")
						.parserId(735L)
						.version("EXAMPLE-version-Value").build())
					.isParserWrittenOnce(true)
					.parserFunctions(new ArrayList<>(Arrays.asList(LogAnalyticsParserFunction.builder()
							.parserMetaPlugin(LogAnalyticsParserMetaPlugin.builder()
								.metaPluginParameters(new ArrayList<>(Arrays.asList(LogAnalyticsParserMetaPluginParameter.builder()
										.description("EXAMPLE-description-Value")
										.name("EXAMPLE-name-Value")
										.isMandatory(false)
										.isRepeatable(true)
										.pluginName("EXAMPLE-pluginName-Value")
										.type("EXAMPLE-type-Value").build())))
								.description("EXAMPLE-description-Value")
								.displayName("EXAMPLE-displayName-Value")
								.name("EXAMPLE-name-Value").build())
							.parserFunctionId(674L)
							.parserFunctionName("EXAMPLE-parserFunctionName-Value")
							.isEnabled(false)
							.isSystem(false)
							.parserId(959L)
							.parserName("EXAMPLE-parserName-Value")
							.parserMetaPluginName("EXAMPLE-parserMetaPluginName-Value")
							.parserFunctionPriority(650L)
							.parserFunctionParameters(new ArrayList<>(Arrays.asList(LogAnalyticsParserFunctionParameter.builder()
									.parserFunctionId(997L)
									.parserFunctionParameterName("EXAMPLE-parserFunctionParameterName-Value")
									.parserFunctionParameterId(487L)
									.parserMetaPluginParameterName("EXAMPLE-parserMetaPluginParameterName-Value")
									.parserMetaPluginParameterValue("EXAMPLE-parserMetaPluginParameterValue-Value")
									.parserName("EXAMPLE-parserName-Value")
									.parserMetaPluginParameter(LogAnalyticsParserMetaPluginParameter.builder()
										.description("EXAMPLE-description-Value")
										.name("EXAMPLE-name-Value")
										.isMandatory(false)
										.isRepeatable(true)
										.pluginName("EXAMPLE-pluginName-Value")
										.type("EXAMPLE-type-Value").build()).build()))).build())))
					.sourcesCount(786L)
					.sources(new ArrayList<>(Arrays.asList(LogAnalyticsSource.builder()
							.labelConditions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceLabelCondition.builder()
									.conditionString("EXAMPLE-conditionString-Value")
									.conditionBlock(ConditionBlock.builder()
										.conditionBlocksOperator(ConditionBlock.ConditionBlocksOperator.NotOr)
										.fieldName("EXAMPLE-fieldName-Value")
										.labelConditionOperator("EXAMPLE-labelConditionOperator-Value")
										.labelConditionValue("EXAMPLE-labelConditionValue-Value")
										.labelConditionValues(new ArrayList<>(Arrays.asList("EXAMPLE--Value"))).build())
									.message("EXAMPLE-message-Value")
									.isVisible(false)
									.blockConditionField("EXAMPLE-blockConditionField-Value")
									.blockConditionOperator("EXAMPLE-blockConditionOperator-Value")
									.blockConditionValue("EXAMPLE-blockConditionValue-Value")
									.labelConditionValue("EXAMPLE-labelConditionValue-Value")
									.labelConditionValues(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
									.contentExample("EXAMPLE-contentExample-Value")
									.isEnabled(true)
									.fieldName("EXAMPLE-fieldName-Value")
									.labelConditionId(981L)
									.isSystem(true)
									.labelConditionOperator("EXAMPLE-labelConditionOperator-Value")
									.sourceId(204L)
									.labelDisplayName("EXAMPLE-labelDisplayName-Value")
									.storageField("EXAMPLE-storageField-Value")
									.labelName("EXAMPLE-labelName-Value")
									.isInlineLabelExistingInDatabase(true).build())))
							.associationCount(438)
							.associationEntity(new ArrayList<>(Arrays.asList(LogAnalyticsAssociation.builder()
									.failureMessage("EXAMPLE-failureMessage-Value")
									.agentId("ocid1.test.oc1..<unique_ID>EXAMPLE-agentId-Value")
									.timeLastAttempted(new Date("Wed Mar 31 12:58:42 UTC 2004"))
									.retryCount(380L)
									.sourceName("EXAMPLE-sourceName-Value")
									.sourceDisplayName("EXAMPLE-sourceDisplayName-Value")
									.sourceTypeName("EXAMPLE-sourceTypeName-Value")
									.lifeCycleState(LogAnalyticsAssociation.LifeCycleState.Accepted)
									.entityId("ocid1.test.oc1..<unique_ID>EXAMPLE-entityId-Value")
									.entityName("EXAMPLE-entityName-Value")
									.entityTypeName("EXAMPLE-entityTypeName-Value")
									.host("EXAMPLE-host-Value")
									.agentEntityName("EXAMPLE-agentEntityName-Value")
									.entityTypeDisplayName("EXAMPLE-entityTypeDisplayName-Value")
									.logGroupId("ocid1.test.oc1..<unique_ID>EXAMPLE-logGroupId-Value")
									.logGroupName("EXAMPLE-logGroupName-Value")
									.logGroupCompartment("EXAMPLE-logGroupCompartment-Value")
									.associationProperties(new ArrayList<>(Arrays.asList(AssociationProperty.builder()
											.name("EXAMPLE-name-Value")
											.value("EXAMPLE-value-Value")
											.patterns(new ArrayList<>(Arrays.asList(PatternOverride.builder()
													.id("ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value")
													.value("EXAMPLE-value-Value")
													.effectiveLevel("EXAMPLE-effectiveLevel-Value").build()))).build()))).build())))
							.dataFilterDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceDataFilter.builder()
									.description("EXAMPLE-description-Value")
									.displayName("EXAMPLE-displayName-Value")
									.editVersion(759L)
									.isEnabled(true)
									.fieldName("EXAMPLE-fieldName-Value")
									.hashType(106)
									.dataFilterId(177L)
									.isSystem(true)
									.matchRegularExpression("EXAMPLE-matchRegularExpression-Value")
									.order(880L)
									.path("EXAMPLE-path-Value")
									.replacementString("EXAMPLE-replacementString-Value")
									.sourceId(140L)
									.filterType(LogAnalyticsSourceDataFilter.FilterType.Mask).build())))
							.databaseCredential("EXAMPLE-databaseCredential-Value")
							.extendedFieldDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceExtendedFieldDefinition.builder()
									.field(LogAnalyticsField.builder()
										.ceeAlias("EXAMPLE-ceeAlias-Value")
										.dataType("EXAMPLE-dataType-Value")
										.regularExpression("EXAMPLE-regularExpression-Value")
										.description("EXAMPLE-description-Value")
										.displayName("EXAMPLE-displayName-Value")
										.editVersion(246L)
										.facetPriority(142L)
										.name("EXAMPLE-name-Value")
										.isFacetEligible(true)
										.isHighCardinality(true)
										.isLargeData(true)
										.isMultiValued(false)
										.isPrimary(false)
										.isSystem(false)
										.isSummarizable(false)
										.mappedValue("EXAMPLE-mappedValue-Value")
										.isMetricKeyEligible(false)
										.isMetricValueEligible(false)
										.rangeFacetEligible(722L)
										.isTableEligible(false)
										.unitType("EXAMPLE-unitType-Value")
										.timeUpdated(new Date("Mon Jan 13 01:01:06 UTC 2031"))
										.isKeepDuplicates(false).build())
									.displayRegularExpression("EXAMPLE-displayRegularExpression-Value")
									.extendedFields(new ArrayList<>(Arrays.asList(LogAnalyticsExtendedField.builder()
											.field(LogAnalyticsField.builder()
												.ceeAlias("EXAMPLE-ceeAlias-Value")
												.dataType("EXAMPLE-dataType-Value")
												.regularExpression("EXAMPLE-regularExpression-Value")
												.description("EXAMPLE-description-Value")
												.displayName("EXAMPLE-displayName-Value")
												.editVersion(493L)
												.facetPriority(634L)
												.name("EXAMPLE-name-Value")
												.isFacetEligible(false)
												.isHighCardinality(true)
												.isLargeData(true)
												.isMultiValued(true)
												.isPrimary(true)
												.isSystem(false)
												.isSummarizable(false)
												.mappedValue("EXAMPLE-mappedValue-Value")
												.isMetricKeyEligible(true)
												.isMetricValueEligible(false)
												.rangeFacetEligible(510L)
												.isTableEligible(false)
												.unitType("EXAMPLE-unitType-Value")
												.timeUpdated(new Date("Sun Sep 15 12:09:07 UTC 2024"))
												.isKeepDuplicates(true).build())
											.extendedFieldDefinitionId(34L)
											.fieldName("EXAMPLE-fieldName-Value")
											.fieldDisplayName("EXAMPLE-fieldDisplayName-Value")
											.savedRegularExpressionName("EXAMPLE-savedRegularExpressionName-Value")
											.extendedFieldId(19L).build())))
									.baseFieldName("EXAMPLE-baseFieldName-Value")
									.baseFieldLogText("EXAMPLE-baseFieldLogText-Value")
									.conditionDataType("EXAMPLE-conditionDataType-Value")
									.conditionField("EXAMPLE-conditionField-Value")
									.conditionOperator("EXAMPLE-conditionOperator-Value")
									.conditionValue("EXAMPLE-conditionValue-Value")
									.convertedRegularExpression("EXAMPLE-convertedRegularExpression-Value")
									.isEnabled(false)
									.extendedFieldDefinitionId(825L)
									.isSystem(true)
									.regularExpression("EXAMPLE-regularExpression-Value")
									.sourceId(810L)
									.timeUpdated(new Date("Sun Jan 13 15:25:23 UTC 2036"))
									.conditionString("EXAMPLE-conditionString-Value")
									.conditionBlock(GenericConditionBlock.builder()
										.conditionBlocksOperator(GenericConditionBlock.ConditionBlocksOperator.NotAnd)
										.name("EXAMPLE-name-Value")
										.operator("EXAMPLE-operator-Value")
										.value("EXAMPLE-value-Value")
										.values(new ArrayList<>(Arrays.asList("EXAMPLE--Value"))).build()).build())))
							.isForCloud(false)
							.labels(new ArrayList<>(Arrays.asList(LogAnalyticsLabelView.builder()
									.aliases(new ArrayList<>(Arrays.asList(LogAnalyticsLabelAlias.builder()
											.alias("EXAMPLE-alias-Value")
											.aliasDisplayName("EXAMPLE-aliasDisplayName-Value")
											.isSystem(true)
											.displayName("EXAMPLE-displayName-Value")
											.name("EXAMPLE-name-Value")
											.priority(LogAnalyticsLabelAlias.Priority.Medium).build())))
									.countUsageInAlertRule(314L)
									.countUsageInSource(656L)
									.id("EXAMPLE-id-Value")
									.suggestType(524L)
									.description("EXAMPLE-description-Value")
									.displayName("EXAMPLE-displayName-Value")
									.editVersion(659L)
									.impact("EXAMPLE-impact-Value")
									.isSystem(false)
									.name("EXAMPLE-name-Value")
									.priority(LogAnalyticsLabelView.Priority.Medium)
									.recommendation("EXAMPLE-recommendation-Value")
									.type(83L)
									.isUserDeleted(true).build())))
							.metricDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsMetric.builder()
									.aggregationField("EXAMPLE-aggregationField-Value")
									.bucketMetadata("EXAMPLE-bucketMetadata-Value")
									.clockPeriod("EXAMPLE-clockPeriod-Value")
									.description("EXAMPLE-description-Value")
									.editVersion(536L)
									.fieldName("EXAMPLE-fieldName-Value")
									.fieldValues(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
									.groupingField("EXAMPLE-groupingField-Value")
									.isEnabled(false)
									.isSystem(true)
									.displayName("EXAMPLE-displayName-Value")
									.metricReference(495L)
									.name("EXAMPLE-name-Value")
									.metricType(LogAnalyticsMetric.MetricType.Count)
									.isMetricSourceEnabled(true)
									.operator(LogAnalyticsMetric.Operator.NotNull)
									.entityType("EXAMPLE-entityType-Value")
									.timeUpdated(new Date("Sun Jan 16 19:51:50 UTC 2000"))
									.unitType("EXAMPLE-unitType-Value")
									.isUserCustomized(false).build())))
							.metrics(new ArrayList<>(Arrays.asList(LogAnalyticsSourceMetric.builder()
									.isMetricSourceEnabled(false)
									.metricName("EXAMPLE-metricName-Value")
									.sourceName("EXAMPLE-sourceName-Value")
									.entityType("EXAMPLE-entityType-Value").build())))
							.parameters(new ArrayList<>(Arrays.asList(LogAnalyticsParameter.builder()
									.defaultValue("EXAMPLE-defaultValue-Value")
									.description("EXAMPLE-description-Value")
									.isActive(false)
									.name("EXAMPLE-name-Value")
									.sourceId(381L).build())))
							.patternCount(377)
							.patterns(new ArrayList<>(Arrays.asList(LogAnalyticsSourcePattern.builder()
									.convertedText("EXAMPLE-convertedText-Value")
									.dbParserId(678L)
									.dbPatternDateTimeColumns("EXAMPLE-dbPatternDateTimeColumns-Value")
									.dbPatternDateTimeField("EXAMPLE-dbPatternDateTimeField-Value")
									.dbPatternSequenceColumn("EXAMPLE-dbPatternSequenceColumn-Value")
									.isInclude(false)
									.isDefault(false)
									.patternFilter(LogAnalyticsPatternFilter.builder()
										.agentVersion("EXAMPLE-agentVersion-Value")
										.isInUse(false)
										.operatingSystem("EXAMPLE-operatingSystem-Value")
										.patternId(996L)
										.sourceId(253L)
										.version("EXAMPLE-version-Value").build())
									.alias("EXAMPLE-alias-Value")
									.description("EXAMPLE-description-Value")
									.isEnabled(false)
									.patternId(263L)
									.isSystem(false)
									.sourceId(42L)
									.isAgentWarningSuppressed(false)
									.patternText("EXAMPLE-patternText-Value")
									.patternType(82L)
									.entityType(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
									.patternProperties(new ArrayList<>(Arrays.asList(LogAnalyticsProperty.builder()
											.name("EXAMPLE-name-Value")
											.value("EXAMPLE-value-Value").build()))).build())))
							.description("EXAMPLE-description-Value")
							.displayName("EXAMPLE-displayName-Value")
							.editVersion(996L)
							.functions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceFunction.builder()
									.arguments(new ArrayList<>(Arrays.asList(LogAnalyticsMetaFunctionArgument.builder()
											.isOverrideOutputFields(false)
											.argumentDisplayName("EXAMPLE-argumentDisplayName-Value")
											.argumentExample("EXAMPLE-argumentExample-Value")
											.argumentService("EXAMPLE-argumentService-Value")
											.argumentDataType("EXAMPLE-argumentDataType-Value")
											.argumentDescription("EXAMPLE-argumentDescription-Value")
											.argumentName("EXAMPLE-argumentName-Value")
											.argumentOrder(132L)
											.argumentType(947L)
											.argumentId(698L)
											.argumentLookupColumn("EXAMPLE-argumentLookupColumn-Value")
											.argumentLookupColumnPosition(453L)
											.argumentValue("EXAMPLE-argumentValue-Value")
											.argumentReference("EXAMPLE-argumentReference-Value").build())))
									.isEnabled(false)
									.function(LogAnalyticsMetaFunction.builder()
										.metaFunctionArgument(new ArrayList<>(Arrays.asList(LogAnalyticsMetaFunctionArgument.builder()
												.isOverrideOutputFields(true)
												.argumentDisplayName("EXAMPLE-argumentDisplayName-Value")
												.argumentExample("EXAMPLE-argumentExample-Value")
												.argumentService("EXAMPLE-argumentService-Value")
												.argumentDataType("EXAMPLE-argumentDataType-Value")
												.argumentDescription("EXAMPLE-argumentDescription-Value")
												.argumentName("EXAMPLE-argumentName-Value")
												.argumentOrder(569L)
												.argumentType(458L)
												.argumentId(64L)
												.argumentLookupColumn("EXAMPLE-argumentLookupColumn-Value")
												.argumentLookupColumnPosition(533L)
												.argumentValue("EXAMPLE-argumentValue-Value")
												.argumentReference("EXAMPLE-argumentReference-Value").build())))
										.component("EXAMPLE-component-Value")
										.description("EXAMPLE-description-Value")
										.editVersion(439L)
										.metaFunctionId(366L)
										.javaClassName("EXAMPLE-javaClassName-Value")
										.name("EXAMPLE-name-Value").build())
									.functionName(LogAnalyticsSourceFunction.FunctionName.Geolocation)
									.functionReference("EXAMPLE-functionReference-Value")
									.sourceReference("EXAMPLE-sourceReference-Value")
									.features(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
									.functionId(929L)
									.order(46L)
									.isSystem(true)
									.lookupColumn("EXAMPLE-lookupColumn-Value")
									.lookupColumnPosition(83L)
									.lookupDisplayName("EXAMPLE-lookupDisplayName-Value")
									.lookupMode(675L)
									.lookupTable("EXAMPLE-lookupTable-Value")
									.sourceId(622L).build())))
							.sourceId(778L)
							.name("EXAMPLE-name-Value")
							.isSecureContent(true)
							.isSystem(true)
							.isAutoAssociationEnabled(true)
							.isAutoAssociationOverride(false)
							.ruleId(627L)
							.typeName("EXAMPLE-typeName-Value")
							.typeDisplayName("EXAMPLE-typeDisplayName-Value")
							.warningConfig(701L)
							.metadataFields(new ArrayList<>(Arrays.asList(LogAnalyticsSourceMetadataField.builder()
									.fieldName("EXAMPLE-fieldName-Value")
									.isEnabled(false)
									.isSystem(true)
									.key("EXAMPLE-key-Value")
									.sourceName("EXAMPLE-sourceName-Value").build())))
							.labelDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsLabelDefinition.builder()
									.editVersion(137L)
									.isSystem(true)
									.sourceId(282L)
									.labelName("EXAMPLE-labelName-Value").build())))
							.entityTypes(new ArrayList<>(Arrays.asList(LogAnalyticsSourceEntityType.builder()
									.sourceId(81L)
									.entityType("EXAMPLE-entityType-Value")
									.entityTypeCategory("EXAMPLE-entityTypeCategory-Value")
									.entityTypeDisplayName("EXAMPLE-entityTypeDisplayName-Value").build())))
							.isTimezoneOverride(false)
							.timeUpdated(new Date("Tue Dec 25 06:10:48 UTC 2018"))
							.eventTypes(new ArrayList<>(Arrays.asList(EventType.builder()
									.eventTypeName("EXAMPLE-eventTypeName-Value")
									.specVersion("EXAMPLE-specVersion-Value")
									.isEnabled(true)
									.isSystem(false)
									.timeUpdated(new Date("Mon Apr 27 09:32:52 UTC 2009")).build())))
							.categories(new ArrayList<>(Arrays.asList(LogAnalyticsCategory.builder()
									.name("EXAMPLE-name-Value")
									.description("EXAMPLE-description-Value")
									.displayName("EXAMPLE-displayName-Value")
									.type("EXAMPLE-type-Value")
									.isSystem(false).build())))
							.endpoints(new ArrayList<>(Arrays.asList(LogListTypeEndpoint.builder()
									.listEndpoint(LogListEndpoint.builder()
										.name("EXAMPLE-name-Value")
										.description("EXAMPLE-description-Value")
										.model("EXAMPLE-model-Value")
										.endpointId(73L)
										.request(EndpointRequest.builder()
											.method(EndpointRequest.Method.Get)
											.url("EXAMPLE-url-Value")
											.contentType("EXAMPLE-contentType-Value")
											.payload("EXAMPLE-payload-Value")
											.headers(new ArrayList<>(Arrays.asList(NameValuePair.builder()
													.name("EXAMPLE-name-Value")
													.value("EXAMPLE-value-Value").build())))
											.formParameters(new ArrayList<>(Arrays.asList(NameValuePair.builder()
													.name("EXAMPLE-name-Value")
													.value("EXAMPLE-value-Value").build()))).build())
										.response(EndpointResponse.builder()
											.contentType("EXAMPLE-contentType-Value")
											.example("EXAMPLE-example-Value").build())
										.credentials(EndpointCredentials.builder()
											.credentialType(EndpointCredentials.CredentialType.BasicAuth)
											.credentialName("EXAMPLE-credentialName-Value")
											.credentialEndpoint(CredentialEndpoint.builder()
												.name("EXAMPLE-name-Value")
												.description("EXAMPLE-description-Value")
												.model("EXAMPLE-model-Value")
												.endpointId(423L)
												.response(EndpointResponse.builder()
													.contentType("EXAMPLE-contentType-Value")
													.example("EXAMPLE-example-Value").build())
												.proxy(EndpointProxy.builder()
													.url("EXAMPLE-url-Value")
													.credentialName("EXAMPLE-credentialName-Value")
													.credentialType(EndpointProxy.CredentialType.Token).build()).build()).build())
										.proxy(EndpointProxy.builder()
											.url("EXAMPLE-url-Value")
											.credentialName("EXAMPLE-credentialName-Value")
											.credentialType(EndpointProxy.CredentialType.None).build())
										.isEnabled(true)
										.isSystem(false)
										.endpointProperties(new ArrayList<>(Arrays.asList(LogAnalyticsProperty.builder()
												.name("EXAMPLE-name-Value")
												.value("EXAMPLE-value-Value").build()))).build())
									.logEndpoints(new ArrayList<>(Arrays.asList(LogEndpoint.builder()
											.name("EXAMPLE-name-Value")
											.description("EXAMPLE-description-Value")
											.model("EXAMPLE-model-Value")
											.endpointId(130L)
											.request(EndpointRequest.builder()
												.method(EndpointRequest.Method.Get)
												.url("EXAMPLE-url-Value")
												.contentType("EXAMPLE-contentType-Value")
												.payload("EXAMPLE-payload-Value")
												.headers(new ArrayList<>(Arrays.asList(NameValuePair.builder()
														.name("EXAMPLE-name-Value")
														.value("EXAMPLE-value-Value").build())))
												.formParameters(new ArrayList<>(Arrays.asList(NameValuePair.builder()
														.name("EXAMPLE-name-Value")
														.value("EXAMPLE-value-Value").build()))).build())
											.response(EndpointResponse.builder()
												.contentType("EXAMPLE-contentType-Value")
												.example("EXAMPLE-example-Value").build())
											.credentials(EndpointCredentials.builder()
												.credentialType(EndpointCredentials.CredentialType.BasicAuth)
												.credentialName("EXAMPLE-credentialName-Value")
												.credentialEndpoint(CredentialEndpoint.builder()
													.name("EXAMPLE-name-Value")
													.description("EXAMPLE-description-Value")
													.model("EXAMPLE-model-Value")
													.endpointId(220L)
													.response(EndpointResponse.builder()
														.contentType("EXAMPLE-contentType-Value")
														.example("EXAMPLE-example-Value").build())
													.proxy(EndpointProxy.builder()
														.url("EXAMPLE-url-Value")
														.credentialName("EXAMPLE-credentialName-Value")
														.credentialType(EndpointProxy.CredentialType.BasicAuth).build()).build()).build())
											.proxy(EndpointProxy.builder()
												.url("EXAMPLE-url-Value")
												.credentialName("EXAMPLE-credentialName-Value")
												.credentialType(EndpointProxy.CredentialType.Token).build())
											.isEnabled(false)
											.isSystem(false)
											.endpointProperties(new ArrayList<>(Arrays.asList(LogAnalyticsProperty.builder()
													.name("EXAMPLE-name-Value")
													.value("EXAMPLE-value-Value").build()))).build()))).build())))
							.sourceProperties(new ArrayList<>(Arrays.asList(LogAnalyticsProperty.builder()
									.name("EXAMPLE-name-Value")
									.value("EXAMPLE-value-Value").build()))).build())))
					.shouldTokenizeOriginalText(false)
					.fieldDelimiter("EXAMPLE-fieldDelimiter-Value")
					.fieldQualifier("EXAMPLE-fieldQualifier-Value")
					.type(LogAnalyticsParser.Type.Regex)
					.isUserDeleted(true)
					.isNamespaceAware(true)
					.categories(new ArrayList<>(Arrays.asList(LogAnalyticsCategory.builder()
							.name("EXAMPLE-name-Value")
							.description("EXAMPLE-description-Value")
							.displayName("EXAMPLE-displayName-Value")
							.type("EXAMPLE-type-Value")
							.isSystem(true).build())))
					.isPositionAware(true)
					.dependentSources(new ArrayList<>(Arrays.asList(DependentSource.builder()
							.sourceName("EXAMPLE-sourceName-Value")
							.sourceDisplayName("EXAMPLE-sourceDisplayName-Value")
							.sourceId(936L)
							.sourceType("EXAMPLE-sourceType-Value")
							.isSystem(false)
							.isAutoAssociationEnabled(true)
							.entityTypes(new ArrayList<>(Arrays.asList(LogAnalyticsSourceEntityType.builder()
									.sourceId(467L)
									.entityType("EXAMPLE-entityType-Value")
									.entityTypeCategory("EXAMPLE-entityTypeCategory-Value")
									.entityTypeDisplayName("EXAMPLE-entityTypeDisplayName-Value").build())))
							.dependencies(new ArrayList<>(Arrays.asList(Dependency.builder()
									.type("EXAMPLE-type-Value")
									.referenceType("EXAMPLE-referenceType-Value")
									.referenceId(983L)
									.referenceName("EXAMPLE-referenceName-Value")
									.referenceDisplayName("EXAMPLE-referenceDisplayName-Value").build()))).build())))
					.dependentParsers(new ArrayList<>(Arrays.asList(DependentParser.builder()
							.parserName("EXAMPLE-parserName-Value")
							.parserDisplayName("EXAMPLE-parserDisplayName-Value")
							.parserId(516L)
							.isSystem(false)
							.parserType(DependentParser.ParserType.Json)
							.dependencies(new ArrayList<>(Arrays.asList(Dependency.builder()
									.type("EXAMPLE-type-Value")
									.referenceType("EXAMPLE-referenceType-Value")
									.referenceId(397L)
									.referenceName("EXAMPLE-referenceName-Value")
									.referenceDisplayName("EXAMPLE-referenceDisplayName-Value").build()))).build()))).build())
				.structuredColumnInfo("EXAMPLE-structuredColumnInfo-Value")
				.actions(new ArrayList<>(Arrays.asList(ParserAction.builder()
						.name("EXAMPLE-name-Value")
						.order(580).build()))).build())))
		.footerContent("EXAMPLE-footerContent-Value")
		.headerContent("EXAMPLE-headerContent-Value")
		.name("EXAMPLE-name-Value")
		.isDefault(false)
		.isSingleLineContent(true)
		.isSystem(true)
		.language("EXAMPLE-language-Value")
		.logTypeTestRequestVersion(694)
		.parserIgnorelineCharacters("EXAMPLE-parserIgnorelineCharacters-Value")
		.parserSequence(587)
		.parserTimezone("EXAMPLE-parserTimezone-Value")
		.isParserWrittenOnce(true)
		.parserFunctions(new ArrayList<>(Arrays.asList(LogAnalyticsParserFunction.builder()
				.parserMetaPlugin(LogAnalyticsParserMetaPlugin.builder()
					.metaPluginParameters(new ArrayList<>(Arrays.asList(LogAnalyticsParserMetaPluginParameter.builder()
							.description("EXAMPLE-description-Value")
							.name("EXAMPLE-name-Value")
							.isMandatory(false)
							.isRepeatable(true)
							.pluginName("EXAMPLE-pluginName-Value")
							.type("EXAMPLE-type-Value").build())))
					.description("EXAMPLE-description-Value")
					.displayName("EXAMPLE-displayName-Value")
					.name("EXAMPLE-name-Value").build())
				.parserFunctionId(841L)
				.parserFunctionName("EXAMPLE-parserFunctionName-Value")
				.isEnabled(false)
				.isSystem(false)
				.parserId(709L)
				.parserName("EXAMPLE-parserName-Value")
				.parserMetaPluginName("EXAMPLE-parserMetaPluginName-Value")
				.parserFunctionPriority(883L)
				.parserFunctionParameters(new ArrayList<>(Arrays.asList(LogAnalyticsParserFunctionParameter.builder()
						.parserFunctionId(449L)
						.parserFunctionParameterName("EXAMPLE-parserFunctionParameterName-Value")
						.parserFunctionParameterId(964L)
						.parserMetaPluginParameterName("EXAMPLE-parserMetaPluginParameterName-Value")
						.parserMetaPluginParameterValue("EXAMPLE-parserMetaPluginParameterValue-Value")
						.parserName("EXAMPLE-parserName-Value")
						.parserMetaPluginParameter(LogAnalyticsParserMetaPluginParameter.builder()
							.description("EXAMPLE-description-Value")
							.name("EXAMPLE-name-Value")
							.isMandatory(false)
							.isRepeatable(false)
							.pluginName("EXAMPLE-pluginName-Value")
							.type("EXAMPLE-type-Value").build()).build()))).build())))
		.shouldTokenizeOriginalText(true)
		.fieldDelimiter("EXAMPLE-fieldDelimiter-Value")
		.fieldQualifier("EXAMPLE-fieldQualifier-Value")
		.type(UpsertLogAnalyticsParserDetails.Type.Delimited)
		.isNamespaceAware(false)
		.categories(new ArrayList<>(Arrays.asList(LogAnalyticsCategory.builder()
				.name("EXAMPLE-name-Value")
				.description("EXAMPLE-description-Value")
				.displayName("EXAMPLE-displayName-Value")
				.type("EXAMPLE-type-Value")
				.isSystem(true).build())))
		.isPositionAware(false).build();

	UpsertParserRequest upsertParserRequest = UpsertParserRequest.builder()
		.namespaceName("EXAMPLE-namespaceName-Value")
		.upsertLogAnalyticsParserDetails(upsertLogAnalyticsParserDetails)
		.opcRetryToken("EXAMPLE-opcRetryToken-Value")
		.opcRequestId("MTB4HGEU3FDZ57C5WVL4<unique_ID>")
		.ifMatch("EXAMPLE-ifMatch-Value").build();

        /* Send request to the Client */
        UpsertParserResponse response = client.upsertParser(upsertParserRequest);
    }

    
}