verb(instance.verb()); Optional<String> keyOptional = instance.key(); if (keyOptional.isPresent()) {
/** * @param json A JSON-bindable data structure * @return An immutable value type * @deprecated Do not use this method directly, it exists only for the <em>Jackson</em>-binding infrastructure */ @Deprecated @JsonCreator static ImmutableOperation fromJson(Json json) { ImmutableOperation.Builder builder = ImmutableOperation.builder(); if (json.verb != null) { builder.verb(json.verb); } if (json.key != null) { builder.key(json.key); } if (json.value != null) { builder.value(json.value); } if (json.flags != null) { builder.flags(json.flags); } if (json.index != null) { builder.index(json.index); } if (json.session != null) { builder.session(json.session); } return builder.build(); }
public static ImmutableOperation.Builder builder(Verb verb) { return ImmutableOperation.builder().verb(verb.toValue()); } }