Class AndroidForWorkAppConfigurationSchemaItem
- java.lang.Object
-
- odata.msgraph.client.beta.complex.AndroidForWorkAppConfigurationSchemaItem
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class AndroidForWorkAppConfigurationSchemaItem extends Object implements com.github.davidmoten.odata.client.ODataType
“Single configuration item inside an Android for Work application's custom configuration schema.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidForWorkAppConfigurationSchemaItem.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected AndroidForWorkAppConfigurationSchemaItemDataTypedataTypeprotected BooleandefaultBoolValueprotected IntegerdefaultIntValueprotected List<String>defaultStringArrayValueprotected StringdefaultStringArrayValueNextLinkprotected StringdefaultStringValueprotected Stringdescriptionprotected StringdisplayNameprotected StringodataTypeprotected StringschemaItemKeyprotected List<KeyValuePair>selectionsprotected StringselectionsNextLinkprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedAndroidForWorkAppConfigurationSchemaItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidForWorkAppConfigurationSchemaItem.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<AndroidForWorkAppConfigurationSchemaItemDataType>getDataType()“The type of value this item describes”Optional<Boolean>getDefaultBoolValue()“Default value for boolean type items, if specified by the app developer”Optional<Integer>getDefaultIntValue()“Default value for integer type items, if specified by the app developer”com.github.davidmoten.odata.client.CollectionPage<String>getDefaultStringArrayValue()“Default value for string array type items, if specified by the app developer”com.github.davidmoten.odata.client.CollectionPage<String>getDefaultStringArrayValue(com.github.davidmoten.odata.client.HttpRequestOptions options)“Default value for string array type items, if specified by the app developer”Optional<String>getDefaultStringValue()“Default value for string type items, if specified by the app developer”Optional<String>getDescription()“Description of what the item controls within the application”Optional<String>getDisplayName()“Human readable name”Optional<String>getSchemaItemKey()“Unique key the application uses to identify the item”com.github.davidmoten.odata.client.CollectionPage<KeyValuePair>getSelections()“List of human readable name/value pairs for the valid values that can be set for this item (Choice and Multiselect items only)”com.github.davidmoten.odata.client.CollectionPage<KeyValuePair>getSelections(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of human readable name/value pairs for the valid values that can be set for this item (Choice and Multiselect items only)”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()AndroidForWorkAppConfigurationSchemaItemwithDataType(AndroidForWorkAppConfigurationSchemaItemDataType dataType)Returns an immutable copy ofthiswith just thedataTypefield changed.AndroidForWorkAppConfigurationSchemaItemwithDefaultBoolValue(Boolean defaultBoolValue)Returns an immutable copy ofthiswith just thedefaultBoolValuefield changed.AndroidForWorkAppConfigurationSchemaItemwithDefaultIntValue(Integer defaultIntValue)Returns an immutable copy ofthiswith just thedefaultIntValuefield changed.AndroidForWorkAppConfigurationSchemaItemwithDefaultStringValue(String defaultStringValue)Returns an immutable copy ofthiswith just thedefaultStringValuefield changed.AndroidForWorkAppConfigurationSchemaItemwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.AndroidForWorkAppConfigurationSchemaItemwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.AndroidForWorkAppConfigurationSchemaItemwithSchemaItemKey(String schemaItemKey)Returns an immutable copy ofthiswith just theschemaItemKeyfield changed.AndroidForWorkAppConfigurationSchemaItemwithUnmappedField(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 AndroidForWorkAppConfigurationSchemaItemDataType dataType
-
defaultBoolValue
protected Boolean defaultBoolValue
-
defaultIntValue
protected Integer defaultIntValue
-
defaultStringArrayValueNextLink
protected String defaultStringArrayValueNextLink
-
defaultStringValue
protected String defaultStringValue
-
description
protected String description
-
displayName
protected String displayName
-
schemaItemKey
protected String schemaItemKey
-
selections
protected List<KeyValuePair> selections
-
selectionsNextLink
protected String selectionsNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getDataType
public Optional<AndroidForWorkAppConfigurationSchemaItemDataType> getDataType()
“The type of value this item describes”- Returns:
- property dataType
-
withDataType
public AndroidForWorkAppConfigurationSchemaItem withDataType(AndroidForWorkAppConfigurationSchemaItemDataType 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.“The type of value this item describes”
- Parameters:
dataType- new value ofdataTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedataTypefield changed
-
getDefaultBoolValue
public Optional<Boolean> getDefaultBoolValue()
“Default value for boolean type items, if specified by the app developer”- Returns:
- property defaultBoolValue
-
withDefaultBoolValue
public AndroidForWorkAppConfigurationSchemaItem withDefaultBoolValue(Boolean defaultBoolValue)
Returns an immutable copy ofthiswith just thedefaultBoolValuefield 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.“Default value for boolean type items, if specified by the app developer”
- Parameters:
defaultBoolValue- new value ofdefaultBoolValuefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedefaultBoolValuefield changed
-
getDefaultIntValue
public Optional<Integer> getDefaultIntValue()
“Default value for integer type items, if specified by the app developer”- Returns:
- property defaultIntValue
-
withDefaultIntValue
public AndroidForWorkAppConfigurationSchemaItem withDefaultIntValue(Integer defaultIntValue)
Returns an immutable copy ofthiswith just thedefaultIntValuefield 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.“Default value for integer type items, if specified by the app developer”
- Parameters:
defaultIntValue- new value ofdefaultIntValuefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedefaultIntValuefield changed
-
getDefaultStringArrayValue
public com.github.davidmoten.odata.client.CollectionPage<String> getDefaultStringArrayValue()
“Default value for string array type items, if specified by the app developer”- Returns:
- property defaultStringArrayValue
-
getDefaultStringArrayValue
public com.github.davidmoten.odata.client.CollectionPage<String> getDefaultStringArrayValue(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Default value for string array type items, if specified by the app developer”- Parameters:
options- specify connect and read timeouts- Returns:
- property defaultStringArrayValue
-
getDefaultStringValue
public Optional<String> getDefaultStringValue()
“Default value for string type items, if specified by the app developer”- Returns:
- property defaultStringValue
-
withDefaultStringValue
public AndroidForWorkAppConfigurationSchemaItem withDefaultStringValue(String defaultStringValue)
Returns an immutable copy ofthiswith just thedefaultStringValuefield 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.“Default value for string type items, if specified by the app developer”
- Parameters:
defaultStringValue- new value ofdefaultStringValuefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedefaultStringValuefield changed
-
getDescription
public Optional<String> getDescription()
“Description of what the item controls within the application”- Returns:
- property description
-
withDescription
public AndroidForWorkAppConfigurationSchemaItem 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.“Description of what the item controls within the application”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Human readable name”- Returns:
- property displayName
-
withDisplayName
public AndroidForWorkAppConfigurationSchemaItem withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield 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.“Human readable name”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getSchemaItemKey
public Optional<String> getSchemaItemKey()
“Unique key the application uses to identify the item”- Returns:
- property schemaItemKey
-
withSchemaItemKey
public AndroidForWorkAppConfigurationSchemaItem withSchemaItemKey(String schemaItemKey)
Returns an immutable copy ofthiswith just theschemaItemKeyfield 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.“Unique key the application uses to identify the item”
- Parameters:
schemaItemKey- new value ofschemaItemKeyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theschemaItemKeyfield changed
-
getSelections
public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getSelections()
“List of human readable name/value pairs for the valid values that can be set for this item (Choice and Multiselect items only)”- Returns:
- property selections
-
getSelections
public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getSelections(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of human readable name/value pairs for the valid values that can be set for this item (Choice and Multiselect items only)”- Parameters:
options- specify connect and read timeouts- Returns:
- property selections
-
withUnmappedField
public AndroidForWorkAppConfigurationSchemaItem 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 AndroidForWorkAppConfigurationSchemaItem.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
-
-