Class EnumKeyValueConfigurationBinaryObject

    • Constructor Detail

      • EnumKeyValueConfigurationBinaryObject

        public EnumKeyValueConfigurationBinaryObject()
        Constructor for EnumKeyValueConfigurationBinaryObject
      • EnumKeyValueConfigurationBinaryObject

        public EnumKeyValueConfigurationBinaryObject​(IEnumKeyValueConfigurationBinaryObject enumKeyValueConfigurationBinaryObject)
        Constructor for EnumKeyValueConfigurationBinaryObject
        Parameters:
        enumKeyValueConfigurationBinaryObject - the enum key value configuration
      • EnumKeyValueConfigurationBinaryObject

        public EnumKeyValueConfigurationBinaryObject​(java.lang.String name,
                                                     java.time.Instant timestamp,
                                                     java.lang.String mimetype,
                                                     java.lang.String data)
        Constructor for EnumKeyValueConfigurationBinaryObject
        Parameters:
        name - the name
        timestamp - the timestamp
        mimetype - the mime type
        data - the data
    • Method Detail

      • merge

        public void merge​(IEnumKeyValueConfigurationBinaryObject enumKeyValueConfigurationBinaryObject)
        Set all properties which are null or empty from the current with the information from the given object. The data will always be taken from the given object except it empty!
        Parameters:
        enumKeyValueConfigurationBinaryObject - the data to merge
      • setName

        public void setName​(java.lang.String name)
        Set the name
        Parameters:
        name - the name
      • setTimestamp

        public void setTimestamp​(java.time.Instant timestamp)
        Set the timestamp
        Parameters:
        timestamp - the timestamp
      • setMimetype

        public void setMimetype​(java.lang.String mimetype)
        Set the mime type
        Parameters:
        mimetype - the mime type
      • setData

        public void setData​(java.lang.String data)
        Set the data
        Parameters:
        data - the data
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • toString

        public java.lang.String toString()
        Description copied from interface: IEnumKeyValueConfigurationBinaryObject
        The strign representation of the binary type: Format: [name]|[timestamp]|{mime-type}[content base64 encoded]. The name, timestamp (according to RFC 3339), mime-type and the content (base64 encoded content) are optional values. If the name, timestamp or content are present, they must be separated by a pipe character (|). The mime-type can be declared as header of the content. If there is no pipe character it's assumed its the content part. e.g. myfile.txt|2021-03-15T08:59:22.123Z|{text/plain}VGV4dAo= or myfile.txt|2021-03-15T08:59:22.123Z|{text/plain} or myfile.txt|2021-03-15T08:59:22.123Z|VGV4dAo= or 2021-03-15T08:59:22.123Z|{text/plain}VGV4dAo= or 2021-03-15T08:59:22.123Z|{text/plain} or 2021-03-15T08:59:22.123Z|VGV4dAo= or myfile.txt|{text/plain}VGV4dAo= or myfile.txt|{text/plain} or myfile.txt|VGV4dAo= or {text/plain}VGV4dAo= or {text/plain} or VGV4dAo=
        Specified by:
        toString in interface IEnumKeyValueConfigurationBinaryObject
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string representation
        See Also:
        Object.toString()