Class DeviceHealthScriptParameter
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceHealthScriptParameter
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
DeviceHealthScriptBooleanParameter,DeviceHealthScriptIntegerParameter,DeviceHealthScriptStringParameter
public class DeviceHealthScriptParameter extends Object implements com.github.davidmoten.odata.client.ODataType
“Base properties of the script parameter.”
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanapplyDefaultValueWhenNotAssignedprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected Stringdescriptionprotected BooleanisRequiredprotected Stringnameprotected StringodataTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceHealthScriptParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Boolean>getApplyDefaultValueWhenNotAssigned()“Whether Apply DefaultValue When Not Assigned”Optional<String>getDescription()“The description of the param”Optional<Boolean>getIsRequired()“Whether the param is required”Optional<String>getName()“The name of the param”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceHealthScriptParameterwithApplyDefaultValueWhenNotAssigned(Boolean applyDefaultValueWhenNotAssigned)Returns an immutable copy ofthiswith just theapplyDefaultValueWhenNotAssignedfield changed.DeviceHealthScriptParameterwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceHealthScriptParameterwithIsRequired(Boolean isRequired)Returns an immutable copy ofthiswith just theisRequiredfield changed.DeviceHealthScriptParameterwithName(String name)Returns an immutable copy ofthiswith just thenamefield changed.DeviceHealthScriptParameterwithUnmappedField(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
-
applyDefaultValueWhenNotAssigned
protected Boolean applyDefaultValueWhenNotAssigned
-
description
protected String description
-
isRequired
protected Boolean isRequired
-
name
protected String name
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getApplyDefaultValueWhenNotAssigned
public Optional<Boolean> getApplyDefaultValueWhenNotAssigned()
“Whether Apply DefaultValue When Not Assigned”- Returns:
- property applyDefaultValueWhenNotAssigned
-
withApplyDefaultValueWhenNotAssigned
public DeviceHealthScriptParameter withApplyDefaultValueWhenNotAssigned(Boolean applyDefaultValueWhenNotAssigned)
Returns an immutable copy ofthiswith just theapplyDefaultValueWhenNotAssignedfield 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.“Whether Apply DefaultValue When Not Assigned”
- Parameters:
applyDefaultValueWhenNotAssigned- new value ofapplyDefaultValueWhenNotAssignedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theapplyDefaultValueWhenNotAssignedfield changed
-
getDescription
public Optional<String> getDescription()
“The description of the param”- Returns:
- property description
-
withDescription
public DeviceHealthScriptParameter 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.“The description of the param”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getIsRequired
public Optional<Boolean> getIsRequired()
“Whether the param is required”- Returns:
- property isRequired
-
withIsRequired
public DeviceHealthScriptParameter withIsRequired(Boolean isRequired)
Returns an immutable copy ofthiswith just theisRequiredfield 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.“Whether the param is required”
- Parameters:
isRequired- new value ofisRequiredfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisRequiredfield changed
-
withName
public DeviceHealthScriptParameter withName(String name)
Returns an immutable copy ofthiswith just thenamefield 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.“The name of the param”
- Parameters:
name- new value ofnamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenamefield changed
-
withUnmappedField
public DeviceHealthScriptParameter 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
-
-