@Override public CreateAuthorizerResponse build() { return new CreateAuthorizerResponse(this); }
/** * 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("CreateAuthorizerResponse").add("Id", id()).add("Name", name()).add("Type", typeAsString()) .add("ProviderARNs", providerARNs()).add("AuthType", authType()).add("AuthorizerUri", authorizerUri()) .add("AuthorizerCredentials", authorizerCredentials()).add("IdentitySource", identitySource()) .add("IdentityValidationExpression", identityValidationExpression()) .add("AuthorizerResultTtlInSeconds", authorizerResultTtlInSeconds()).build(); }
public CreateAuthorizerResponse unmarshall(JsonUnmarshallerContext context) throws Exception { CreateAuthorizerResponse.Builder createAuthorizerResponseBuilder = CreateAuthorizerResponse.builder();
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(id()); hashCode = 31 * hashCode + Objects.hashCode(name()); hashCode = 31 * hashCode + Objects.hashCode(typeAsString()); hashCode = 31 * hashCode + Objects.hashCode(providerARNs()); hashCode = 31 * hashCode + Objects.hashCode(authType()); hashCode = 31 * hashCode + Objects.hashCode(authorizerUri()); hashCode = 31 * hashCode + Objects.hashCode(authorizerCredentials()); hashCode = 31 * hashCode + Objects.hashCode(identitySource()); hashCode = 31 * hashCode + Objects.hashCode(identityValidationExpression()); hashCode = 31 * hashCode + Objects.hashCode(authorizerResultTtlInSeconds()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateAuthorizerResponse)) { return false; } CreateAuthorizerResponse other = (CreateAuthorizerResponse) obj; return Objects.equals(id(), other.id()) && Objects.equals(name(), other.name()) && Objects.equals(typeAsString(), other.typeAsString()) && Objects.equals(providerARNs(), other.providerARNs()) && Objects.equals(authType(), other.authType()) && Objects.equals(authorizerUri(), other.authorizerUri()) && Objects.equals(authorizerCredentials(), other.authorizerCredentials()) && Objects.equals(identitySource(), other.identitySource()) && Objects.equals(identityValidationExpression(), other.identityValidationExpression()) && Objects.equals(authorizerResultTtlInSeconds(), other.authorizerResultTtlInSeconds()); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "id": return Optional.ofNullable(clazz.cast(id())); case "name": return Optional.ofNullable(clazz.cast(name())); case "type": return Optional.ofNullable(clazz.cast(typeAsString())); case "providerARNs": return Optional.ofNullable(clazz.cast(providerARNs())); case "authType": return Optional.ofNullable(clazz.cast(authType())); case "authorizerUri": return Optional.ofNullable(clazz.cast(authorizerUri())); case "authorizerCredentials": return Optional.ofNullable(clazz.cast(authorizerCredentials())); case "identitySource": return Optional.ofNullable(clazz.cast(identitySource())); case "identityValidationExpression": return Optional.ofNullable(clazz.cast(identityValidationExpression())); case "authorizerResultTtlInSeconds": return Optional.ofNullable(clazz.cast(authorizerResultTtlInSeconds())); default: return Optional.empty(); } }