Class EditionUpgradeConfiguration

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class EditionUpgradeConfiguration
    extends DeviceConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Windows 10 Edition Upgrade configuration.”
    • Constructor Detail

      • EditionUpgradeConfiguration

        protected EditionUpgradeConfiguration()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class DeviceConfiguration
      • builderEditionUpgradeConfiguration

        public static EditionUpgradeConfiguration.Builder builderEditionUpgradeConfiguration()
        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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class DeviceConfiguration
      • postInject

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

        public Optional<String> getLicense()
        “Edition Upgrade License File Content.”
        Returns:
        property license
      • withLicense

        public EditionUpgradeConfiguration withLicense​(String license)
        Returns an immutable copy of this with just the license 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.

        “Edition Upgrade License File Content.”

        Parameters:
        license - new value of license field (as defined in service metadata)
        Returns:
        immutable copy of this with just the license field changed
      • withLicenseType

        public EditionUpgradeConfiguration withLicenseType​(EditionUpgradeLicenseType licenseType)
        Returns an immutable copy of this with just the licenseType 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.

        “Edition Upgrade License Type.”

        Parameters:
        licenseType - new value of licenseType field (as defined in service metadata)
        Returns:
        immutable copy of this with just the licenseType field changed
      • getProductKey

        public Optional<String> getProductKey()
        “Edition Upgrade Product Key.”
        Returns:
        property productKey
      • withProductKey

        public EditionUpgradeConfiguration withProductKey​(String productKey)
        Returns an immutable copy of this with just the productKey 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.

        “Edition Upgrade Product Key.”

        Parameters:
        productKey - new value of productKey field (as defined in service metadata)
        Returns:
        immutable copy of this with just the productKey field changed
      • getTargetEdition

        public Optional<Windows10EditionType> getTargetEdition()
        “Edition Upgrade Target Edition.”
        Returns:
        property targetEdition
      • withTargetEdition

        public EditionUpgradeConfiguration withTargetEdition​(Windows10EditionType targetEdition)
        Returns an immutable copy of this with just the targetEdition 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.

        “Edition Upgrade Target Edition.”

        Parameters:
        targetEdition - new value of targetEdition field (as defined in service metadata)
        Returns:
        immutable copy of this with just the targetEdition field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class DeviceConfiguration
      • patch

        public EditionUpgradeConfiguration patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class DeviceConfiguration
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public EditionUpgradeConfiguration put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class DeviceConfiguration
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected