title: Slack SDK block builder in spring boot
body: <p>I'm constructing a message to be sent through my spring boot application.
  I was testing out the templates and I have created one where most of the elements are static except a link that needs to be generated by the code and added to the Json.</p>
  <p>Currently the Json message looks like this:</p>
  <pre><code>{
      &quot;blocks&quot;: [
          {
              &quot;type&quot;: &quot;context&quot;,
              &quot;elements&quot;: [
                  {
                      &quot;type&quot;: &quot;image&quot;,
                      &quot;image_url&quot;: &quot;https://api.slack.com/img/blocks/bkb_template_images/highpriority.png&quot;,
                      &quot;alt_text&quot;: &quot;High Priority&quot;
                  },
                  {
                      &quot;type&quot;: &quot;mrkdwn&quot;,
                      &quot;text&quot;: &quot;*High Priority*&quot;
                  }
              ]
          },
          {
              &quot;type&quot;: &quot;divider&quot;
          },
          {
              &quot;type&quot;: &quot;section&quot;,
              &quot;text&quot;: {
                  &quot;type&quot;: &quot;mrkdwn&quot;,
                  &quot;text&quot;: &quot;*Hercules Platform Status Response failed Messages*&quot;
              }
          },
          {
              &quot;type&quot;: &quot;divider&quot;
          },
          {
              &quot;type&quot;: &quot;section&quot;,
              &quot;text&quot;: {
                  &quot;type&quot;: &quot;mrkdwn&quot;,
                  &quot;text&quot;: &quot;*Please click the link to download the file*&quot;
              }
          },
          {
              &quot;type&quot;: &quot;section&quot;,
              &quot;text&quot;: {
                  &quot;type&quot;: &quot;mrkdwn&quot;,
                  &quot;text&quot;: &quot;*&lt;LINK|SOME_LINK&gt;*&quot;
              }
          }
  
      ]
  
  }
  </code></pre>
  <p>I'm not sure how to construct this Json in my spring boot application. Since most of it is static, should I just load this template as a string and append the last link section?
  I'm not able to figure out the slack classes in java to build such a message.</p>