Class ManagedAllDeviceCertificateState

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

    public class ManagedAllDeviceCertificateState
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    • Field Detail

      • certificateExpirationDateTime

        protected OffsetDateTime certificateExpirationDateTime
      • certificateExtendedKeyUsages

        protected String certificateExtendedKeyUsages
      • certificateIssuanceDateTime

        protected OffsetDateTime certificateIssuanceDateTime
      • certificateIssuerName

        protected String certificateIssuerName
      • certificateKeyUsages

        protected Integer certificateKeyUsages
      • certificateRevokeStatusLastChangeDateTime

        protected OffsetDateTime certificateRevokeStatusLastChangeDateTime
      • certificateSerialNumber

        protected String certificateSerialNumber
      • certificateSubjectName

        protected String certificateSubjectName
      • certificateThumbprint

        protected String certificateThumbprint
      • managedDeviceDisplayName

        protected String managedDeviceDisplayName
      • userPrincipalName

        protected String userPrincipalName
    • Constructor Detail

      • ManagedAllDeviceCertificateState

        protected ManagedAllDeviceCertificateState()
    • Method Detail

      • odataTypeName

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

        public static ManagedAllDeviceCertificateState.Builder builderManagedAllDeviceCertificateState()
        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 Entity
      • postInject

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

        public Optional<OffsetDateTime> getCertificateExpirationDateTime()
        “Certificate expiry date”
        Returns:
        property certificateExpirationDateTime
      • withCertificateExpirationDateTime

        public ManagedAllDeviceCertificateState withCertificateExpirationDateTime​(OffsetDateTime certificateExpirationDateTime)
        Returns an immutable copy of this with just the certificateExpirationDateTime 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.

        “Certificate expiry date”

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

        public Optional<String> getCertificateExtendedKeyUsages()
        “Enhanced Key Usage”
        Returns:
        property certificateExtendedKeyUsages
      • withCertificateExtendedKeyUsages

        public ManagedAllDeviceCertificateState withCertificateExtendedKeyUsages​(String certificateExtendedKeyUsages)
        Returns an immutable copy of this with just the certificateExtendedKeyUsages 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.

        “Enhanced Key Usage”

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

        public Optional<OffsetDateTime> getCertificateIssuanceDateTime()
        “Issuance date”
        Returns:
        property certificateIssuanceDateTime
      • withCertificateIssuanceDateTime

        public ManagedAllDeviceCertificateState withCertificateIssuanceDateTime​(OffsetDateTime certificateIssuanceDateTime)
        Returns an immutable copy of this with just the certificateIssuanceDateTime 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.

        “Issuance date”

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

        public Optional<String> getCertificateIssuerName()
        “Issuer”
        Returns:
        property certificateIssuerName
      • withCertificateIssuerName

        public ManagedAllDeviceCertificateState withCertificateIssuerName​(String certificateIssuerName)
        Returns an immutable copy of this with just the certificateIssuerName 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.

        “Issuer”

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

        public Optional<Integer> getCertificateKeyUsages()
        “Key Usage”
        Returns:
        property certificateKeyUsages
      • withCertificateKeyUsages

        public ManagedAllDeviceCertificateState withCertificateKeyUsages​(Integer certificateKeyUsages)
        Returns an immutable copy of this with just the certificateKeyUsages 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.

        “Key Usage”

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

        public ManagedAllDeviceCertificateState withCertificateRevokeStatus​(CertificateRevocationStatus certificateRevokeStatus)
        Returns an immutable copy of this with just the certificateRevokeStatus 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.

        “Revoke status”

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

        public Optional<OffsetDateTime> getCertificateRevokeStatusLastChangeDateTime()
        “The time the revoke status was last changed”
        Returns:
        property certificateRevokeStatusLastChangeDateTime
      • withCertificateRevokeStatusLastChangeDateTime

        public ManagedAllDeviceCertificateState withCertificateRevokeStatusLastChangeDateTime​(OffsetDateTime certificateRevokeStatusLastChangeDateTime)
        Returns an immutable copy of this with just the certificateRevokeStatusLastChangeDateTime 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 time the revoke status was last changed”

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

        public Optional<String> getCertificateSerialNumber()
        “Serial number”
        Returns:
        property certificateSerialNumber
      • withCertificateSerialNumber

        public ManagedAllDeviceCertificateState withCertificateSerialNumber​(String certificateSerialNumber)
        Returns an immutable copy of this with just the certificateSerialNumber 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.

        “Serial number”

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

        public Optional<String> getCertificateSubjectName()
        “Certificate subject name”
        Returns:
        property certificateSubjectName
      • withCertificateSubjectName

        public ManagedAllDeviceCertificateState withCertificateSubjectName​(String certificateSubjectName)
        Returns an immutable copy of this with just the certificateSubjectName 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.

        “Certificate subject name”

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

        public Optional<String> getCertificateThumbprint()
        “Thumbprint”
        Returns:
        property certificateThumbprint
      • withCertificateThumbprint

        public ManagedAllDeviceCertificateState withCertificateThumbprint​(String certificateThumbprint)
        Returns an immutable copy of this with just the certificateThumbprint 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.

        “Thumbprint”

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

        public Optional<String> getManagedDeviceDisplayName()
        “Device display name”
        Returns:
        property managedDeviceDisplayName
      • withManagedDeviceDisplayName

        public ManagedAllDeviceCertificateState withManagedDeviceDisplayName​(String managedDeviceDisplayName)
        Returns an immutable copy of this with just the managedDeviceDisplayName 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.

        “Device display name”

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

        public Optional<String> getUserPrincipalName()
        “User principal name”
        Returns:
        property userPrincipalName
      • withUserPrincipalName

        public ManagedAllDeviceCertificateState withUserPrincipalName​(String userPrincipalName)
        Returns an immutable copy of this with just the userPrincipalName 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.

        “User principal name”

        Parameters:
        userPrincipalName - new value of userPrincipalName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the userPrincipalName 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 Entity
      • patch

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