Class MsixPackageProperties


  • public final class MsixPackageProperties
    extends Object
    Schema for MSIX Package properties.
    • Constructor Detail

      • MsixPackageProperties

        public MsixPackageProperties()
    • Method Detail

      • imagePath

        public String imagePath()
        Get the imagePath property: VHD/CIM image path on Network Share.
        Returns:
        the imagePath value.
      • withImagePath

        public MsixPackageProperties withImagePath​(String imagePath)
        Set the imagePath property: VHD/CIM image path on Network Share.
        Parameters:
        imagePath - the imagePath value to set.
        Returns:
        the MsixPackageProperties object itself.
      • packageName

        public String packageName()
        Get the packageName property: Package Name from appxmanifest.xml.
        Returns:
        the packageName value.
      • withPackageName

        public MsixPackageProperties withPackageName​(String packageName)
        Set the packageName property: Package Name from appxmanifest.xml.
        Parameters:
        packageName - the packageName value to set.
        Returns:
        the MsixPackageProperties object itself.
      • packageFamilyName

        public String packageFamilyName()
        Get the packageFamilyName property: Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.
        Returns:
        the packageFamilyName value.
      • withPackageFamilyName

        public MsixPackageProperties withPackageFamilyName​(String packageFamilyName)
        Set the packageFamilyName property: Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.
        Parameters:
        packageFamilyName - the packageFamilyName value to set.
        Returns:
        the MsixPackageProperties object itself.
      • displayName

        public String displayName()
        Get the displayName property: User friendly Name to be displayed in the portal.
        Returns:
        the displayName value.
      • withDisplayName

        public MsixPackageProperties withDisplayName​(String displayName)
        Set the displayName property: User friendly Name to be displayed in the portal.
        Parameters:
        displayName - the displayName value to set.
        Returns:
        the MsixPackageProperties object itself.
      • packageRelativePath

        public String packageRelativePath()
        Get the packageRelativePath property: Relative Path to the package inside the image.
        Returns:
        the packageRelativePath value.
      • withPackageRelativePath

        public MsixPackageProperties withPackageRelativePath​(String packageRelativePath)
        Set the packageRelativePath property: Relative Path to the package inside the image.
        Parameters:
        packageRelativePath - the packageRelativePath value to set.
        Returns:
        the MsixPackageProperties object itself.
      • isRegularRegistration

        public Boolean isRegularRegistration()
        Get the isRegularRegistration property: Specifies how to register Package in feed.
        Returns:
        the isRegularRegistration value.
      • withIsRegularRegistration

        public MsixPackageProperties withIsRegularRegistration​(Boolean isRegularRegistration)
        Set the isRegularRegistration property: Specifies how to register Package in feed.
        Parameters:
        isRegularRegistration - the isRegularRegistration value to set.
        Returns:
        the MsixPackageProperties object itself.
      • isActive

        public Boolean isActive()
        Get the isActive property: Make this version of the package the active one across the hostpool.
        Returns:
        the isActive value.
      • withIsActive

        public MsixPackageProperties withIsActive​(Boolean isActive)
        Set the isActive property: Make this version of the package the active one across the hostpool.
        Parameters:
        isActive - the isActive value to set.
        Returns:
        the MsixPackageProperties object itself.
      • packageDependencies

        public List<MsixPackageDependencies> packageDependencies()
        Get the packageDependencies property: List of package dependencies.
        Returns:
        the packageDependencies value.
      • withPackageDependencies

        public MsixPackageProperties withPackageDependencies​(List<MsixPackageDependencies> packageDependencies)
        Set the packageDependencies property: List of package dependencies.
        Parameters:
        packageDependencies - the packageDependencies value to set.
        Returns:
        the MsixPackageProperties object itself.
      • version

        public String version()
        Get the version property: Package Version found in the appxmanifest.xml.
        Returns:
        the version value.
      • withVersion

        public MsixPackageProperties withVersion​(String version)
        Set the version property: Package Version found in the appxmanifest.xml.
        Parameters:
        version - the version value to set.
        Returns:
        the MsixPackageProperties object itself.
      • lastUpdated

        public OffsetDateTime lastUpdated()
        Get the lastUpdated property: Date Package was last updated, found in the appxmanifest.xml.
        Returns:
        the lastUpdated value.
      • withLastUpdated

        public MsixPackageProperties withLastUpdated​(OffsetDateTime lastUpdated)
        Set the lastUpdated property: Date Package was last updated, found in the appxmanifest.xml.
        Parameters:
        lastUpdated - the lastUpdated value to set.
        Returns:
        the MsixPackageProperties object itself.
      • packageApplications

        public List<MsixPackageApplications> packageApplications()
        Get the packageApplications property: List of package applications.
        Returns:
        the packageApplications value.
      • withPackageApplications

        public MsixPackageProperties withPackageApplications​(List<MsixPackageApplications> packageApplications)
        Set the packageApplications property: List of package applications.
        Parameters:
        packageApplications - the packageApplications value to set.
        Returns:
        the MsixPackageProperties object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.