Package odata.msgraph.client.complex
Class AuditResource
- java.lang.Object
-
- odata.msgraph.client.complex.AuditResource
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class AuditResource extends Object implements com.github.davidmoten.odata.client.ODataType
“A class containing the properties for Audit Resource.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuditResource.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringauditResourceTypeprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected StringdisplayNameprotected List<AuditProperty>modifiedPropertiesprotected StringmodifiedPropertiesNextLinkprotected StringodataTypeprotected StringresourceIdprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedAuditResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuditResource.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAuditResourceType()“Audit resource's type.”Optional<String>getDisplayName()“Display name.”com.github.davidmoten.odata.client.CollectionPage<AuditProperty>getModifiedProperties()“List of modified properties.”com.github.davidmoten.odata.client.CollectionPage<AuditProperty>getModifiedProperties(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of modified properties.”Optional<String>getResourceId()“Audit resource's Id.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()AuditResourcewithAuditResourceType(String auditResourceType)Returns an immutable copy ofthiswith just theauditResourceTypefield changed.AuditResourcewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.AuditResourcewithResourceId(String resourceId)Returns an immutable copy ofthiswith just theresourceIdfield changed.AuditResourcewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
auditResourceType
protected String auditResourceType
-
displayName
protected String displayName
-
modifiedProperties
protected List<AuditProperty> modifiedProperties
-
modifiedPropertiesNextLink
protected String modifiedPropertiesNextLink
-
resourceId
protected String resourceId
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getAuditResourceType
public Optional<String> getAuditResourceType()
“Audit resource's type.”- Returns:
- property auditResourceType
-
withAuditResourceType
public AuditResource withAuditResourceType(String auditResourceType)
Returns an immutable copy ofthiswith just theauditResourceTypefield 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.“Audit resource's type.”
- Parameters:
auditResourceType- new value ofauditResourceTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theauditResourceTypefield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Display name.”- Returns:
- property displayName
-
withDisplayName
public AuditResource withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield 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.“Display name.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getModifiedProperties
public com.github.davidmoten.odata.client.CollectionPage<AuditProperty> getModifiedProperties()
“List of modified properties.”- Returns:
- property modifiedProperties
-
getModifiedProperties
public com.github.davidmoten.odata.client.CollectionPage<AuditProperty> getModifiedProperties(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of modified properties.”- Parameters:
options- specify connect and read timeouts- Returns:
- property modifiedProperties
-
getResourceId
public Optional<String> getResourceId()
“Audit resource's Id.”- Returns:
- property resourceId
-
withResourceId
public AuditResource withResourceId(String resourceId)
Returns an immutable copy ofthiswith just theresourceIdfield 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.“Audit resource's Id.”
- Parameters:
resourceId- new value ofresourceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theresourceIdfield changed
-
withUnmappedField
public AuditResource withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static AuditResource.Builder builder()
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
-
-