code: public Ec2InstanceAttributes withAdditionalMasterSecurityGroups(String... additionalMasterSecurityGroups) {
          if (this.additionalMasterSecurityGroups == null) {
              setAdditionalMasterSecurityGroups(new com.amazonaws.internal.SdkInternalList<String>(additionalMasterSecurityGroups.length));
          }
          for (String ele : additionalMasterSecurityGroups) {
              this.additionalMasterSecurityGroups.add(ele);
          }
          return this;
      }
docs: <p>
  A list of additional Amazon EC2 security group IDs for the master node.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAdditionalMasterSecurityGroups(java.util.Collection)} or
  {@link #withAdditionalMasterSecurityGroups(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param additionalMasterSecurityGroups
  A list of additional Amazon EC2 security group IDs for the master node.
  @return Returns a reference to this object so that method calls can be chained together.