code: public ListPolicyVersionsResult withVersions(PolicyVersion... versions) {
          if (this.versions == null) {
              setVersions(new com.amazonaws.internal.SdkInternalList<PolicyVersion>(versions.length));
          }
          for (PolicyVersion ele : versions) {
              this.versions.add(ele);
          }
          return this;
      }
docs: <p>
  A list of policy versions.
  </p>
  <p>
  For more information about managed policy versions, see <a
  href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html">Versioning for Managed
  Policies</a> in the <i>IAM User Guide</i>.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setVersions(java.util.Collection)} or {@link #withVersions(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param versions
  A list of policy versions.</p>
  <p>
  For more information about managed policy versions, see <a
  href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html">Versioning for
  Managed Policies</a> in the <i>IAM User Guide</i>.
  @return Returns a reference to this object so that method calls can be chained together.