Class ImmutableCAAResult.Builder
- java.lang.Object
-
- net.rpcnet.securitytoolkit.web.ssl.caa.ImmutableCAAResult.Builder
-
- Enclosing class:
- ImmutableCAAResult
public static final class ImmutableCAAResult.Builder extends Object
Builds instances of typeImmutableCAAResult. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableCAAResultbuild()Builds a newImmutableCAAResult.ImmutableCAAResult.Builderflags(int flags)Initializes the optional valueflagsto flags.ImmutableCAAResult.Builderflags(Optional<Integer> flags)Initializes the optional valueflagsto flags.ImmutableCAAResult.Builderfrom(CAAResult instance)Fill a builder with attribute values from the providedCAAResultinstance.ImmutableCAAResult.Buildertag(String tag)Initializes the optional valuetagto tag.ImmutableCAAResult.Buildertag(Optional<String> tag)Initializes the optional valuetagto tag.ImmutableCAAResult.Buildervalue(String value)Initializes the optional valuevalueto value.ImmutableCAAResult.Buildervalue(Optional<String> value)Initializes the optional valuevalueto value.
-
-
-
Method Detail
-
from
public final ImmutableCAAResult.Builder from(CAAResult instance)
Fill a builder with attribute values from the providedCAAResultinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
tag
public final ImmutableCAAResult.Builder tag(String tag)
Initializes the optional valuetagto tag.- Parameters:
tag- The value for tag- Returns:
thisbuilder for chained invocation
-
tag
public final ImmutableCAAResult.Builder tag(Optional<String> tag)
Initializes the optional valuetagto tag.- Parameters:
tag- The value for tag- Returns:
thisbuilder for use in a chained invocation
-
value
public final ImmutableCAAResult.Builder value(String value)
Initializes the optional valuevalueto value.- Parameters:
value- The value for value- Returns:
thisbuilder for chained invocation
-
value
public final ImmutableCAAResult.Builder value(Optional<String> value)
Initializes the optional valuevalueto value.- Parameters:
value- The value for value- Returns:
thisbuilder for use in a chained invocation
-
flags
public final ImmutableCAAResult.Builder flags(int flags)
Initializes the optional valueflagsto flags.- Parameters:
flags- The value for flags- Returns:
thisbuilder for chained invocation
-
flags
public final ImmutableCAAResult.Builder flags(Optional<Integer> flags)
Initializes the optional valueflagsto flags.- Parameters:
flags- The value for flags- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableCAAResult build()
Builds a newImmutableCAAResult.- Returns:
- An immutable instance of CAAResult
- Throws:
IllegalStateException- if any required attributes are missing
-
-