Class DeviceComplianceScriptError
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceComplianceScriptError
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
DeviceComplianceScriptRuleError
public class DeviceComplianceScriptError extends Object implements com.github.davidmoten.odata.client.ODataType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceComplianceScriptError.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Codecodeprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected DeviceComplianceScriptRulesValidationErrordeviceComplianceScriptRulesValidationErrorprotected Stringmessageprotected StringodataTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceComplianceScriptError()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceComplianceScriptError.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Code>getCode()“Error code.”Optional<DeviceComplianceScriptRulesValidationError>getDeviceComplianceScriptRulesValidationError()“Error code.”Optional<String>getMessage()“Error message.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceComplianceScriptErrorwithCode(Code code)Returns an immutable copy ofthiswith just thecodefield changed.DeviceComplianceScriptErrorwithDeviceComplianceScriptRulesValidationError(DeviceComplianceScriptRulesValidationError deviceComplianceScriptRulesValidationError)Returns an immutable copy ofthiswith just thedeviceComplianceScriptRulesValidationErrorfield changed.DeviceComplianceScriptErrorwithMessage(String message)Returns an immutable copy ofthiswith just themessagefield changed.DeviceComplianceScriptErrorwithUnmappedField(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
-
code
protected Code code
-
deviceComplianceScriptRulesValidationError
protected DeviceComplianceScriptRulesValidationError deviceComplianceScriptRulesValidationError
-
message
protected String message
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
withCode
public DeviceComplianceScriptError withCode(Code code)
Returns an immutable copy ofthiswith just thecodefield 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.“Error code.”
- Parameters:
code- new value ofcodefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecodefield changed
-
getDeviceComplianceScriptRulesValidationError
public Optional<DeviceComplianceScriptRulesValidationError> getDeviceComplianceScriptRulesValidationError()
“Error code.”- Returns:
- property deviceComplianceScriptRulesValidationError
-
withDeviceComplianceScriptRulesValidationError
public DeviceComplianceScriptError withDeviceComplianceScriptRulesValidationError(DeviceComplianceScriptRulesValidationError deviceComplianceScriptRulesValidationError)
Returns an immutable copy ofthiswith just thedeviceComplianceScriptRulesValidationErrorfield 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.“Error code.”
- Parameters:
deviceComplianceScriptRulesValidationError- new value ofdeviceComplianceScriptRulesValidationErrorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceComplianceScriptRulesValidationErrorfield changed
-
withMessage
public DeviceComplianceScriptError withMessage(String message)
Returns an immutable copy ofthiswith just themessagefield 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.“Error message.”
- Parameters:
message- new value ofmessagefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themessagefield changed
-
withUnmappedField
public DeviceComplianceScriptError 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 DeviceComplianceScriptError.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
-
-