Class ImmutableDMARCResult


  • @Generated("org.immutables.processor.ProxyProcessor")
    public final class ImmutableDMARCResult
    extends DMARCResult
    Immutable implementation of DMARCResult.

    Use the builder to create immutable instances: ImmutableDMARCResult.builder().

    • Method Detail

      • withVersion

        public final ImmutableDMARCResult withVersion​(String value)
        Copy the current immutable object by setting a present value for the optional version attribute.
        Parameters:
        value - The value for version
        Returns:
        A modified copy of this object
      • withVersion

        public final ImmutableDMARCResult withVersion​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the version attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for version
        Returns:
        A modified copy of this object
      • withPercentage

        public final ImmutableDMARCResult withPercentage​(String value)
        Copy the current immutable object by setting a present value for the optional percentage attribute.
        Parameters:
        value - The value for percentage
        Returns:
        A modified copy of this object
      • withPercentage

        public final ImmutableDMARCResult withPercentage​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the percentage attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for percentage
        Returns:
        A modified copy of this object
      • withForensicReport

        public final ImmutableDMARCResult withForensicReport​(String value)
        Copy the current immutable object by setting a present value for the optional forensicReport attribute.
        Parameters:
        value - The value for forensicReport
        Returns:
        A modified copy of this object
      • withForensicReport

        public final ImmutableDMARCResult withForensicReport​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the forensicReport attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for forensicReport
        Returns:
        A modified copy of this object
      • withAggregateReport

        public final ImmutableDMARCResult withAggregateReport​(String value)
        Copy the current immutable object by setting a present value for the optional aggregateReport attribute.
        Parameters:
        value - The value for aggregateReport
        Returns:
        A modified copy of this object
      • withAggregateReport

        public final ImmutableDMARCResult withAggregateReport​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the aggregateReport attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for aggregateReport
        Returns:
        A modified copy of this object
      • withPolicy

        public final ImmutableDMARCResult withPolicy​(String value)
        Copy the current immutable object by setting a present value for the optional policy attribute.
        Parameters:
        value - The value for policy
        Returns:
        A modified copy of this object
      • withPolicy

        public final ImmutableDMARCResult withPolicy​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the policy attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for policy
        Returns:
        A modified copy of this object
      • withSubdomainsPolicy

        public final ImmutableDMARCResult withSubdomainsPolicy​(String value)
        Copy the current immutable object by setting a present value for the optional subdomainsPolicy attribute.
        Parameters:
        value - The value for subdomainsPolicy
        Returns:
        A modified copy of this object
      • withSubdomainsPolicy

        public final ImmutableDMARCResult withSubdomainsPolicy​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the subdomainsPolicy attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for subdomainsPolicy
        Returns:
        A modified copy of this object
      • withDomainKeysAlignment

        public final ImmutableDMARCResult withDomainKeysAlignment​(String value)
        Copy the current immutable object by setting a present value for the optional domainKeysAlignment attribute.
        Parameters:
        value - The value for domainKeysAlignment
        Returns:
        A modified copy of this object
      • withDomainKeysAlignment

        public final ImmutableDMARCResult withDomainKeysAlignment​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the domainKeysAlignment attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for domainKeysAlignment
        Returns:
        A modified copy of this object
      • withSPFAlignment

        public final ImmutableDMARCResult withSPFAlignment​(String value)
        Copy the current immutable object by setting a present value for the optional sPFAlignment attribute.
        Parameters:
        value - The value for sPFAlignment
        Returns:
        A modified copy of this object
      • withSPFAlignment

        public final ImmutableDMARCResult withSPFAlignment​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the sPFAlignment attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for sPFAlignment
        Returns:
        A modified copy of this object
      • withReportFormat

        public final ImmutableDMARCResult withReportFormat​(String value)
        Copy the current immutable object by setting a present value for the optional reportFormat attribute.
        Parameters:
        value - The value for reportFormat
        Returns:
        A modified copy of this object
      • withReportFormat

        public final ImmutableDMARCResult withReportFormat​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the reportFormat attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for reportFormat
        Returns:
        A modified copy of this object
      • withAggregateReportTimeInterval

        public final ImmutableDMARCResult withAggregateReportTimeInterval​(String value)
        Copy the current immutable object by setting a present value for the optional aggregateReportTimeInterval attribute.
        Parameters:
        value - The value for aggregateReportTimeInterval
        Returns:
        A modified copy of this object
      • withAggregateReportTimeInterval

        public final ImmutableDMARCResult withAggregateReportTimeInterval​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the aggregateReportTimeInterval attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for aggregateReportTimeInterval
        Returns:
        A modified copy of this object
      • withForensicReportingOptions

        public final ImmutableDMARCResult withForensicReportingOptions​(String value)
        Copy the current immutable object by setting a present value for the optional forensicReportingOptions attribute.
        Parameters:
        value - The value for forensicReportingOptions
        Returns:
        A modified copy of this object
      • withForensicReportingOptions

        public final ImmutableDMARCResult withForensicReportingOptions​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the forensicReportingOptions attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for forensicReportingOptions
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableDMARCResult that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: version, percentage, forensicReport, aggregateReport, policy, subdomainsPolicy, domainKeysAlignment, sPFAlignment, reportFormat, aggregateReportTimeInterval, forensicReportingOptions.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • copyOf

        public static ImmutableDMARCResult copyOf​(DMARCResult instance)
        Creates an immutable copy of a DMARCResult value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable DMARCResult instance