Class ApplePushNotificationCertificate

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

    public class ApplePushNotificationCertificate
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Apple push notification certificate.”
    • Field Detail

      • appleIdentifier

        protected String appleIdentifier
      • certificate

        protected String certificate
      • certificateSerialNumber

        protected String certificateSerialNumber
      • certificateUploadFailureReason

        protected String certificateUploadFailureReason
      • certificateUploadStatus

        protected String certificateUploadStatus
      • topicIdentifier

        protected String topicIdentifier
    • Constructor Detail

      • ApplePushNotificationCertificate

        protected ApplePushNotificationCertificate()
    • Method Detail

      • odataTypeName

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

        public static ApplePushNotificationCertificate.Builder builderApplePushNotificationCertificate()
        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
      • getAppleIdentifier

        public Optional<String> getAppleIdentifier()
        “Apple Id of the account used to create the MDM push certificate.”
        Returns:
        property appleIdentifier
      • withAppleIdentifier

        public ApplePushNotificationCertificate withAppleIdentifier​(String appleIdentifier)
        Returns an immutable copy of this with just the appleIdentifier 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.

        “Apple Id of the account used to create the MDM push certificate.”

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

        public Optional<String> getCertificateSerialNumber()
        “Certificate serial number. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property certificateSerialNumber
      • withCertificateSerialNumber

        public ApplePushNotificationCertificate 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.

        “Certificate serial number. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

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

        public Optional<String> getCertificateUploadFailureReason()
        “The reason the certificate upload failed.”
        Returns:
        property certificateUploadFailureReason
      • withCertificateUploadFailureReason

        public ApplePushNotificationCertificate withCertificateUploadFailureReason​(String certificateUploadFailureReason)
        Returns an immutable copy of this with just the certificateUploadFailureReason 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 reason the certificate upload failed.”

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

        public Optional<String> getCertificateUploadStatus()
        “The certificate upload status.”
        Returns:
        property certificateUploadStatus
      • withCertificateUploadStatus

        public ApplePushNotificationCertificate withCertificateUploadStatus​(String certificateUploadStatus)
        Returns an immutable copy of this with just the certificateUploadStatus 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 certificate upload status.”

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

        public Optional<OffsetDateTime> getExpirationDateTime()
        “The expiration date and time for Apple push notification certificate.”
        Returns:
        property expirationDateTime
      • withExpirationDateTime

        public ApplePushNotificationCertificate withExpirationDateTime​(OffsetDateTime expirationDateTime)
        Returns an immutable copy of this with just the expirationDateTime 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 expiration date and time for Apple push notification certificate.”

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

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “Last modified date and time for Apple push notification certificate.”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public ApplePushNotificationCertificate withLastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        Returns an immutable copy of this with just the lastModifiedDateTime 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 modified date and time for Apple push notification certificate.”

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

        public Optional<String> getTopicIdentifier()
        “Topic Id.”
        Returns:
        property topicIdentifier
      • withTopicIdentifier

        public ApplePushNotificationCertificate withTopicIdentifier​(String topicIdentifier)
        Returns an immutable copy of this with just the topicIdentifier 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.

        “Topic Id.”

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

        public com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<String> generateApplePushNotificationCertificateSigningRequest()
      • downloadApplePushNotificationCertificateSigningRequest

        public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollection<String> downloadApplePushNotificationCertificateSigningRequest()