Delen via


ParticipantPropertyReference Class

  • java.lang.Object
    • com.azure.resourcemanager.customerinsights.models.ParticipantPropertyReference

Implements

public final class ParticipantPropertyReference
implements JsonSerializable<ParticipantPropertyReference>

The participant property reference.

Constructor Summary

Constructor Description
ParticipantPropertyReference()

Creates an instance of ParticipantPropertyReference class.

Method Summary

Modifier and Type Method and Description
static ParticipantPropertyReference fromJson(JsonReader jsonReader)

Reads an instance of ParticipantPropertyReference from the JsonReader.

String sourcePropertyName()

Get the sourcePropertyName property: The source property that maps to the target property.

String targetPropertyName()

Get the targetPropertyName property: The target property that maps to the source property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ParticipantPropertyReference withSourcePropertyName(String sourcePropertyName)

Set the sourcePropertyName property: The source property that maps to the target property.

ParticipantPropertyReference withTargetPropertyName(String targetPropertyName)

Set the targetPropertyName property: The target property that maps to the source property.

Methods inherited from java.lang.Object

Constructor Details

ParticipantPropertyReference

public ParticipantPropertyReference()

Creates an instance of ParticipantPropertyReference class.

Method Details

fromJson

public static ParticipantPropertyReference fromJson(JsonReader jsonReader)

Reads an instance of ParticipantPropertyReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ParticipantPropertyReference if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

sourcePropertyName

public String sourcePropertyName()

Get the sourcePropertyName property: The source property that maps to the target property.

Returns:

the sourcePropertyName value.

targetPropertyName

public String targetPropertyName()

Get the targetPropertyName property: The target property that maps to the source property.

Returns:

the targetPropertyName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSourcePropertyName

public ParticipantPropertyReference withSourcePropertyName(String sourcePropertyName)

Set the sourcePropertyName property: The source property that maps to the target property.

Parameters:

sourcePropertyName - the sourcePropertyName value to set.

Returns:

the ParticipantPropertyReference object itself.

withTargetPropertyName

public ParticipantPropertyReference withTargetPropertyName(String targetPropertyName)

Set the targetPropertyName property: The target property that maps to the source property.

Parameters:

targetPropertyName - the targetPropertyName value to set.

Returns:

the ParticipantPropertyReference object itself.

Applies to