microsoft.dynamics.crm.complex.MetadataConditionExpression Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-microsoft-dynamics Show documentation
Show all versions of odata-client-microsoft-dynamics Show documentation
Java client as template for Microsoft Dynamics organisation endpoints
package microsoft.dynamics.crm.complex;
import com.fasterxml.jackson.annotation.JacksonInject;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.ODataType;
import com.github.davidmoten.odata.client.Util;
import com.github.davidmoten.odata.client.annotation.Property;
import com.github.davidmoten.odata.client.internal.ChangedFields;
import com.github.davidmoten.odata.client.internal.Checks;
import com.github.davidmoten.odata.client.internal.UnmappedFields;
import java.util.Optional;
import microsoft.dynamics.crm.enums.MetadataConditionOperator;
@JsonPropertyOrder({
"@odata.type",
"PropertyName",
"ConditionOperator",
"Value"})
@JsonInclude(Include.NON_NULL)
public class MetadataConditionExpression implements ODataType {
@JacksonInject
@JsonIgnore
protected ContextPath contextPath;
@JacksonInject
@JsonIgnore
protected UnmappedFields unmappedFields;
@JsonProperty("@odata.type")
protected String odataType;
@JsonProperty("PropertyName")
protected String propertyName;
@JsonProperty("ConditionOperator")
protected MetadataConditionOperator conditionOperator;
@JsonProperty("Value")
protected Object value;
protected MetadataConditionExpression() {
}
@Override
public String odataTypeName() {
return "Microsoft.Dynamics.CRM.MetadataConditionExpression";
}
@Property(name="PropertyName")
@JsonIgnore
public Optional getPropertyName() {
return Optional.ofNullable(propertyName);
}
public MetadataConditionExpression withPropertyName(String propertyName) {
Checks.checkIsAscii(propertyName);
MetadataConditionExpression _x = _copy();
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.MetadataConditionExpression");
_x.propertyName = propertyName;
return _x;
}
@Property(name="ConditionOperator")
@JsonIgnore
public Optional getConditionOperator() {
return Optional.ofNullable(conditionOperator);
}
public MetadataConditionExpression withConditionOperator(MetadataConditionOperator conditionOperator) {
MetadataConditionExpression _x = _copy();
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.MetadataConditionExpression");
_x.conditionOperator = conditionOperator;
return _x;
}
@Property(name="Value")
@JsonIgnore
public Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy