code: public SecurityGroup withIpPermissions(IpPermission... ipPermissions) {
          if (this.ipPermissions == null) {
              setIpPermissions(new com.amazonaws.internal.SdkInternalList<IpPermission>(ipPermissions.length));
          }
          for (IpPermission ele : ipPermissions) {
              this.ipPermissions.add(ele);
          }
          return this;
      }
docs: <p>
  The inbound rules associated with the security group.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setIpPermissions(java.util.Collection)} or {@link #withIpPermissions(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param ipPermissions
  The inbound rules associated with the security group.
  @return Returns a reference to this object so that method calls can be chained together.