Package odata.msgraph.client.beta.entity
Class GroupPolicyPresentationMultiTextBox
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.GroupPolicyPresentation
-
- odata.msgraph.client.beta.entity.GroupPolicyPresentationMultiTextBox
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class GroupPolicyPresentationMultiTextBox extends GroupPolicyPresentation implements com.github.davidmoten.odata.client.ODataEntityType
“Represents an ADMX multiTextBox element and an ADMX multiText element.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupPolicyPresentationMultiTextBox.Builder
-
Field Summary
Fields Modifier and Type Field Description protected LongmaxLengthprotected LongmaxStringsprotected Booleanrequired-
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 protectedGroupPolicyPresentationMultiTextBox()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupPolicyPresentationMultiTextBox.BuilderbuilderGroupPolicyPresentationMultiTextBox()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>getMaxLength()“An unsigned integer that specifies the maximum number of text characters.Optional<Long>getMaxStrings()“An unsigned integer that specifies the maximum number of strings.Optional<Boolean>getRequired()“Requirement to enter a value in the text box.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()GroupPolicyPresentationMultiTextBoxpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)GroupPolicyPresentationMultiTextBoxput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()GroupPolicyPresentationMultiTextBoxwithMaxLength(Long maxLength)Returns an immutable copy ofthiswith just themaxLengthfield changed.GroupPolicyPresentationMultiTextBoxwithMaxStrings(Long maxStrings)Returns an immutable copy ofthiswith just themaxStringsfield changed.GroupPolicyPresentationMultiTextBoxwithRequired(Boolean required)Returns an immutable copy ofthiswith just therequiredfield changed.GroupPolicyPresentationMultiTextBoxwithUnmappedField(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
-
builderGroupPolicyPresentationMultiTextBox
public static GroupPolicyPresentationMultiTextBox.Builder builderGroupPolicyPresentationMultiTextBox()
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
-
getMaxLength
public Optional<Long> getMaxLength()
“An unsigned integer that specifies the maximum number of text characters. Default value is 1023.”- Returns:
- property maxLength
-
withMaxLength
public GroupPolicyPresentationMultiTextBox withMaxLength(Long maxLength)
Returns an immutable copy ofthiswith just themaxLengthfield 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 number of text characters. Default value is 1023.”
- Parameters:
maxLength- new value ofmaxLengthfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaxLengthfield changed
-
getMaxStrings
public Optional<Long> getMaxStrings()
“An unsigned integer that specifies the maximum number of strings. Default value is 0.”- Returns:
- property maxStrings
-
withMaxStrings
public GroupPolicyPresentationMultiTextBox withMaxStrings(Long maxStrings)
Returns an immutable copy ofthiswith just themaxStringsfield 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 number of strings. Default value is 0.”
- Parameters:
maxStrings- new value ofmaxStringsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaxStringsfield changed
-
getRequired
public Optional<Boolean> getRequired()
“Requirement to enter a value in the text box. Default value is false.”- Returns:
- property required
-
withRequired
public GroupPolicyPresentationMultiTextBox 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 text box. Default value is false.”
- Parameters:
required- new value ofrequiredfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therequiredfield changed
-
withUnmappedField
public GroupPolicyPresentationMultiTextBox 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 GroupPolicyPresentationMultiTextBox 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 GroupPolicyPresentationMultiTextBox 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
-
-