Package odata.msgraph.client.entity
Class ResourceOperation
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.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).”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceOperation.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringactionNameprotected Stringdescriptionprotected StringresourceName-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedResourceOperation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceOperation.BuilderbuilderResourceOperation()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getActionName()“Type of action this operation is going to perform.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDescription()“Description of the resource operation.Optional<String>getResourceName()“Name of the Resource this operation is performed on.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()ResourceOperationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ResourceOperationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ResourceOperationwithActionName(String actionName)Returns an immutable copy ofthiswith just theactionNamefield changed.ResourceOperationwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.ResourceOperationwithResourceName(String resourceName)Returns an immutable copy ofthiswith just theresourceNamefield changed.ResourceOperationwithUnmappedField(String name, Object value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
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 ofthiswith just theactionNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofactionNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactionNamefield 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 ofthiswith just thedescriptionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield 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 ofthiswith just theresourceNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofresourceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theresourceNamefield changed
-
withUnmappedField
public ResourceOperation withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public ResourceOperation patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ResourceOperation put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-