public CancelKeyDeletionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CancelKeyDeletionResult cancelKeyDeletionResult = new CancelKeyDeletionResult(); 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 cancelKeyDeletionResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("KeyId", targetDepth)) { context.nextToken(); cancelKeyDeletionResult.setKeyId(context.getUnmarshaller(String.class).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 cancelKeyDeletionResult; }
/** * <p> * The unique identifier of the master key for which deletion is canceled. * </p> * * @param keyId * The unique identifier of the master key for which deletion is canceled. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelKeyDeletionResult withKeyId(String keyId) { setKeyId(keyId); return this; }
/** * <p> * The unique identifier of the master key for which deletion is canceled. * </p> * * @param keyId * The unique identifier of the master key for which deletion is canceled. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelKeyDeletionResult withKeyId(String keyId) { setKeyId(keyId); return this; }
public CancelKeyDeletionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CancelKeyDeletionResult cancelKeyDeletionResult = new CancelKeyDeletionResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("KeyId")) { cancelKeyDeletionResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return cancelKeyDeletionResult; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CancelKeyDeletionResult == false) return false; CancelKeyDeletionResult other = (CancelKeyDeletionResult) obj; if (other.getKeyId() == null ^ this.getKeyId() == null) return false; if (other.getKeyId() != null && other.getKeyId().equals(this.getKeyId()) == false) return false; return true; }
/** * <p> * The unique identifier of the master key for which deletion is canceled. * </p> * * @param keyId * The unique identifier of the master key for which deletion is canceled. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelKeyDeletionResult withKeyId(String keyId) { setKeyId(keyId); return this; }
public CancelKeyDeletionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CancelKeyDeletionResult cancelKeyDeletionResult = new CancelKeyDeletionResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("KeyId")) { cancelKeyDeletionResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return cancelKeyDeletionResult; }
/** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getKeyId() != null) sb.append("KeyId: ").append(getKeyId()); sb.append("}"); return sb.toString(); }
public CancelKeyDeletionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CancelKeyDeletionResult cancelKeyDeletionResult = new CancelKeyDeletionResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("KeyId")) { cancelKeyDeletionResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return cancelKeyDeletionResult; }
public CancelKeyDeletionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CancelKeyDeletionResult cancelKeyDeletionResult = new CancelKeyDeletionResult(); 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 cancelKeyDeletionResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("KeyId", targetDepth)) { context.nextToken(); cancelKeyDeletionResult.setKeyId(context.getUnmarshaller(String.class).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 cancelKeyDeletionResult; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CancelKeyDeletionResult == false) return false; CancelKeyDeletionResult other = (CancelKeyDeletionResult) obj; if (other.getKeyId() == null ^ this.getKeyId() == null) return false; if (other.getKeyId() != null && other.getKeyId().equals(this.getKeyId()) == false) return false; return true; } }
public CancelKeyDeletionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CancelKeyDeletionResult cancelKeyDeletionResult = new CancelKeyDeletionResult(); 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 cancelKeyDeletionResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("KeyId", targetDepth)) { context.nextToken(); cancelKeyDeletionResult.setKeyId(context.getUnmarshaller(String.class).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 cancelKeyDeletionResult; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getKeyId() != null) sb.append("KeyId: " + getKeyId()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CancelKeyDeletionResult == false) return false; CancelKeyDeletionResult other = (CancelKeyDeletionResult) obj; if (other.getKeyId() == null ^ this.getKeyId() == null) return false; if (other.getKeyId() != null && other.getKeyId().equals(this.getKeyId()) == false) return false; return true; }