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(",");
@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.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)
/** * 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; }
&& 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)
jsonWriter.value(tokenKeyName); if (authorizerDescription.getTokenSigningPublicKeys() != null) { java.util.Map<String, String> tokenSigningPublicKeys = authorizerDescription .getTokenSigningPublicKeys(); jsonWriter.name("tokenSigningPublicKeys"); jsonWriter.beginObject();
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(",");
@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.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)
&& 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)
/** * 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(tokenKeyName); if (authorizerDescription.getTokenSigningPublicKeys() != null) { java.util.Map<String, String> tokenSigningPublicKeys = authorizerDescription .getTokenSigningPublicKeys(); jsonWriter.name("tokenSigningPublicKeys"); jsonWriter.beginObject();