Package odata.msgraph.client.beta.entity
Class GroupPolicyPresentationDecimalTextBox
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.GroupPolicyPresentation
-
- odata.msgraph.client.beta.entity.GroupPolicyPresentationDecimalTextBox
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class GroupPolicyPresentationDecimalTextBox extends GroupPolicyPresentation implements com.github.davidmoten.odata.client.ODataEntityType
“Represents an ADMX decimalTextBox element and an ADMX decimal element.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupPolicyPresentationDecimalTextBox.Builder
-
Field Summary
Fields Modifier and Type Field Description protected LongdefaultValueprotected LongmaxValueprotected LongminValueprotected Booleanrequiredprotected Booleanspinprotected LongspinStep-
Fields inherited from class odata.msgraph.client.beta.entity.GroupPolicyPresentation
label, lastModifiedDateTime
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGroupPolicyPresentationDecimalTextBox()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupPolicyPresentationDecimalTextBox.BuilderbuilderGroupPolicyPresentationDecimalTextBox()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Long>getDefaultValue()“An unsigned integer that specifies the initial value for the decimal text box.Optional<Long>getMaxValue()“An unsigned integer that specifies the maximum allowed value.Optional<Long>getMinValue()“An unsigned integer that specifies the minimum allowed value.Optional<Boolean>getRequired()“Requirement to enter a value in the parameter box.Optional<Boolean>getSpin()“If true, create a spin control; otherwise, create a text box for numeric entry.Optional<Long>getSpinStep()“An unsigned integer that specifies the increment of change for the spin control.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()GroupPolicyPresentationDecimalTextBoxpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)GroupPolicyPresentationDecimalTextBoxput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()GroupPolicyPresentationDecimalTextBoxwithDefaultValue(Long defaultValue)Returns an immutable copy ofthiswith just thedefaultValuefield changed.GroupPolicyPresentationDecimalTextBoxwithMaxValue(Long maxValue)Returns an immutable copy ofthiswith just themaxValuefield changed.GroupPolicyPresentationDecimalTextBoxwithMinValue(Long minValue)Returns an immutable copy ofthiswith just theminValuefield changed.GroupPolicyPresentationDecimalTextBoxwithRequired(Boolean required)Returns an immutable copy ofthiswith just therequiredfield changed.GroupPolicyPresentationDecimalTextBoxwithSpin(Boolean spin)Returns an immutable copy ofthiswith just thespinfield changed.GroupPolicyPresentationDecimalTextBoxwithSpinStep(Long spinStep)Returns an immutable copy ofthiswith just thespinStepfield changed.GroupPolicyPresentationDecimalTextBoxwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.GroupPolicyPresentation
builderGroupPolicyPresentation, getDefinition, getLabel, getLastModifiedDateTime, withLabel, withLastModifiedDateTime
-
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classGroupPolicyPresentation
-
builderGroupPolicyPresentationDecimalTextBox
public static GroupPolicyPresentationDecimalTextBox.Builder builderGroupPolicyPresentationDecimalTextBox()
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 classGroupPolicyPresentation
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classGroupPolicyPresentation
-
getDefaultValue
public Optional<Long> getDefaultValue()
“An unsigned integer that specifies the initial value for the decimal text box. The default value is 1.”- Returns:
- property defaultValue
-
withDefaultValue
public GroupPolicyPresentationDecimalTextBox withDefaultValue(Long defaultValue)
Returns an immutable copy ofthiswith just thedefaultValuefield 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.“An unsigned integer that specifies the initial value for the decimal text box. The default value is 1.”
- Parameters:
defaultValue- new value ofdefaultValuefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedefaultValuefield changed
-
getMaxValue
public Optional<Long> getMaxValue()
“An unsigned integer that specifies the maximum allowed value. The default value is 9999.”- Returns:
- property maxValue
-
withMaxValue
public GroupPolicyPresentationDecimalTextBox withMaxValue(Long maxValue)
Returns an immutable copy ofthiswith just themaxValuefield 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.“An unsigned integer that specifies the maximum allowed value. The default value is 9999.”
- Parameters:
maxValue- new value ofmaxValuefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaxValuefield changed
-
getMinValue
public Optional<Long> getMinValue()
“An unsigned integer that specifies the minimum allowed value. The default value is 0.”- Returns:
- property minValue
-
withMinValue
public GroupPolicyPresentationDecimalTextBox withMinValue(Long minValue)
Returns an immutable copy ofthiswith just theminValuefield 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.“An unsigned integer that specifies the minimum allowed value. The default value is 0.”
- Parameters:
minValue- new value ofminValuefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminValuefield changed
-
getRequired
public Optional<Boolean> getRequired()
“Requirement to enter a value in the parameter box. The default value is false.”- Returns:
- property required
-
withRequired
public GroupPolicyPresentationDecimalTextBox withRequired(Boolean required)
Returns an immutable copy ofthiswith just therequiredfield 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.“Requirement to enter a value in the parameter box. The default value is false.”
- Parameters:
required- new value ofrequiredfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therequiredfield changed
-
getSpin
public Optional<Boolean> getSpin()
“If true, create a spin control; otherwise, create a text box for numeric entry. The default value is true.”- Returns:
- property spin
-
withSpin
public GroupPolicyPresentationDecimalTextBox withSpin(Boolean spin)
Returns an immutable copy ofthiswith just thespinfield 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.“If true, create a spin control; otherwise, create a text box for numeric entry. The default value is true.”
- Parameters:
spin- new value ofspinfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thespinfield changed
-
getSpinStep
public Optional<Long> getSpinStep()
“An unsigned integer that specifies the increment of change for the spin control. The default value is 1.”- Returns:
- property spinStep
-
withSpinStep
public GroupPolicyPresentationDecimalTextBox withSpinStep(Long spinStep)
Returns an immutable copy ofthiswith just thespinStepfield 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.“An unsigned integer that specifies the increment of change for the spin control. The default value is 1.”
- Parameters:
spinStep- new value ofspinStepfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thespinStepfield changed
-
withUnmappedField
public GroupPolicyPresentationDecimalTextBox withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classGroupPolicyPresentation
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classGroupPolicyPresentation
-
patch
public GroupPolicyPresentationDecimalTextBox patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classGroupPolicyPresentation- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public GroupPolicyPresentationDecimalTextBox put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classGroupPolicyPresentation- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classGroupPolicyPresentation
-
-