code: public ImageAttribute withLaunchPermissions(LaunchPermission... launchPermissions) {
          if (this.launchPermissions == null) {
              setLaunchPermissions(new com.amazonaws.internal.SdkInternalList<LaunchPermission>(launchPermissions.length));
          }
          for (LaunchPermission ele : launchPermissions) {
              this.launchPermissions.add(ele);
          }
          return this;
      }
docs: <p>
  The launch permissions.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setLaunchPermissions(java.util.Collection)} or {@link #withLaunchPermissions(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param launchPermissions
  The launch permissions.
  @return Returns a reference to this object so that method calls can be chained together.