Class ResourceOperation

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class ResourceOperation
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Describes the resourceOperation resource (entity) of the Microsoft Graph API ( REST), which supports Intune workflows related to role-based access control ( RBAC).”
    • Field Detail

      • actionName

        protected String actionName
      • description

        protected String description
      • resourceName

        protected String resourceName
    • Constructor Detail

      • ResourceOperation

        protected ResourceOperation()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderResourceOperation

        public static ResourceOperation.Builder builderResourceOperation()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getActionName

        public Optional<String> getActionName()
        “Type of action this operation is going to perform. The actionName should be concise and limited to as few words as possible.”
        Returns:
        property actionName
      • withActionName

        public ResourceOperation withActionName​(String actionName)
        Returns an immutable copy of this with just the actionName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Type of action this operation is going to perform. The actionName should be concise and limited to as few words as possible.”

        Parameters:
        actionName - new value of actionName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the actionName field changed
      • getDescription

        public Optional<String> getDescription()
        “Description of the resource operation. The description is used in mouse-over text for the operation when shown in the Azure Portal.”
        Returns:
        property description
      • withDescription

        public ResourceOperation withDescription​(String description)
        Returns an immutable copy of this with just the description field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Description of the resource operation. The description is used in mouse-over text for the operation when shown in the Azure Portal.”

        Parameters:
        description - new value of description field (as defined in service metadata)
        Returns:
        immutable copy of this with just the description field changed
      • getResourceName

        public Optional<String> getResourceName()
        “Name of the Resource this operation is performed on.”
        Returns:
        property resourceName
      • withResourceName

        public ResourceOperation withResourceName​(String resourceName)
        Returns an immutable copy of this with just the resourceName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Name of the Resource this operation is performed on.”

        Parameters:
        resourceName - new value of resourceName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the resourceName field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public ResourceOperation patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public ResourceOperation put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected