Package com.backblaze.b2.json
Class B2JsonOptions
- java.lang.Object
-
- com.backblaze.b2.json.B2JsonOptions
-
public class B2JsonOptions extends java.lang.Object
Options used by JSON serialization and de-serialization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
B2JsonOptions.Builder
Builder for B2JsonOptionsstatic class
B2JsonOptions.ExtraFieldOption
What to do with extra fields found when de-serializing.static class
B2JsonOptions.SerializationOption
How 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 B2JsonOptions
DEFAULT
The default set of options.static B2JsonOptions
DEFAULT_AND_ALLOW_EXTRA_FIELDS
The 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.Builder
builder()
Returns a new builder for B2JsonOptions.B2JsonOptions.ExtraFieldOption
getExtraFieldOption()
What to do with extra fields found when de-serializing.boolean
getRedactSensitive()
Redact sensitive fields from outputB2JsonOptions.SerializationOption
getSerializationOption()
int
getVersion()
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.
-
-