@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof CreateWorkspaceApiKeyRequest == false)
            return false;
        CreateWorkspaceApiKeyRequest other = (CreateWorkspaceApiKeyRequest) obj;
        if (other.getKeyName() == null ^ this.getKeyName() == null)
            return false;
        if (other.getKeyName() != null && other.getKeyName().equals(this.getKeyName()) == false)
            return false;
        if (other.getKeyRole() == null ^ this.getKeyRole() == null)
            return false;
        if (other.getKeyRole() != null && other.getKeyRole().equals(this.getKeyRole()) == false)
            return false;
        if (other.getSecondsToLive() == null ^ this.getSecondsToLive() == null)
            return false;
        if (other.getSecondsToLive() != null && other.getSecondsToLive().equals(this.getSecondsToLive()) == false)
            return false;
        if (other.getWorkspaceId() == null ^ this.getWorkspaceId() == null)
            return false;
        if (other.getWorkspaceId() != null && other.getWorkspaceId().equals(this.getWorkspaceId()) == false)
            return false;
        return true;
    }
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()
aws-java-sdk-managedgrafana/src/main/java/com/amazonaws/services/managedgrafana/model/CreateWorkspaceApiKeyRequest.java