public ListInstanceProfilesForRoleResult withInstanceProfiles(InstanceProfile... instanceProfiles) {
        if (this.instanceProfiles == null) {
            setInstanceProfiles(new com.amazonaws.internal.SdkInternalList<InstanceProfile>(instanceProfiles.length));
        }
        for (InstanceProfile ele : instanceProfiles) {
            this.instanceProfiles.add(ele);
        }
        return this;
    }
<p>
A list of instance profiles.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setInstanceProfiles(java.util.Collection)} or {@link #withInstanceProfiles(java.util.Collection)} if you
want to override the existing values.
</p>

@param instanceProfiles
       A list of instance profiles.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/ListInstanceProfilesForRoleResult.java