All Downloads are FREE. Search and download functionalities are using the official Maven repository.

microsoft.dynamics.crm.complex.AssociatedMenuConfiguration Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
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.AssociatedMenuBehavior;
import microsoft.dynamics.crm.enums.AssociatedMenuGroup;

@JsonPropertyOrder({
    "@odata.type", 
    "Behavior", 
    "Group", 
    "Label", 
    "Order", 
    "IsCustomizable", 
    "Icon", 
    "ViewId", 
    "AvailableOffline", 
    "MenuId", 
    "QueryApi"})
@JsonInclude(Include.NON_NULL)
public class AssociatedMenuConfiguration implements ODataType {

    @JacksonInject
    @JsonIgnore
    protected ContextPath contextPath;

    @JacksonInject
    @JsonIgnore
    protected UnmappedFields unmappedFields;

    @JsonProperty("@odata.type")
    protected String odataType;

    @JsonProperty("Behavior")
    protected AssociatedMenuBehavior behavior;

    @JsonProperty("Group")
    protected AssociatedMenuGroup group;

    @JsonProperty("Label")
    protected Label label;

    @JsonProperty("Order")
    protected Integer order;

    @JsonProperty("IsCustomizable")
    protected Boolean isCustomizable;

    @JsonProperty("Icon")
    protected String icon;

    @JsonProperty("ViewId")
    protected String viewId;

    @JsonProperty("AvailableOffline")
    protected Boolean availableOffline;

    @JsonProperty("MenuId")
    protected String menuId;

    @JsonProperty("QueryApi")
    protected String queryApi;

    protected AssociatedMenuConfiguration() {
    }

    @Override
    public String odataTypeName() {
        return "Microsoft.Dynamics.CRM.AssociatedMenuConfiguration";
    }

    @Property(name="Behavior")
    @JsonIgnore
    public Optional getBehavior() {
        return Optional.ofNullable(behavior);
    }

    public AssociatedMenuConfiguration withBehavior(AssociatedMenuBehavior behavior) {
        AssociatedMenuConfiguration _x = _copy();
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.AssociatedMenuConfiguration");
        _x.behavior = behavior;
        return _x;
    }

    @Property(name="Group")
    @JsonIgnore
    public Optional getGroup() {
        return Optional.ofNullable(group);
    }

    public AssociatedMenuConfiguration withGroup(AssociatedMenuGroup group) {
        AssociatedMenuConfiguration _x = _copy();
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.AssociatedMenuConfiguration");
        _x.group = group;
        return _x;
    }

    @Property(name="Label")
    @JsonIgnore
    public Optional




© 2015 - 2025 Weber Informatics LLC | Privacy Policy