Class 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.”
    • 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
      • defaultBoolValue

        protected Boolean defaultBoolValue
      • defaultIntValue

        protected Integer defaultIntValue
      • defaultStringArrayValue

        protected List<String> defaultStringArrayValue
      • defaultStringArrayValueNextLink

        protected String defaultStringArrayValueNextLink
      • defaultStringValue

        protected String defaultStringValue
      • description

        protected String description
      • displayName

        protected String displayName
      • schemaItemKey

        protected String schemaItemKey
      • selectionsNextLink

        protected String selectionsNextLink
    • Constructor Detail

      • AndroidForWorkAppConfigurationSchemaItem

        protected AndroidForWorkAppConfigurationSchemaItem()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • withDataType

        public AndroidForWorkAppConfigurationSchemaItem withDataType​(AndroidForWorkAppConfigurationSchemaItemDataType dataType)
        Returns an immutable copy of this with just the dataType field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of dataType field (as defined in service metadata)
        Returns:
        immutable copy of this with just the dataType field 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 of this with just the defaultBoolValue field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of defaultBoolValue field (as defined in service metadata)
        Returns:
        immutable copy of this with just the defaultBoolValue field 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 of this with just the defaultIntValue field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of defaultIntValue field (as defined in service metadata)
        Returns:
        immutable copy of this with just the defaultIntValue field 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 of this with just the defaultStringValue field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of defaultStringValue field (as defined in service metadata)
        Returns:
        immutable copy of this with just the defaultStringValue field 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 of this with just the description field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of description field (as defined in service metadata)
        Returns:
        immutable copy of this with just the description field changed
      • getDisplayName

        public Optional<String> getDisplayName()
        “Human readable name”
        Returns:
        property displayName
      • withDisplayName

        public AndroidForWorkAppConfigurationSchemaItem withDisplayName​(String displayName)
        Returns an immutable copy of this with just the displayName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Human readable name”

        Parameters:
        displayName - new value of displayName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the displayName field 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 of this with just the schemaItemKey field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of schemaItemKey field (as defined in service metadata)
        Returns:
        immutable copy of this with just the schemaItemKey field 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
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType