@Override public UpdateGroupResponse build() { return new UpdateGroupResponse(this); }
public UpdateGroupResponse unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateGroupResponse.Builder updateGroupResponseBuilder = UpdateGroupResponse.builder(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return updateGroupResponseBuilder.build(); } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("Group", targetDepth)) { context.nextToken(); updateGroupResponseBuilder.group(GroupTypeUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return updateGroupResponseBuilder.build(); }
@Override public UpdateGroupResponse build() { return new UpdateGroupResponse(this); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(group()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(group()); return hashCode; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("UpdateGroupResponse").add("Group", group()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Group": return Optional.ofNullable(clazz.cast(group())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Group": return Optional.ofNullable(clazz.cast(group())); default: return Optional.empty(); } }
@Override public String toString() { return ToString.builder("UpdateGroupResponse").add("Group", group()).build(); }