Class DeviceComplianceScriptRule
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceComplianceScriptRule
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceComplianceScriptRule extends Object implements com.github.davidmoten.odata.client.ODataType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceComplianceScriptRule.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected DataTypedataTypeprotected DeviceComplianceScriptRuleDataTypedeviceComplianceScriptRuleDataTypeprotected DeviceComplianceScriptRulOperatordeviceComplianceScriptRulOperatorprotected StringodataTypeprotected Stringoperandprotected Operatoroperatorprotected StringsettingNameprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceComplianceScriptRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceComplianceScriptRule.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<DataType>getDataType()“Data type specified in the rule.”Optional<DeviceComplianceScriptRuleDataType>getDeviceComplianceScriptRuleDataType()“Data type specified in the rule.”Optional<DeviceComplianceScriptRulOperator>getDeviceComplianceScriptRulOperator()“Operator specified in the rule.”Optional<String>getOperand()“Operand specified in the rule.”Optional<Operator>getOperator()“Operator specified in the rule.”Optional<String>getSettingName()“Setting name specified in the rule.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceComplianceScriptRulewithDataType(DataType dataType)Returns an immutable copy ofthiswith just thedataTypefield changed.DeviceComplianceScriptRulewithDeviceComplianceScriptRuleDataType(DeviceComplianceScriptRuleDataType deviceComplianceScriptRuleDataType)Returns an immutable copy ofthiswith just thedeviceComplianceScriptRuleDataTypefield changed.DeviceComplianceScriptRulewithDeviceComplianceScriptRulOperator(DeviceComplianceScriptRulOperator deviceComplianceScriptRulOperator)Returns an immutable copy ofthiswith just thedeviceComplianceScriptRulOperatorfield changed.DeviceComplianceScriptRulewithOperand(String operand)Returns an immutable copy ofthiswith just theoperandfield changed.DeviceComplianceScriptRulewithOperator(Operator operator)Returns an immutable copy ofthiswith just theoperatorfield changed.DeviceComplianceScriptRulewithSettingName(String settingName)Returns an immutable copy ofthiswith just thesettingNamefield changed.DeviceComplianceScriptRulewithUnmappedField(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
-
dataType
protected DataType dataType
-
deviceComplianceScriptRuleDataType
protected DeviceComplianceScriptRuleDataType deviceComplianceScriptRuleDataType
-
deviceComplianceScriptRulOperator
protected DeviceComplianceScriptRulOperator deviceComplianceScriptRulOperator
-
operand
protected String operand
-
operator
protected Operator operator
-
settingName
protected String settingName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getDataType
public Optional<DataType> getDataType()
“Data type specified in the rule.”- Returns:
- property dataType
-
withDataType
public DeviceComplianceScriptRule withDataType(DataType dataType)
Returns an immutable copy ofthiswith just thedataTypefield 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.“Data type specified in the rule.”
- Parameters:
dataType- new value ofdataTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedataTypefield changed
-
getDeviceComplianceScriptRuleDataType
public Optional<DeviceComplianceScriptRuleDataType> getDeviceComplianceScriptRuleDataType()
“Data type specified in the rule.”- Returns:
- property deviceComplianceScriptRuleDataType
-
withDeviceComplianceScriptRuleDataType
public DeviceComplianceScriptRule withDeviceComplianceScriptRuleDataType(DeviceComplianceScriptRuleDataType deviceComplianceScriptRuleDataType)
Returns an immutable copy ofthiswith just thedeviceComplianceScriptRuleDataTypefield 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.“Data type specified in the rule.”
- Parameters:
deviceComplianceScriptRuleDataType- new value ofdeviceComplianceScriptRuleDataTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceComplianceScriptRuleDataTypefield changed
-
getDeviceComplianceScriptRulOperator
public Optional<DeviceComplianceScriptRulOperator> getDeviceComplianceScriptRulOperator()
“Operator specified in the rule.”- Returns:
- property deviceComplianceScriptRulOperator
-
withDeviceComplianceScriptRulOperator
public DeviceComplianceScriptRule withDeviceComplianceScriptRulOperator(DeviceComplianceScriptRulOperator deviceComplianceScriptRulOperator)
Returns an immutable copy ofthiswith just thedeviceComplianceScriptRulOperatorfield 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.“Operator specified in the rule.”
- Parameters:
deviceComplianceScriptRulOperator- new value ofdeviceComplianceScriptRulOperatorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceComplianceScriptRulOperatorfield changed
-
getOperand
public Optional<String> getOperand()
“Operand specified in the rule.”- Returns:
- property operand
-
withOperand
public DeviceComplianceScriptRule withOperand(String operand)
Returns an immutable copy ofthiswith just theoperandfield 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.“Operand specified in the rule.”
- Parameters:
operand- new value ofoperandfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theoperandfield changed
-
getOperator
public Optional<Operator> getOperator()
“Operator specified in the rule.”- Returns:
- property operator
-
withOperator
public DeviceComplianceScriptRule withOperator(Operator operator)
Returns an immutable copy ofthiswith just theoperatorfield 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.“Operator specified in the rule.”
- Parameters:
operator- new value ofoperatorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theoperatorfield changed
-
getSettingName
public Optional<String> getSettingName()
“Setting name specified in the rule.”- Returns:
- property settingName
-
withSettingName
public DeviceComplianceScriptRule withSettingName(String settingName)
Returns an immutable copy ofthiswith just thesettingNamefield 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.“Setting name specified in the rule.”
- Parameters:
settingName- new value ofsettingNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesettingNamefield changed
-
withUnmappedField
public DeviceComplianceScriptRule 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 DeviceComplianceScriptRule.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
-
-