Package odata.msgraph.client.beta.entity
Class GroupPolicyPresentationComboBox
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.GroupPolicyPresentation
-
- odata.msgraph.client.beta.entity.GroupPolicyPresentationComboBox
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class GroupPolicyPresentationComboBox extends GroupPolicyPresentation implements com.github.davidmoten.odata.client.ODataEntityType
“Represents an ADMX comboBox element and an ADMX text element.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupPolicyPresentationComboBox.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdefaultValueprotected LongmaxLengthprotected Booleanrequiredprotected List<String>suggestionsprotected StringsuggestionsNextLink-
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 protectedGroupPolicyPresentationComboBox()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupPolicyPresentationComboBox.BuilderbuilderGroupPolicyPresentationComboBox()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<String>getDefaultValue()“Localized default string displayed in the combo box.Optional<Long>getMaxLength()“An unsigned integer that specifies the maximum number of text characters for the parameter.Optional<Boolean>getRequired()“Specifies whether a value must be specified for the parameter.com.github.davidmoten.odata.client.CollectionPage<String>getSuggestions()“Localized strings listed in the drop-down list of the combo box.com.github.davidmoten.odata.client.CollectionPage<String>getSuggestions(com.github.davidmoten.odata.client.HttpRequestOptions options)“Localized strings listed in the drop-down list of the combo box.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()GroupPolicyPresentationComboBoxpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)GroupPolicyPresentationComboBoxput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()GroupPolicyPresentationComboBoxwithDefaultValue(String defaultValue)Returns an immutable copy ofthiswith just thedefaultValuefield changed.GroupPolicyPresentationComboBoxwithMaxLength(Long maxLength)Returns an immutable copy ofthiswith just themaxLengthfield changed.GroupPolicyPresentationComboBoxwithRequired(Boolean required)Returns an immutable copy ofthiswith just therequiredfield changed.GroupPolicyPresentationComboBoxwithSuggestions(List<String> suggestions)Returns an immutable copy ofthiswith just thesuggestionsfield changed.GroupPolicyPresentationComboBoxwithUnmappedField(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
-
builderGroupPolicyPresentationComboBox
public static GroupPolicyPresentationComboBox.Builder builderGroupPolicyPresentationComboBox()
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<String> getDefaultValue()
“Localized default string displayed in the combo box. The default value is empty.”- Returns:
- property defaultValue
-
withDefaultValue
public GroupPolicyPresentationComboBox withDefaultValue(String 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.“Localized default string displayed in the combo box. The default value is empty.”
- Parameters:
defaultValue- new value ofdefaultValuefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedefaultValuefield changed
-
getMaxLength
public Optional<Long> getMaxLength()
“An unsigned integer that specifies the maximum number of text characters for the parameter. The default value is 1023.”- Returns:
- property maxLength
-
withMaxLength
public GroupPolicyPresentationComboBox 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 for the parameter. The default value is 1023.”
- Parameters:
maxLength- new value ofmaxLengthfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaxLengthfield changed
-
getRequired
public Optional<Boolean> getRequired()
“Specifies whether a value must be specified for the parameter. The default value is false.”- Returns:
- property required
-
withRequired
public GroupPolicyPresentationComboBox 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.“Specifies whether a value must be specified for the parameter. The default value is false.”
- Parameters:
required- new value ofrequiredfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therequiredfield changed
-
getSuggestions
public com.github.davidmoten.odata.client.CollectionPage<String> getSuggestions()
“Localized strings listed in the drop-down list of the combo box. The default value is empty.”- Returns:
- property suggestions
-
withSuggestions
public GroupPolicyPresentationComboBox withSuggestions(List<String> suggestions)
Returns an immutable copy ofthiswith just thesuggestionsfield 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.“Localized strings listed in the drop-down list of the combo box. The default value is empty.”
- Parameters:
suggestions- new value ofsuggestionsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesuggestionsfield changed
-
getSuggestions
public com.github.davidmoten.odata.client.CollectionPage<String> getSuggestions(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Localized strings listed in the drop-down list of the combo box. The default value is empty.”- Parameters:
options- specify connect and read timeouts- Returns:
- property suggestions
-
withUnmappedField
public GroupPolicyPresentationComboBox 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 GroupPolicyPresentationComboBox 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 GroupPolicyPresentationComboBox 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
-
-