Class MacOSScepCertificateProfile

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

    public class MacOSScepCertificateProfile
    extends MacOSCertificateProfileBase
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Mac OS SCEP certificate profile.”
    • Field Detail

      • allowAllAppsAccess

        protected Boolean allowAllAppsAccess
      • customSubjectAlternativeNamesNextLink

        protected String customSubjectAlternativeNamesNextLink
      • extendedKeyUsagesNextLink

        protected String extendedKeyUsagesNextLink
      • keySize

        protected KeySize keySize
      • scepServerUrls

        protected List<String> scepServerUrls
      • scepServerUrlsNextLink

        protected String scepServerUrlsNextLink
      • subjectAlternativeNameFormatString

        protected String subjectAlternativeNameFormatString
      • subjectNameFormatString

        protected String subjectNameFormatString
    • Constructor Detail

      • MacOSScepCertificateProfile

        protected MacOSScepCertificateProfile()
    • Method Detail

      • builderMacOSScepCertificateProfile

        public static MacOSScepCertificateProfile.Builder builderMacOSScepCertificateProfile()
        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 MacOSCertificateProfileBase
      • postInject

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

        public Optional<Boolean> getAllowAllAppsAccess()
        “AllowAllAppsAccess setting”
        Returns:
        property allowAllAppsAccess
      • withAllowAllAppsAccess

        public MacOSScepCertificateProfile withAllowAllAppsAccess​(Boolean allowAllAppsAccess)
        Returns an immutable copy of this with just the allowAllAppsAccess 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.

        “AllowAllAppsAccess setting”

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

        public Optional<CertificateStore> getCertificateStore()
        “Target store certificate”
        Returns:
        property certificateStore
      • withCertificateStore

        public MacOSScepCertificateProfile withCertificateStore​(CertificateStore certificateStore)
        Returns an immutable copy of this with just the certificateStore 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.

        “Target store certificate”

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

        public com.github.davidmoten.odata.client.CollectionPage<CustomSubjectAlternativeName> getCustomSubjectAlternativeNames()
        “Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.”
        Returns:
        property customSubjectAlternativeNames
      • withCustomSubjectAlternativeNames

        public MacOSScepCertificateProfile withCustomSubjectAlternativeNames​(List<CustomSubjectAlternativeName> customSubjectAlternativeNames)
        Returns an immutable copy of this with just the customSubjectAlternativeNames 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.

        “Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.”

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

        public com.github.davidmoten.odata.client.CollectionPage<CustomSubjectAlternativeName> getCustomSubjectAlternativeNames​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property customSubjectAlternativeNames
      • getExtendedKeyUsages

        public com.github.davidmoten.odata.client.CollectionPage<ExtendedKeyUsage> getExtendedKeyUsages()
        “Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.”
        Returns:
        property extendedKeyUsages
      • withExtendedKeyUsages

        public MacOSScepCertificateProfile withExtendedKeyUsages​(List<ExtendedKeyUsage> extendedKeyUsages)
        Returns an immutable copy of this with just the extendedKeyUsages 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.

        “Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.”

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

        public com.github.davidmoten.odata.client.CollectionPage<ExtendedKeyUsage> getExtendedKeyUsages​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property extendedKeyUsages
      • getHashAlgorithm

        public Optional<HashAlgorithms> getHashAlgorithm()
        “SCEP Hash Algorithm.”
        Returns:
        property hashAlgorithm
      • withHashAlgorithm

        public MacOSScepCertificateProfile withHashAlgorithm​(HashAlgorithms hashAlgorithm)
        Returns an immutable copy of this with just the hashAlgorithm 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.

        “SCEP Hash Algorithm.”

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

        public Optional<KeySize> getKeySize()
        “SCEP Key Size.”
        Returns:
        property keySize
      • withKeySize

        public MacOSScepCertificateProfile withKeySize​(KeySize keySize)
        Returns an immutable copy of this with just the keySize 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.

        “SCEP Key Size.”

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

        public Optional<KeyUsages> getKeyUsage()
        “SCEP Key Usage.”
        Returns:
        property keyUsage
      • withKeyUsage

        public MacOSScepCertificateProfile withKeyUsage​(KeyUsages keyUsage)
        Returns an immutable copy of this with just the keyUsage 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.

        “SCEP Key Usage.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getScepServerUrls()
        “SCEP Server Url(s).”
        Returns:
        property scepServerUrls
      • withScepServerUrls

        public MacOSScepCertificateProfile withScepServerUrls​(List<String> scepServerUrls)
        Returns an immutable copy of this with just the scepServerUrls 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.

        “SCEP Server Url(s).”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getScepServerUrls​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “SCEP Server Url(s).”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property scepServerUrls
      • getSubjectAlternativeNameFormatString

        public Optional<String> getSubjectAlternativeNameFormatString()
        “Custom String that defines the AAD Attribute.”
        Returns:
        property subjectAlternativeNameFormatString
      • withSubjectAlternativeNameFormatString

        public MacOSScepCertificateProfile withSubjectAlternativeNameFormatString​(String subjectAlternativeNameFormatString)
        Returns an immutable copy of this with just the subjectAlternativeNameFormatString 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.

        “Custom String that defines the AAD Attribute.”

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

        public Optional<String> getSubjectNameFormatString()
        “Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress }},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA, C=US”
        Returns:
        property subjectNameFormatString
      • withSubjectNameFormatString

        public MacOSScepCertificateProfile withSubjectNameFormatString​(String subjectNameFormatString)
        Returns an immutable copy of this with just the subjectNameFormatString 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.

        “Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress }},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA, C=US”

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

        public ManagedDeviceCertificateStateCollectionRequest getManagedDeviceCertificateStates()
        “Certificate state for devices. This collection can contain a maximum of 2147483647 elements.”
        Returns:
        navigational property managedDeviceCertificateStates
      • getUnmappedFields

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

        public MacOSScepCertificateProfile patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class MacOSCertificateProfileBase
        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 MacOSScepCertificateProfile 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 MacOSCertificateProfileBase
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected