Class ImmutableDMARCResult
- java.lang.Object
-
- net.rpcnet.securitytoolkit.mail.dmarc.DMARCResult
-
- net.rpcnet.securitytoolkit.mail.dmarc.ImmutableDMARCResult
-
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableDMARCResult extends DMARCResult
Immutable implementation ofDMARCResult.Use the builder to create immutable instances:
ImmutableDMARCResult.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDMARCResult.BuilderBuilds instances of typeImmutableDMARCResult.
-
Field Summary
-
Fields inherited from class net.rpcnet.securitytoolkit.mail.dmarc.DMARCResult
EQUAL_SIGN
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDMARCResult.Builderbuilder()Creates a builder forImmutableDMARCResult.static ImmutableDMARCResultcopyOf(DMARCResult instance)Creates an immutable copy of aDMARCResultvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableDMARCResultthat have equal attribute values.Optional<String>getAggregateReport()Optional<String>getAggregateReportTimeInterval()Optional<String>getDomainKeysAlignment()Optional<String>getForensicReport()Optional<String>getForensicReportingOptions()Optional<String>getPercentage()Optional<String>getPolicy()Optional<String>getReportFormat()Optional<String>getSPFAlignment()Optional<String>getSubdomainsPolicy()Optional<String>getVersion()inthashCode()Computes a hash code from attributes:version,percentage,forensicReport,aggregateReport,policy,subdomainsPolicy,domainKeysAlignment,sPFAlignment,reportFormat,aggregateReportTimeInterval,forensicReportingOptions.ImmutableDMARCResultwithAggregateReport(String value)Copy the current immutable object by setting a present value for the optionalaggregateReportattribute.ImmutableDMARCResultwithAggregateReport(Optional<String> optional)Copy the current immutable object by setting an optional value for theaggregateReportattribute.ImmutableDMARCResultwithAggregateReportTimeInterval(String value)Copy the current immutable object by setting a present value for the optionalaggregateReportTimeIntervalattribute.ImmutableDMARCResultwithAggregateReportTimeInterval(Optional<String> optional)Copy the current immutable object by setting an optional value for theaggregateReportTimeIntervalattribute.ImmutableDMARCResultwithDomainKeysAlignment(String value)Copy the current immutable object by setting a present value for the optionaldomainKeysAlignmentattribute.ImmutableDMARCResultwithDomainKeysAlignment(Optional<String> optional)Copy the current immutable object by setting an optional value for thedomainKeysAlignmentattribute.ImmutableDMARCResultwithForensicReport(String value)Copy the current immutable object by setting a present value for the optionalforensicReportattribute.ImmutableDMARCResultwithForensicReport(Optional<String> optional)Copy the current immutable object by setting an optional value for theforensicReportattribute.ImmutableDMARCResultwithForensicReportingOptions(String value)Copy the current immutable object by setting a present value for the optionalforensicReportingOptionsattribute.ImmutableDMARCResultwithForensicReportingOptions(Optional<String> optional)Copy the current immutable object by setting an optional value for theforensicReportingOptionsattribute.ImmutableDMARCResultwithPercentage(String value)Copy the current immutable object by setting a present value for the optionalpercentageattribute.ImmutableDMARCResultwithPercentage(Optional<String> optional)Copy the current immutable object by setting an optional value for thepercentageattribute.ImmutableDMARCResultwithPolicy(String value)Copy the current immutable object by setting a present value for the optionalpolicyattribute.ImmutableDMARCResultwithPolicy(Optional<String> optional)Copy the current immutable object by setting an optional value for thepolicyattribute.ImmutableDMARCResultwithReportFormat(String value)Copy the current immutable object by setting a present value for the optionalreportFormatattribute.ImmutableDMARCResultwithReportFormat(Optional<String> optional)Copy the current immutable object by setting an optional value for thereportFormatattribute.ImmutableDMARCResultwithSPFAlignment(String value)Copy the current immutable object by setting a present value for the optionalsPFAlignmentattribute.ImmutableDMARCResultwithSPFAlignment(Optional<String> optional)Copy the current immutable object by setting an optional value for thesPFAlignmentattribute.ImmutableDMARCResultwithSubdomainsPolicy(String value)Copy the current immutable object by setting a present value for the optionalsubdomainsPolicyattribute.ImmutableDMARCResultwithSubdomainsPolicy(Optional<String> optional)Copy the current immutable object by setting an optional value for thesubdomainsPolicyattribute.ImmutableDMARCResultwithVersion(String value)Copy the current immutable object by setting a present value for the optionalversionattribute.ImmutableDMARCResultwithVersion(Optional<String> optional)Copy the current immutable object by setting an optional value for theversionattribute.-
Methods inherited from class net.rpcnet.securitytoolkit.mail.dmarc.DMARCResult
toString
-
-
-
-
Method Detail
-
getVersion
public Optional<String> getVersion()
- Specified by:
getVersionin classDMARCResult- Returns:
- The value of the
versionattribute
-
getPercentage
public Optional<String> getPercentage()
- Specified by:
getPercentagein classDMARCResult- Returns:
- The value of the
percentageattribute
-
getForensicReport
public Optional<String> getForensicReport()
- Specified by:
getForensicReportin classDMARCResult- Returns:
- The value of the
forensicReportattribute
-
getAggregateReport
public Optional<String> getAggregateReport()
- Specified by:
getAggregateReportin classDMARCResult- Returns:
- The value of the
aggregateReportattribute
-
getPolicy
public Optional<String> getPolicy()
- Specified by:
getPolicyin classDMARCResult- Returns:
- The value of the
policyattribute
-
getSubdomainsPolicy
public Optional<String> getSubdomainsPolicy()
- Specified by:
getSubdomainsPolicyin classDMARCResult- Returns:
- The value of the
subdomainsPolicyattribute
-
getDomainKeysAlignment
public Optional<String> getDomainKeysAlignment()
- Specified by:
getDomainKeysAlignmentin classDMARCResult- Returns:
- The value of the
domainKeysAlignmentattribute
-
getSPFAlignment
public Optional<String> getSPFAlignment()
- Specified by:
getSPFAlignmentin classDMARCResult- Returns:
- The value of the
sPFAlignmentattribute
-
getReportFormat
public Optional<String> getReportFormat()
- Specified by:
getReportFormatin classDMARCResult- Returns:
- The value of the
reportFormatattribute
-
getAggregateReportTimeInterval
public Optional<String> getAggregateReportTimeInterval()
- Specified by:
getAggregateReportTimeIntervalin classDMARCResult- Returns:
- The value of the
aggregateReportTimeIntervalattribute
-
getForensicReportingOptions
public Optional<String> getForensicReportingOptions()
- Specified by:
getForensicReportingOptionsin classDMARCResult- Returns:
- The value of the
forensicReportingOptionsattribute
-
withVersion
public final ImmutableDMARCResult withVersion(String value)
Copy the current immutable object by setting a present value for the optionalversionattribute.- Parameters:
value- The value for version- Returns:
- A modified copy of
thisobject
-
withVersion
public final ImmutableDMARCResult withVersion(Optional<String> optional)
Copy the current immutable object by setting an optional value for theversionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for version- Returns:
- A modified copy of
thisobject
-
withPercentage
public final ImmutableDMARCResult withPercentage(String value)
Copy the current immutable object by setting a present value for the optionalpercentageattribute.- Parameters:
value- The value for percentage- Returns:
- A modified copy of
thisobject
-
withPercentage
public final ImmutableDMARCResult withPercentage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thepercentageattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for percentage- Returns:
- A modified copy of
thisobject
-
withForensicReport
public final ImmutableDMARCResult withForensicReport(String value)
Copy the current immutable object by setting a present value for the optionalforensicReportattribute.- Parameters:
value- The value for forensicReport- Returns:
- A modified copy of
thisobject
-
withForensicReport
public final ImmutableDMARCResult withForensicReport(Optional<String> optional)
Copy the current immutable object by setting an optional value for theforensicReportattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for forensicReport- Returns:
- A modified copy of
thisobject
-
withAggregateReport
public final ImmutableDMARCResult withAggregateReport(String value)
Copy the current immutable object by setting a present value for the optionalaggregateReportattribute.- Parameters:
value- The value for aggregateReport- Returns:
- A modified copy of
thisobject
-
withAggregateReport
public final ImmutableDMARCResult withAggregateReport(Optional<String> optional)
Copy the current immutable object by setting an optional value for theaggregateReportattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for aggregateReport- Returns:
- A modified copy of
thisobject
-
withPolicy
public final ImmutableDMARCResult withPolicy(String value)
Copy the current immutable object by setting a present value for the optionalpolicyattribute.- Parameters:
value- The value for policy- Returns:
- A modified copy of
thisobject
-
withPolicy
public final ImmutableDMARCResult withPolicy(Optional<String> optional)
Copy the current immutable object by setting an optional value for thepolicyattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for policy- Returns:
- A modified copy of
thisobject
-
withSubdomainsPolicy
public final ImmutableDMARCResult withSubdomainsPolicy(String value)
Copy the current immutable object by setting a present value for the optionalsubdomainsPolicyattribute.- Parameters:
value- The value for subdomainsPolicy- Returns:
- A modified copy of
thisobject
-
withSubdomainsPolicy
public final ImmutableDMARCResult withSubdomainsPolicy(Optional<String> optional)
Copy the current immutable object by setting an optional value for thesubdomainsPolicyattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for subdomainsPolicy- Returns:
- A modified copy of
thisobject
-
withDomainKeysAlignment
public final ImmutableDMARCResult withDomainKeysAlignment(String value)
Copy the current immutable object by setting a present value for the optionaldomainKeysAlignmentattribute.- Parameters:
value- The value for domainKeysAlignment- Returns:
- A modified copy of
thisobject
-
withDomainKeysAlignment
public final ImmutableDMARCResult withDomainKeysAlignment(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedomainKeysAlignmentattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for domainKeysAlignment- Returns:
- A modified copy of
thisobject
-
withSPFAlignment
public final ImmutableDMARCResult withSPFAlignment(String value)
Copy the current immutable object by setting a present value for the optionalsPFAlignmentattribute.- Parameters:
value- The value for sPFAlignment- Returns:
- A modified copy of
thisobject
-
withSPFAlignment
public final ImmutableDMARCResult withSPFAlignment(Optional<String> optional)
Copy the current immutable object by setting an optional value for thesPFAlignmentattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sPFAlignment- Returns:
- A modified copy of
thisobject
-
withReportFormat
public final ImmutableDMARCResult withReportFormat(String value)
Copy the current immutable object by setting a present value for the optionalreportFormatattribute.- Parameters:
value- The value for reportFormat- Returns:
- A modified copy of
thisobject
-
withReportFormat
public final ImmutableDMARCResult withReportFormat(Optional<String> optional)
Copy the current immutable object by setting an optional value for thereportFormatattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for reportFormat- Returns:
- A modified copy of
thisobject
-
withAggregateReportTimeInterval
public final ImmutableDMARCResult withAggregateReportTimeInterval(String value)
Copy the current immutable object by setting a present value for the optionalaggregateReportTimeIntervalattribute.- Parameters:
value- The value for aggregateReportTimeInterval- Returns:
- A modified copy of
thisobject
-
withAggregateReportTimeInterval
public final ImmutableDMARCResult withAggregateReportTimeInterval(Optional<String> optional)
Copy the current immutable object by setting an optional value for theaggregateReportTimeIntervalattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for aggregateReportTimeInterval- Returns:
- A modified copy of
thisobject
-
withForensicReportingOptions
public final ImmutableDMARCResult withForensicReportingOptions(String value)
Copy the current immutable object by setting a present value for the optionalforensicReportingOptionsattribute.- Parameters:
value- The value for forensicReportingOptions- Returns:
- A modified copy of
thisobject
-
withForensicReportingOptions
public final ImmutableDMARCResult withForensicReportingOptions(Optional<String> optional)
Copy the current immutable object by setting an optional value for theforensicReportingOptionsattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for forensicReportingOptions- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableDMARCResultthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:version,percentage,forensicReport,aggregateReport,policy,subdomainsPolicy,domainKeysAlignment,sPFAlignment,reportFormat,aggregateReportTimeInterval,forensicReportingOptions.
-
copyOf
public static ImmutableDMARCResult copyOf(DMARCResult instance)
Creates an immutable copy of aDMARCResultvalue. 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
-
builder
public static ImmutableDMARCResult.Builder builder()
Creates a builder forImmutableDMARCResult.ImmutableDMARCResult.builder() .version(String) // optionalversion.percentage(String) // optionalpercentage.forensicReport(String) // optionalforensicReport.aggregateReport(String) // optionalaggregateReport.policy(String) // optionalpolicy.subdomainsPolicy(String) // optionalsubdomainsPolicy.domainKeysAlignment(String) // optionaldomainKeysAlignment.sPFAlignment(String) // optionalsPFAlignment.reportFormat(String) // optionalreportFormat.aggregateReportTimeInterval(String) // optionalaggregateReportTimeInterval.forensicReportingOptions(String) // optionalforensicReportingOptions.build();- Returns:
- A new ImmutableDMARCResult builder
-
-