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());
@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; }
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) return false; if (other.getLastModifiedDate() == null ^ this.getLastModifiedDate() == null)
/** * 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); } }
/** * 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 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; }
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) return false; if (other.getLastModifiedDate() == null ^ this.getLastModifiedDate() == null)
jsonWriter.value(status); if (authorizerDescription.getCreationDate() != null) { java.util.Date creationDate = authorizerDescription.getCreationDate(); jsonWriter.name("creationDate"); jsonWriter.value(creationDate);
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());
@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; }
/** * 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 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; }
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) return false; if (other.getLastModifiedDate() == null ^ this.getLastModifiedDate() == null)
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) return false; if (other.getLastModifiedDate() == null ^ this.getLastModifiedDate() == null)
/** * 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); } }
jsonWriter.value(status); if (authorizerDescription.getCreationDate() != null) { java.util.Date creationDate = authorizerDescription.getCreationDate(); jsonWriter.name("creationDate"); jsonWriter.value(creationDate);