@Override public DescribeUserPoolResponse build() { return new DescribeUserPoolResponse(this); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DescribeUserPoolResponse)) { return false; } DescribeUserPoolResponse other = (DescribeUserPoolResponse) obj; return Objects.equals(userPool(), other.userPool()); }
public DescribeUserPoolResponse unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeUserPoolResponse.Builder describeUserPoolResponseBuilder = DescribeUserPoolResponse.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 describeUserPoolResponseBuilder.build(); } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("UserPool", targetDepth)) { context.nextToken(); describeUserPoolResponseBuilder.userPool(UserPoolTypeUnmarshaller.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 describeUserPoolResponseBuilder.build(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DescribeUserPoolResponse)) { return false; } DescribeUserPoolResponse other = (DescribeUserPoolResponse) obj; return Objects.equals(userPool(), other.userPool()); }
@Override public DescribeUserPoolResponse build() { return new DescribeUserPoolResponse(this); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(userPool()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(userPool()); 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("DescribeUserPoolResponse").add("UserPool", userPool()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "UserPool": return Optional.ofNullable(clazz.cast(userPool())); default: return Optional.empty(); } }
@Override public String toString() { return ToString.builder("DescribeUserPoolResponse").add("UserPool", userPool()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "UserPool": return Optional.ofNullable(clazz.cast(userPool())); default: return Optional.empty(); } }