Package com.backblaze.b2.json
Class B2JsonOptions
- java.lang.Object
-
- com.backblaze.b2.json.B2JsonOptions
-
public class B2JsonOptions extends java.lang.ObjectOptions used by JSON serialization and de-serialization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classB2JsonOptions.BuilderBuilder for B2JsonOptionsstatic classB2JsonOptions.ExtraFieldOptionWhat to do with extra fields found when de-serializing.static classB2JsonOptions.SerializationOptionHow to format the serialized string PRETTY is the default and produces indented, multi-line JSON COMPACT produces a single line of text with no optional whitespace
-
Field Summary
Fields Modifier and Type Field Description static B2JsonOptionsDEFAULTThe default set of options.static B2JsonOptionsDEFAULT_AND_ALLOW_EXTRA_FIELDSThe default set of options, except that extra fields are ignored.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static B2JsonOptions.Builderbuilder()Returns a new builder for B2JsonOptions.B2JsonOptions.ExtraFieldOptiongetExtraFieldOption()What to do with extra fields found when de-serializing.booleangetRedactSensitive()Redact sensitive fields from outputB2JsonOptions.SerializationOptiongetSerializationOption()intgetVersion()What version of the (de-)serialized structure to use.
-
-
-
Field Detail
-
DEFAULT
public static final B2JsonOptions DEFAULT
The default set of options.
-
DEFAULT_AND_ALLOW_EXTRA_FIELDS
public static final B2JsonOptions DEFAULT_AND_ALLOW_EXTRA_FIELDS
The default set of options, except that extra fields are ignored.
-
-
Method Detail
-
getExtraFieldOption
public B2JsonOptions.ExtraFieldOption getExtraFieldOption()
What to do with extra fields found when de-serializing.
-
getVersion
public int getVersion()
What version of the (de-)serialized structure to use.
-
getRedactSensitive
public boolean getRedactSensitive()
Redact sensitive fields from output
-
getSerializationOption
public B2JsonOptions.SerializationOption getSerializationOption()
-
builder
public static B2JsonOptions.Builder builder()
Returns a new builder for B2JsonOptions.
-
-