Class ManagedDeviceCertificateState

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

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

      • certificateEnhancedKeyUsage

        protected String certificateEnhancedKeyUsage
      • certificateErrorCode

        protected Integer certificateErrorCode
      • certificateExpirationDateTime

        protected OffsetDateTime certificateExpirationDateTime
      • certificateIssuanceDateTime

        protected OffsetDateTime certificateIssuanceDateTime
      • certificateIssuer

        protected String certificateIssuer
      • certificateKeyLength

        protected Integer certificateKeyLength
      • certificateKeyUsage

        protected KeyUsages certificateKeyUsage
      • certificateLastIssuanceStateChangedDateTime

        protected OffsetDateTime certificateLastIssuanceStateChangedDateTime
      • certificateProfileDisplayName

        protected String certificateProfileDisplayName
      • certificateSerialNumber

        protected String certificateSerialNumber
      • certificateSubjectAlternativeNameFormatString

        protected String certificateSubjectAlternativeNameFormatString
      • certificateSubjectNameFormat

        protected SubjectNameFormat certificateSubjectNameFormat
      • certificateSubjectNameFormatString

        protected String certificateSubjectNameFormatString
      • certificateThumbprint

        protected String certificateThumbprint
      • certificateValidityPeriod

        protected Integer certificateValidityPeriod
      • deviceDisplayName

        protected String deviceDisplayName
      • lastCertificateStateChangeDateTime

        protected OffsetDateTime lastCertificateStateChangeDateTime
      • userDisplayName

        protected String userDisplayName
    • Constructor Detail

      • ManagedDeviceCertificateState

        protected ManagedDeviceCertificateState()
    • Method Detail

      • odataTypeName

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

        public static ManagedDeviceCertificateState.Builder builderManagedDeviceCertificateState()
        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
      • getCertificateEnhancedKeyUsage

        public Optional<String> getCertificateEnhancedKeyUsage()
        “Extended key usage”
        Returns:
        property certificateEnhancedKeyUsage
      • withCertificateEnhancedKeyUsage

        public ManagedDeviceCertificateState withCertificateEnhancedKeyUsage​(String certificateEnhancedKeyUsage)
        Returns an immutable copy of this with just the certificateEnhancedKeyUsage 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”

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

        public Optional<Integer> getCertificateErrorCode()
        “Error code”
        Returns:
        property certificateErrorCode
      • withCertificateErrorCode

        public ManagedDeviceCertificateState withCertificateErrorCode​(Integer certificateErrorCode)
        Returns an immutable copy of this with just the certificateErrorCode 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.

        “Error code”

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

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

        public ManagedDeviceCertificateState 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
      • getCertificateIssuanceDateTime

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

        public ManagedDeviceCertificateState 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
      • getCertificateIssuanceState

        public Optional<CertificateIssuanceStates> getCertificateIssuanceState()
        “Issuance State”
        Returns:
        property certificateIssuanceState
      • withCertificateIssuanceState

        public ManagedDeviceCertificateState withCertificateIssuanceState​(CertificateIssuanceStates certificateIssuanceState)
        Returns an immutable copy of this with just the certificateIssuanceState 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 State”

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

        public Optional<String> getCertificateIssuer()
        “Issuer”
        Returns:
        property certificateIssuer
      • withCertificateIssuer

        public ManagedDeviceCertificateState withCertificateIssuer​(String certificateIssuer)
        Returns an immutable copy of this with just the certificateIssuer 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:
        certificateIssuer - new value of certificateIssuer field (as defined in service metadata)
        Returns:
        immutable copy of this with just the certificateIssuer field changed
      • getCertificateKeyLength

        public Optional<Integer> getCertificateKeyLength()
        “Key length”
        Returns:
        property certificateKeyLength
      • withCertificateKeyLength

        public ManagedDeviceCertificateState withCertificateKeyLength​(Integer certificateKeyLength)
        Returns an immutable copy of this with just the certificateKeyLength 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 length”

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

        public Optional<KeyStorageProviderOption> getCertificateKeyStorageProvider()
        “Key Storage Provider”
        Returns:
        property certificateKeyStorageProvider
      • withCertificateKeyStorageProvider

        public ManagedDeviceCertificateState withCertificateKeyStorageProvider​(KeyStorageProviderOption certificateKeyStorageProvider)
        Returns an immutable copy of this with just the certificateKeyStorageProvider 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 Storage Provider”

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

        public Optional<KeyUsages> getCertificateKeyUsage()
        “Key usage”
        Returns:
        property certificateKeyUsage
      • withCertificateKeyUsage

        public ManagedDeviceCertificateState withCertificateKeyUsage​(KeyUsages certificateKeyUsage)
        Returns an immutable copy of this with just the certificateKeyUsage 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:
        certificateKeyUsage - new value of certificateKeyUsage field (as defined in service metadata)
        Returns:
        immutable copy of this with just the certificateKeyUsage field changed
      • getCertificateLastIssuanceStateChangedDateTime

        public Optional<OffsetDateTime> getCertificateLastIssuanceStateChangedDateTime()
        “Last certificate issuance state change”
        Returns:
        property certificateLastIssuanceStateChangedDateTime
      • withCertificateLastIssuanceStateChangedDateTime

        public ManagedDeviceCertificateState withCertificateLastIssuanceStateChangedDateTime​(OffsetDateTime certificateLastIssuanceStateChangedDateTime)
        Returns an immutable copy of this with just the certificateLastIssuanceStateChangedDateTime 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.

        “Last certificate issuance state change”

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

        public Optional<String> getCertificateProfileDisplayName()
        “Certificate profile display name”
        Returns:
        property certificateProfileDisplayName
      • withCertificateProfileDisplayName

        public ManagedDeviceCertificateState withCertificateProfileDisplayName​(String certificateProfileDisplayName)
        Returns an immutable copy of this with just the certificateProfileDisplayName 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 profile display name”

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

        public ManagedDeviceCertificateState 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
      • getCertificateSerialNumber

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

        public ManagedDeviceCertificateState 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
      • getCertificateSubjectAlternativeNameFormat

        public Optional<SubjectAlternativeNameType> getCertificateSubjectAlternativeNameFormat()
        “Subject alternative name format”
        Returns:
        property certificateSubjectAlternativeNameFormat
      • withCertificateSubjectAlternativeNameFormat

        public ManagedDeviceCertificateState withCertificateSubjectAlternativeNameFormat​(SubjectAlternativeNameType certificateSubjectAlternativeNameFormat)
        Returns an immutable copy of this with just the certificateSubjectAlternativeNameFormat 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.

        “Subject alternative name format”

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

        public Optional<String> getCertificateSubjectAlternativeNameFormatString()
        “Subject alternative name format string for custom formats”
        Returns:
        property certificateSubjectAlternativeNameFormatString
      • withCertificateSubjectAlternativeNameFormatString

        public ManagedDeviceCertificateState withCertificateSubjectAlternativeNameFormatString​(String certificateSubjectAlternativeNameFormatString)
        Returns an immutable copy of this with just the certificateSubjectAlternativeNameFormatString 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.

        “Subject alternative name format string for custom formats”

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

        public Optional<SubjectNameFormat> getCertificateSubjectNameFormat()
        “Subject name format”
        Returns:
        property certificateSubjectNameFormat
      • withCertificateSubjectNameFormat

        public ManagedDeviceCertificateState withCertificateSubjectNameFormat​(SubjectNameFormat certificateSubjectNameFormat)
        Returns an immutable copy of this with just the certificateSubjectNameFormat 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.

        “Subject name format”

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

        public Optional<String> getCertificateSubjectNameFormatString()
        “Subject name format string for custom subject name formats”
        Returns:
        property certificateSubjectNameFormatString
      • withCertificateSubjectNameFormatString

        public ManagedDeviceCertificateState withCertificateSubjectNameFormatString​(String certificateSubjectNameFormatString)
        Returns an immutable copy of this with just the certificateSubjectNameFormatString 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.

        “Subject name format string for custom subject name formats”

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

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

        public ManagedDeviceCertificateState 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
      • getCertificateValidityPeriod

        public Optional<Integer> getCertificateValidityPeriod()
        “Validity period”
        Returns:
        property certificateValidityPeriod
      • withCertificateValidityPeriod

        public ManagedDeviceCertificateState withCertificateValidityPeriod​(Integer certificateValidityPeriod)
        Returns an immutable copy of this with just the certificateValidityPeriod 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.

        “Validity period”

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

        public Optional<CertificateValidityPeriodScale> getCertificateValidityPeriodUnits()
        “Validity period units”
        Returns:
        property certificateValidityPeriodUnits
      • withCertificateValidityPeriodUnits

        public ManagedDeviceCertificateState withCertificateValidityPeriodUnits​(CertificateValidityPeriodScale certificateValidityPeriodUnits)
        Returns an immutable copy of this with just the certificateValidityPeriodUnits 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.

        “Validity period units”

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

        public Optional<String> getDeviceDisplayName()
        “Device display name”
        Returns:
        property deviceDisplayName
      • withDeviceDisplayName

        public ManagedDeviceCertificateState withDeviceDisplayName​(String deviceDisplayName)
        Returns an immutable copy of this with just the deviceDisplayName 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:
        deviceDisplayName - new value of deviceDisplayName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the deviceDisplayName field changed
      • getDevicePlatform

        public Optional<DevicePlatformType> getDevicePlatform()
        “Device platform”
        Returns:
        property devicePlatform
      • withDevicePlatform

        public ManagedDeviceCertificateState withDevicePlatform​(DevicePlatformType devicePlatform)
        Returns an immutable copy of this with just the devicePlatform 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 platform”

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

        public Optional<OffsetDateTime> getLastCertificateStateChangeDateTime()
        “Last certificate issuance state change”
        Returns:
        property lastCertificateStateChangeDateTime
      • withLastCertificateStateChangeDateTime

        public ManagedDeviceCertificateState withLastCertificateStateChangeDateTime​(OffsetDateTime lastCertificateStateChangeDateTime)
        Returns an immutable copy of this with just the lastCertificateStateChangeDateTime 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.

        “Last certificate issuance state change”

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

        public Optional<String> getUserDisplayName()
        “User display name”
        Returns:
        property userDisplayName
      • withUserDisplayName

        public ManagedDeviceCertificateState withUserDisplayName​(String userDisplayName)
        Returns an immutable copy of this with just the userDisplayName 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 display name”

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