code: public ParameterDefinition withReferencedByResources(String... referencedByResources) {
          if (this.referencedByResources == null) {
              setReferencedByResources(new java.util.ArrayList<String>(referencedByResources.length));
          }
          for (String ele : referencedByResources) {
              this.referencedByResources.add(ele);
          }
          return this;
      }
docs: <p>
  A list of AWS SAM resources that use this parameter.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setReferencedByResources(java.util.Collection)} or
  {@link #withReferencedByResources(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param referencedByResources
  A list of AWS SAM resources that use this parameter.
  @return Returns a reference to this object so that method calls can be chained together.