code: public BackupSelection withResources(String... resources) {
          if (this.resources == null) {
              setResources(new java.util.ArrayList<String>(resources.length));
          }
          for (String ele : resources) {
              this.resources.add(ele);
          }
          return this;
      }
docs: <p>
  An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
  <code>arn:aws:ec2:us-east-1:123456789012:volume/*</code>" of resources to assign to a backup plan.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setResources(java.util.Collection)} or {@link #withResources(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param resources
  An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
  <code>arn:aws:ec2:us-east-1:123456789012:volume/*</code>" of resources to assign to a backup plan.
  @return Returns a reference to this object so that method calls can be chained together.