Class EnterpriseCodeSigningCertificate

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

    public class EnterpriseCodeSigningCertificate
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    • Constructor Detail

      • EnterpriseCodeSigningCertificate

        protected EnterpriseCodeSigningCertificate()
    • Method Detail

      • odataTypeName

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

        public static EnterpriseCodeSigningCertificate.Builder builderEnterpriseCodeSigningCertificate()
        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
      • getContent

        public Optional<byte[]> getContent()
        “The Windows Enterprise Code-Signing Certificate in the raw data format.”
        Returns:
        property content
      • withContent

        public EnterpriseCodeSigningCertificate withContent​(byte[] content)
        Returns an immutable copy of this with just the content 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 Windows Enterprise Code-Signing Certificate in the raw data format.”

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

        public Optional<OffsetDateTime> getExpirationDateTime()
        “The Cert Expiration Date.”
        Returns:
        property expirationDateTime
      • withExpirationDateTime

        public EnterpriseCodeSigningCertificate 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 Cert Expiration Date.”

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

        public Optional<String> getIssuer()
        “The Issuer value for the cert.”
        Returns:
        property issuer
      • withIssuer

        public EnterpriseCodeSigningCertificate withIssuer​(String issuer)
        Returns an immutable copy of this with just the issuer 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 Issuer value for the cert.”

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

        public Optional<String> getIssuerName()
        “The Issuer Name for the cert.”
        Returns:
        property issuerName
      • withIssuerName

        public EnterpriseCodeSigningCertificate withIssuerName​(String issuerName)
        Returns an immutable copy of this with just the issuerName 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 Issuer Name for the cert.”

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

        public Optional<CertificateStatus> getStatus()
        “The Certificate Status Provisioned or not Provisioned.”
        Returns:
        property status
      • withStatus

        public EnterpriseCodeSigningCertificate withStatus​(CertificateStatus status)
        Returns an immutable copy of this with just the status 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 Status Provisioned or not Provisioned.”

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

        public Optional<String> getSubject()
        “The Subject Value for the cert.”
        Returns:
        property subject
      • withSubject

        public EnterpriseCodeSigningCertificate withSubject​(String subject)
        Returns an immutable copy of this with just the subject 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 Subject Value for the cert.”

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

        public Optional<String> getSubjectName()
        “The Subject Name for the cert.”
        Returns:
        property subjectName
      • withSubjectName

        public EnterpriseCodeSigningCertificate withSubjectName​(String subjectName)
        Returns an immutable copy of this with just the subjectName 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 Subject Name for the cert.”

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

        public Optional<OffsetDateTime> getUploadDateTime()
        “The date time of CodeSigning Cert when it is uploaded.”
        Returns:
        property uploadDateTime
      • withUploadDateTime

        public EnterpriseCodeSigningCertificate withUploadDateTime​(OffsetDateTime uploadDateTime)
        Returns an immutable copy of this with just the uploadDateTime 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 date time of CodeSigning Cert when it is uploaded.”

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