public void setRoles(java.util.Collection<AwsIamInstanceProfileRole> roles) {
        if (roles == null) {
            this.roles = null;
            return;
        }

        this.roles = new java.util.ArrayList<AwsIamInstanceProfileRole>(roles);
    }
<p>
The roles associated with the instance profile.
</p>

@param roles
       The roles associated with the instance profile.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsIamInstanceProfile.java