public AuthorizerDescription unmarshall(JsonUnmarshallerContext context) throws Exception { AuthorizerDescription authorizerDescription = new AuthorizerDescription(); if (context.testExpression("authorizerName", targetDepth)) { context.nextToken(); authorizerDescription.setAuthorizerName(context.getUnmarshaller(String.class).unmarshall(context)); authorizerDescription.setAuthorizerArn(context.getUnmarshaller(String.class).unmarshall(context)); authorizerDescription.setAuthorizerFunctionArn(context.getUnmarshaller(String.class).unmarshall(context)); authorizerDescription.setTokenKeyName(context.getUnmarshaller(String.class).unmarshall(context)); authorizerDescription.setTokenSigningPublicKeys(new MapUnmarshaller<String, String>(context.getUnmarshaller(String.class), context .getUnmarshaller(String.class)).unmarshall(context)); authorizerDescription.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); authorizerDescription.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); authorizerDescription.setLastModifiedDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeDefaultAuthorizerResult == false) return false; DescribeDefaultAuthorizerResult other = (DescribeDefaultAuthorizerResult) obj; if (other.getAuthorizerDescription() == null ^ this.getAuthorizerDescription() == null) return false; if (other.getAuthorizerDescription() != null && other.getAuthorizerDescription().equals(this.getAuthorizerDescription()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAuthorizerName() == null) ? 0 : getAuthorizerName().hashCode()); hashCode = prime * hashCode + ((getAuthorizerArn() == null) ? 0 : getAuthorizerArn().hashCode()); hashCode = prime * hashCode + ((getAuthorizerFunctionArn() == null) ? 0 : getAuthorizerFunctionArn().hashCode()); hashCode = prime * hashCode + ((getTokenKeyName() == null) ? 0 : getTokenKeyName().hashCode()); hashCode = prime * hashCode + ((getTokenSigningPublicKeys() == null) ? 0 : getTokenSigningPublicKeys().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); return hashCode; }
return false; AuthorizerDescription other = (AuthorizerDescription) obj; if (other.getAuthorizerName() == null ^ this.getAuthorizerName() == null) return false; if (other.getAuthorizerName() != null && other.getAuthorizerName().equals(this.getAuthorizerName()) == false) return false; if (other.getAuthorizerArn() == null ^ this.getAuthorizerArn() == null) return false; if (other.getAuthorizerArn() != null && other.getAuthorizerArn().equals(this.getAuthorizerArn()) == false) return false; if (other.getAuthorizerFunctionArn() == null ^ this.getAuthorizerFunctionArn() == null) return false; if (other.getAuthorizerFunctionArn() != null && other.getAuthorizerFunctionArn().equals(this.getAuthorizerFunctionArn()) == false) return false; if (other.getTokenKeyName() == null ^ this.getTokenKeyName() == null) return false; if (other.getTokenKeyName() != null && other.getTokenKeyName().equals(this.getTokenKeyName()) == false) return false; if (other.getTokenSigningPublicKeys() == null ^ this.getTokenSigningPublicKeys() == null) return false; if (other.getTokenSigningPublicKeys() != null && other.getTokenSigningPublicKeys().equals(this.getTokenSigningPublicKeys()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false)
AuthorizerDescription authorizerDescription = new AuthorizerDescription(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("authorizerName")) { authorizerDescription.setAuthorizerName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("authorizerArn")) { authorizerDescription.setAuthorizerArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("authorizerFunctionArn")) { authorizerDescription.setAuthorizerFunctionArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("tokenKeyName")) { authorizerDescription.setTokenKeyName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("tokenSigningPublicKeys")) { authorizerDescription.setTokenSigningPublicKeys(new MapUnmarshaller<String>( StringJsonUnmarshaller.getInstance() authorizerDescription.setStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("creationDate")) { authorizerDescription.setCreationDate(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("lastModifiedDate")) { authorizerDescription.setLastModifiedDate(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else {
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeAuthorizerResult == false) return false; DescribeAuthorizerResult other = (DescribeAuthorizerResult) obj; if (other.getAuthorizerDescription() == null ^ this.getAuthorizerDescription() == null) return false; if (other.getAuthorizerDescription() != null && other.getAuthorizerDescription().equals(this.getAuthorizerDescription()) == false) return false; return true; }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAuthorizerName() != null) sb.append("AuthorizerName: ").append(getAuthorizerName()).append(","); if (getAuthorizerArn() != null) sb.append("AuthorizerArn: ").append(getAuthorizerArn()).append(","); if (getAuthorizerFunctionArn() != null) sb.append("AuthorizerFunctionArn: ").append(getAuthorizerFunctionArn()).append(","); if (getTokenKeyName() != null) sb.append("TokenKeyName: ").append(getTokenKeyName()).append(","); if (getTokenSigningPublicKeys() != null) sb.append("TokenSigningPublicKeys: ").append(getTokenSigningPublicKeys()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getLastModifiedDate() != null) sb.append("LastModifiedDate: ").append(getLastModifiedDate()); sb.append("}"); return sb.toString();
AuthorizerDescription authorizerDescription = new AuthorizerDescription(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("authorizerName")) { authorizerDescription.setAuthorizerName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("authorizerArn")) { authorizerDescription.setAuthorizerArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("authorizerFunctionArn")) { authorizerDescription.setAuthorizerFunctionArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("tokenKeyName")) { authorizerDescription.setTokenKeyName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("tokenSigningPublicKeys")) { authorizerDescription.setTokenSigningPublicKeys(new MapUnmarshaller<String>( StringJsonUnmarshaller.getInstance() authorizerDescription.setStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("creationDate")) { authorizerDescription.setCreationDate(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("lastModifiedDate")) { authorizerDescription.setLastModifiedDate(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else {
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeDefaultAuthorizerResult == false) return false; DescribeDefaultAuthorizerResult other = (DescribeDefaultAuthorizerResult) obj; if (other.getAuthorizerDescription() == null ^ this.getAuthorizerDescription() == null) return false; if (other.getAuthorizerDescription() != null && other.getAuthorizerDescription().equals(this.getAuthorizerDescription()) == false) return false; return true; } }
/** * Marshall the given parameter object. */ public void marshall(AuthorizerDescription authorizerDescription, ProtocolMarshaller protocolMarshaller) { if (authorizerDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(authorizerDescription.getAuthorizerName(), AUTHORIZERNAME_BINDING); protocolMarshaller.marshall(authorizerDescription.getAuthorizerArn(), AUTHORIZERARN_BINDING); protocolMarshaller.marshall(authorizerDescription.getAuthorizerFunctionArn(), AUTHORIZERFUNCTIONARN_BINDING); protocolMarshaller.marshall(authorizerDescription.getTokenKeyName(), TOKENKEYNAME_BINDING); protocolMarshaller.marshall(authorizerDescription.getTokenSigningPublicKeys(), TOKENSIGNINGPUBLICKEYS_BINDING); protocolMarshaller.marshall(authorizerDescription.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(authorizerDescription.getCreationDate(), CREATIONDATE_BINDING); protocolMarshaller.marshall(authorizerDescription.getLastModifiedDate(), LASTMODIFIEDDATE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public AuthorizerDescription unmarshall(JsonUnmarshallerContext context) throws Exception { AuthorizerDescription authorizerDescription = new AuthorizerDescription(); if (context.testExpression("authorizerName", targetDepth)) { context.nextToken(); authorizerDescription.setAuthorizerName(context.getUnmarshaller(String.class).unmarshall(context)); authorizerDescription.setAuthorizerArn(context.getUnmarshaller(String.class).unmarshall(context)); authorizerDescription.setAuthorizerFunctionArn(context.getUnmarshaller(String.class).unmarshall(context)); authorizerDescription.setTokenKeyName(context.getUnmarshaller(String.class).unmarshall(context)); authorizerDescription.setTokenSigningPublicKeys(new MapUnmarshaller<String, String>(context.getUnmarshaller(String.class), context .getUnmarshaller(String.class)).unmarshall(context)); authorizerDescription.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); authorizerDescription.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); authorizerDescription.setLastModifiedDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeAuthorizerResult == false) return false; DescribeAuthorizerResult other = (DescribeAuthorizerResult) obj; if (other.getAuthorizerDescription() == null ^ this.getAuthorizerDescription() == null) return false; if (other.getAuthorizerDescription() != null && other.getAuthorizerDescription().equals(this.getAuthorizerDescription()) == false) return false; return true; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAuthorizerName() == null) ? 0 : getAuthorizerName().hashCode()); hashCode = prime * hashCode + ((getAuthorizerArn() == null) ? 0 : getAuthorizerArn().hashCode()); hashCode = prime * hashCode + ((getAuthorizerFunctionArn() == null) ? 0 : getAuthorizerFunctionArn().hashCode()); hashCode = prime * hashCode + ((getTokenKeyName() == null) ? 0 : getTokenKeyName().hashCode()); hashCode = prime * hashCode + ((getTokenSigningPublicKeys() == null) ? 0 : getTokenSigningPublicKeys() .hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeDefaultAuthorizerResult == false) return false; DescribeDefaultAuthorizerResult other = (DescribeDefaultAuthorizerResult) obj; if (other.getAuthorizerDescription() == null ^ this.getAuthorizerDescription() == null) return false; if (other.getAuthorizerDescription() != null && other.getAuthorizerDescription().equals(this.getAuthorizerDescription()) == false) return false; return true; }
/** * 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 (getAuthorizerName() != null) sb.append("authorizerName: " + getAuthorizerName() + ","); if (getAuthorizerArn() != null) sb.append("authorizerArn: " + getAuthorizerArn() + ","); if (getAuthorizerFunctionArn() != null) sb.append("authorizerFunctionArn: " + getAuthorizerFunctionArn() + ","); if (getTokenKeyName() != null) sb.append("tokenKeyName: " + getTokenKeyName() + ","); if (getTokenSigningPublicKeys() != null) sb.append("tokenSigningPublicKeys: " + getTokenSigningPublicKeys() + ","); if (getStatus() != null) sb.append("status: " + getStatus() + ","); if (getCreationDate() != null) sb.append("creationDate: " + getCreationDate() + ","); if (getLastModifiedDate() != null) sb.append("lastModifiedDate: " + getLastModifiedDate()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeAuthorizerResult == false) return false; DescribeAuthorizerResult other = (DescribeAuthorizerResult) obj; if (other.getAuthorizerDescription() == null ^ this.getAuthorizerDescription() == null) return false; if (other.getAuthorizerDescription() != null && other.getAuthorizerDescription().equals(this.getAuthorizerDescription()) == false) return false; return true; }
if (other.getAuthorizerName() == null ^ this.getAuthorizerName() == null) return false; if (other.getAuthorizerName() != null && other.getAuthorizerName().equals(this.getAuthorizerName()) == false) return false; if (other.getAuthorizerArn() == null ^ this.getAuthorizerArn() == null) return false; if (other.getAuthorizerArn() != null && other.getAuthorizerArn().equals(this.getAuthorizerArn()) == false) return false; if (other.getAuthorizerFunctionArn() == null ^ this.getAuthorizerFunctionArn() == null) return false; if (other.getAuthorizerFunctionArn() != null && other.getAuthorizerFunctionArn().equals(this.getAuthorizerFunctionArn()) == false) return false; if (other.getTokenKeyName() == null ^ this.getTokenKeyName() == null) return false; if (other.getTokenKeyName() != null && other.getTokenKeyName().equals(this.getTokenKeyName()) == false) return false; if (other.getTokenSigningPublicKeys() == null ^ this.getTokenSigningPublicKeys() == null) return false; if (other.getTokenSigningPublicKeys() != null && other.getTokenSigningPublicKeys().equals(this.getTokenSigningPublicKeys()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeDefaultAuthorizerResult == false) return false; DescribeDefaultAuthorizerResult other = (DescribeDefaultAuthorizerResult) obj; if (other.getAuthorizerDescription() == null ^ this.getAuthorizerDescription() == null) return false; if (other.getAuthorizerDescription() != null && other.getAuthorizerDescription().equals(this.getAuthorizerDescription()) == false) return false; return true; } }
public void marshall(AuthorizerDescription authorizerDescription, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (authorizerDescription.getAuthorizerName() != null) { String authorizerName = authorizerDescription.getAuthorizerName(); jsonWriter.name("authorizerName"); jsonWriter.value(authorizerName); if (authorizerDescription.getAuthorizerArn() != null) { String authorizerArn = authorizerDescription.getAuthorizerArn(); jsonWriter.name("authorizerArn"); jsonWriter.value(authorizerArn); if (authorizerDescription.getAuthorizerFunctionArn() != null) { String authorizerFunctionArn = authorizerDescription.getAuthorizerFunctionArn(); jsonWriter.name("authorizerFunctionArn"); jsonWriter.value(authorizerFunctionArn); if (authorizerDescription.getTokenKeyName() != null) { String tokenKeyName = authorizerDescription.getTokenKeyName(); jsonWriter.name("tokenKeyName"); jsonWriter.value(tokenKeyName); if (authorizerDescription.getTokenSigningPublicKeys() != null) { java.util.Map<String, String> tokenSigningPublicKeys = authorizerDescription .getTokenSigningPublicKeys(); jsonWriter.name("tokenSigningPublicKeys"); jsonWriter.beginObject(); if (authorizerDescription.getStatus() != null) {
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeAuthorizerResult == false) return false; DescribeAuthorizerResult other = (DescribeAuthorizerResult) obj; if (other.getAuthorizerDescription() == null ^ this.getAuthorizerDescription() == null) return false; if (other.getAuthorizerDescription() != null && other.getAuthorizerDescription().equals(this.getAuthorizerDescription()) == false) return false; return true; } }