Package com.telenordigital.nbiot
Class ImmutableSystemDefaults.Builder
- java.lang.Object
-
- com.telenordigital.nbiot.ImmutableSystemDefaults.Builder
-
- Enclosing class:
- ImmutableSystemDefaults
@NotThreadSafe public static final class ImmutableSystemDefaults.Builder extends Object
Builds instances of typeImmutableSystemDefaults. 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.
-
-
Constructor Summary
Constructors Constructor Description Builder()Creates a builder forImmutableSystemDefaultsinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableSystemDefaultsbuild()Builds a newImmutableSystemDefaults.ImmutableSystemDefaults.BuilderfieldMask(FieldMask fieldMask)Initializes the value for thefieldMaskattribute.ImmutableSystemDefaults.BuilderforcedFieldMask(FieldMask forcedFieldMask)Initializes the value for theforcedFieldMaskattribute.ImmutableSystemDefaults.Builderfrom(SystemDefaults instance)Fill a builder with attribute values from the providedSystemDefaultsinstance.
-
-
-
Constructor Detail
-
Builder
public Builder()
Creates a builder forImmutableSystemDefaultsinstances.new ImmutableSystemDefaults.Builder() .fieldMask(com.telenordigital.nbiot.FieldMask | null) // nullablefieldMask.forcedFieldMask(com.telenordigital.nbiot.FieldMask | null) // nullableforcedFieldMask.build();
-
-
Method Detail
-
from
public final ImmutableSystemDefaults.Builder from(SystemDefaults instance)
Fill a builder with attribute values from the providedSystemDefaultsinstance. 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
-
fieldMask
public final ImmutableSystemDefaults.Builder fieldMask(@Nullable FieldMask fieldMask)
Initializes the value for thefieldMaskattribute.- Parameters:
fieldMask- The value for fieldMask (can benull)- Returns:
thisbuilder for use in a chained invocation
-
forcedFieldMask
public final ImmutableSystemDefaults.Builder forcedFieldMask(@Nullable FieldMask forcedFieldMask)
Initializes the value for theforcedFieldMaskattribute.- Parameters:
forcedFieldMask- The value for forcedFieldMask (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableSystemDefaults build()
Builds a newImmutableSystemDefaults.- Returns:
- An immutable instance of SystemDefaults
- Throws:
IllegalStateException- if any required attributes are missing
-
-